[re-fixed] Outgoing mail stuck in queue

Report bugs and workarounds
Post Reply
User avatar
BOOZy
Posts: 39
Joined: 04 Oct 2017 13:17

[re-fixed] Outgoing mail stuck in queue

Post by BOOZy »

Mail is stuck in queue, postfix -f doesn't do anything.
However, if I reboot the first 30 queued emails are sent then the rest gets stuck again.
I have diverted outgoing mail to a different route so the queue is not growing.
But with 2000 emails stuck I'd need to reboot another 67 times to get them flushed out.

edit: I fixed it myself.
I deleted everything from the queue with 'MAILER DAEMON' in it, which were mostly bounces to out office messages.

Code: Select all

postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /MAILER-DAEMON/ { print $1 }' | tr -d '*!' | sudo postsuper -d -
edit2: that didn't actually fix it.
It was ClamAV all along. The good old yar/yara bug with a sprinkle of duplicate database on top.
iglooo
Posts: 32
Joined: 25 Jan 2019 19:52

Re: [re-fixed] Outgoing mail stuck in queue

Post by iglooo »

How did you fix the yar/yara and duplicate database issues? Thankfully my EFA is working well but someone might find the fix useful
Post Reply