Continue reading "Clear your Postfix email queue in Ubuntu"
The post Clear your Postfix email queue in Ubuntu appeared first on Flipping Binary.
]]>postfix -f
But flushing the queue would just force your server to attempt delivery again. Other places recommend this command to delete all emails in the queue:
postfix -d ALL
This looks like what we need, so I tried executing it on my new email server:
$ sudo postfix -d ALL postfix: invalid option -- 'd' postfix: fatal: usage: postfix [-c config_dir] [-Dv] command
Uh oh! What happened here? That command shows up whenever I search the web for how to delete the Postfix email queue, so why isn’t it working? Well it turns out that the proper command in Ubuntu (and perhaps other distributions) is postsuper
, not postfix
. That one change fixes the problem and behaves as expected:
sudo postsuper -d ALL
Problem solved! Now if only it was as easy to convince Microsoft to trust the emails coming from my server…
The post Clear your Postfix email queue in Ubuntu appeared first on Flipping Binary.
]]>