Monday, October 19, 2015

How to delete mail queue in Postfix in CentOS 7

How to delete mail queue in Postfix in CentOS 7

# mailq | tail
# find /var/spool/postfix/deferred/ | wc -l

Remove particular mail queue id:

# postsuper -d mail_queue_id

Remove only ALL deferred mails which are in queue:

# postsuper -d ALL deferred

Remove ALL mails from queue:

# postsuper -d ALL

Reference:

http://sharadchhetri.com/2014/02/06/how-to-delete-mail-queue-in-postfix/

No comments: