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!

2 Comments

  • dagobert

    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 ;)

  • henning

    Yes, I also switched to Postfix and I agree on your suggestion to switch…but I found those on my hard drive and thought they might be useful to someone…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.