How To Flush The Mail Queue In Postfix

Flush the mail queue: # postfix flush OR # postfix -f View the mail queue: # mailq Delete all mail from the queue: # postsuper -d ALL Delete all mails in the deferred queue: # postsuper -d ALL deferred
![]() |
Flush the mail queue: # postfix flush OR # postfix -f View the mail queue: # mailq Delete all mail from the queue: # postsuper -d ALL Delete all mails in the deferred queue: # postsuper -d ALL deferred
http://www.postfix.org/postconf.5.html “Specify a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname] turns off MX lookups.” For example: relayhost = $mydomain relayhost = [smtprelay.wyzaerd.com]:2525
Modify /etc/postfix/master.cf, and add one line per port. The example below shows the original smtp line along with a sample new line. 25 inet n – – – – smtpd 2525 inet n – – – – smtpd Make sure to open the port in your firewall… Another interesting solution I found was to use […]