Skip to content
Tags

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
or
# 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.

Advertisements

From → Linux

Leave a Comment

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: