Exim Helpers
Hi there,
in the ‘old days’ I’ve been using the Exim MTA and just found a few helpful commands, which I thought might help some people also. Here we go…
Count frozen messages in mail queue:
exim4 -bpr | grep frozen | wc -l
Remove all frozen messages from the mail queue:
mailq | awk '/frozen/ { print $3 }' | xargs exim4 -Mrm
Remove ALL messages from the mail queue:
mailq | awk '/<>/ {print $3}' | xargs exim4 -Mrm
That’s it…
Cheers!



Hey, you found these commands, too… As you know, I myself used exim for a long time and didn’t want to switch to another MTA.
Back than there were some really ugly things for managing exim and today I don’t know, why I used it for so long. Anyway, now I am usung postfix and feel very relieved of it’s comfort.
For all out there who might need these commands:
Think about switching to another MTA ;)