Quick way to remove all frozen emails from mail queue Exim

An introduction layer to Frozen mails

Simply frozen emails are the emails to invalid mail accounts that were undelivered to the address. If the mail can’t be delivered for an account, the mail will be added in the queue and exim will try a couple of times to deliver the mail as per the settings in the RETRY CONFIGURATION in exim conf file.

If the email didn’t deliver to the recipient after the predefined days in Exim conf (timeout_frozen_after), those emails will be marked as frozen.

# grep timeout_frozen_after /etc/exim.conf
timeout_frozen_after = 5d

The exim mail server has a lot of commandline options to manage email queue. Refer this topic for How to check spamming on server which has Exim as MTA.

How to remove all frozen emails from the mail queue?

Here we goes! You can remove the frozen mails by executing different combinations of Exim commands.

Method I : By using ‘exim -bp’ command

# exim -bp|grep frozen|awk '{print $3}' |xargs exim -Mrm

Method II : By using ‘exiqgrep’ command

# exiqgrep -zi|xargs exim -Mrm

Cool 🙂


1, How to check spamming on server which has Exim as MTA
2, Exim Log line flags
3, Exim command to find the mail that we have sent is completed or not(Unix/Linux)

Arunlal Ashok

Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

2 Responses

  1. Peter Sullivan says:

    I am using MailEnable Mail server which provide best Spam Email server software. It provides best secure email software.

  1. January 25, 2014

    […] Links: Check spamming – Exim. Remove all frozen emails from mail queue. Delete locked mails from mail queue. Exim Log line flags. Exim log file paths in WHM/cPanel & […]

Leave a Reply

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