How can I Remove Frozen Emails from Exim Mail Queue ?

How can I remove frozen emails from exim mail queue? Today we will find out how to delete all your frozen emails from the mail queue. But first, let’s find out what frozen emails are.

What are frozen emails?

Frozen emails are simply emails sent to invalid address that are underlivered. This mails are stored in the exim mail queue and the system tries to send those mails during a specific time defined at the RETRY CONFIGURATION in Exim mail configuration file. After the predefined days set at Exim Configuration, the mail will be marked as frozen.

Frozen timeout is determined by timeout_frozen_after variable, located at /etc/exim.conf file.

You can get the value of this variable by running this commnand:

[[email protected]:~]grep timeout_frozen_after /etc/exim.conf
timeout_frozen_after = 5d

On heavy email traffic servers you will need to clean out the frozen emails from time to time.

How to remove frozen emails from the Exim mail queue?

Frozen emails can be removed – deleted by executing any of this exim based commands:

Using exim command:

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

Using exiqgrep command:

exiqgrep -zi|xargs exim -Mrm

That’s all, now your server should be totally free from frozen emails.

Do you know other ways to remove frozen emails from exim mail queue? Please share your knowledge with us.

Further reading:


About the Author: Santiago Borges

Experienced Sr. Linux SysAdmin and Web Technologist, passionate about building tools, automating processes, fixing server issues, troubleshooting, securing and optimizing high traffic websites.

Leave a Reply

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