Safdar Mirza, My personal blog

How to purge/flush email queue – Linux

sendmail :

# sendmail -q

postfix:

# mailq

# postsuper -d <email id>

# postsuper -d ALL

# postsuper -d ALL deferred

# postconf -n

# postqueue -p # to show current mailq

Add SMTP relay:

# postfconf -e “relayhost=myemailhost.host.com”

# postfix reload

Leave a Reply

Your email address will not be published. Required fields are marked *