Skip to content

how to flush mailq in sendmail or postfix

July 7, 2010

Some time many mail were in stuck queue, now there are two options either flush all mail to send them forcefully or delete them permanently. postfix-logo

Traditional ” # sendmail -q” command flushes mail queue.

Under Postfix, just enter the following to flush the mail queue

# postfix flush
# postfix -f

To see mail queue, enter:
# mailq

To remove all mail from the queue, enter:
# postsuper -d ALL

To remove all mails in the deferred queue, enter:
# postsuper -d ALL deferred

For more Infotmation Click here World Of Information.


From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: