Not signed in (Sign In)

LiveSearch

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorjnx
    • CommentTimeNov 18th 2007
     
    I have a mail server running postfix on debian. Using mailq I can see that there are many emails in the queue (probably form a network problem we had a few hours ago). I restarted postfix but the server doesn't seem to send out the emails. Is there a similar command in postfix as on sendmail I used to run
    sendmail -q
    to flush the mail queue? thx.
    • CommentAuthormarius
    • CommentTimeNov 18th 2007
     
    jnx: you can easily flush the postfix queue and attempt to deliver all queued mails using:

    postqueue [-v] -f
    On the postqueue man page you can find more parameters and usages, for ex:

    NAME
    postqueue - Postfix queue control

    SYNOPSIS
    postqueue [-v] [-c config_dir] -f
    postqueue [-v] [-c config_dir] -i queue_id
    postqueue [-v] [-c config_dir] -p
    postqueue [-v] [-c config_dir] -s site

    DESCRIPTION
    The postqueue(1) command implements the Postfix user
    interface for queue management. It implements operations
    that are traditionally available via the sendmail(1) com-
    mand. See the postsuper(1) command for queue operations
    that require super-user privileges such as deleting a mes-
    sage from the queue or changing the status of a message.

    The following options are recognized:

    -c config_dir
    The main.cf configuration file is in the named
    directory instead of the default configuration
    directory. See also the MAIL_CONFIG environment
    setting below.

    -f Flush the queue: attempt to deliver all queued
    mail.

    This option implements the traditional "sendmail
    -q" command, by contacting the Postfix qmgr(8) dae-
    mon.

    Warning: flushing undeliverable mail frequently
    will result in poor delivery performance of all
    other mail.

    -i queue_id
    Schedule immediate delivery of deferred mail with
    the specified queue ID.

    This option implements the traditional sendmail -qI
    command, by contacting the flush(8) server.

    This feature is available with Postfix version 2.4
    and later.

    -p Produce a traditional sendmail-style queue listing.
    This option implements the traditional mailq com-
    mand, by contacting the Postfix showq(8) daemon.

    Each queue entry shows the queue file ID, message
    size, arrival time, sender, and the recipients that
    still need to be delivered. If mail could not be
    delivered upon the last attempt, the reason for
    failure is shown. This mode of operation is imple-
    mented by executing the postqueue(1) command. The
    queue ID string is followed by an optional status
    character:

    * The message is in the active queue, i.e. the
    message is selected for delivery.

    ! The message is in the hold queue, i.e. no
    further delivery attempt will be made until
    the mail is taken off hold.

    -s site
    Schedule immediate delivery of all mail that is
    queued for the named site. A numerical site must be
    specified as a valid RFC 2821 address literal
    enclosed in [], just like in email addresses. The
    site must be eligible for the "fast flush" service.
    See flush(8) for more information about the "fast
    flush" service.

    This option implements the traditional "sendmail
    -qRsite" command, by contacting the Postfix
    flush(8) daemon.

    -v Enable verbose logging for debugging purposes. Mul-
    tiple -v options make the software increasingly
    verbose. As of Postfix 2.3, this option is avail-
    able for the super-user only.
Add your comments

    Username Password
  • Format comments as