Quick way to remove all frozen emails from mail queue exim

By -

The exim mail server has a lot of option in command line. Refer this topic for finding spamming on a server with Exim.

Frozen mails
Frozen mails are mails to invalid mail accounts. 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 mail cannot be delivered after eight days (timeout_frozen_after) the mail will be marked as frozen.

How to remove all frozen emails from the mail queue?
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 :-)

Related links
Check spamming on server having EXIM
Exim Log line flags
Exim command to find the mail that we have sent is completed or not(Unix/Linux)

Myself Arunlal, working as an administrator for both Linux and Windows servers. I am interested in Blogging, learning new things and technologies etc. Contact me at: arun@crybit.com

2 Comments to Quick way to remove all frozen emails from mail queue exim

  1. Peter Sullivan

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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *