The Quickest Way To Remove Frozen Mails From Mail Exim

The Quickest Way To Remove Frozen Mails From Mail Exim

  1. Bhawani Singh
    Frozen mails are the emails which are sent to invalid email address. If the email address does not present in the real, attempting to send email to that address will be known as frozen mail. If the email is not able to be delivered to the account, that email will be added in the queue and Exim will try twice to deliver the email based on the settings in the retry configuration in Exim conf file. If the recipient do not subsist after the predefined days in Exim conf, those emails will be stored as frozen mails. The exim mail server has lists of command line options to manage email queue.

    How to Remove All Frozen E-Mails from the Mail Queue?

    If an email is unable to deliver even after several attempts, it will be stored under frozen mail. In order to save the resources, system will save them as frozen mail. It increases the run time of queue and reduces the chances of mail to be stored as spam by the target email transfer agent.

    Several Frozen messages appearing in Mail Queue Manager mean that, one should examine the log file so as to find out the cause and solution to the issue. For more details check: "Empty mail queue on CentOS server".

    Command:

    Code:
    /var/log/exim-mainlog
    There are certain emails within mail queue, follow these steps.
    • Choose the email you want to send by click on the checkboxes next to them.
    • Click Deliver Selected.
    • Under Delivering Messages, refer to delivery report in order to find out the attempts of mail.
    How to Deliver Mail within Mail Queue?

    The steps to deliver Mail within mail queue and they are detailed below,
    • Click Deliver All
    • Click OK in the window which will open to confirm that one choose to deliver emails within queue.
    • Under Delivering Messages in Queue, check at the delivery report in order to find the succeeded attempts.
    How to Delete E-Mail In Queue?
    • Click Delete All from the table.
    • Click OK to confirm one wants to delete mails in queue.
    • Click OK.
    How to view Queued Mails on Server?
    • If you know about the subject of search criteria, enter it into search field.
    • In the Select Query menu, choose from search Sender, Search Recipient, Search Message ID.
    • Choose the function in Search Type heading
    • Check at the Start and End date fields to find the delivery time of emails.
    Exim Mail Server:

    Exim is a mail transfer agent used on UNIX. Exim has been imported on UNIX systems and also on Windows. Exim is rapidly growing mail server. It handles mails for users daily.

    Steps to Use Exim Server:
    • Deploy Exim as SMTP E Mail server.
    • Configure a reliable mail service to meet particular needs.
    • Manage the system operations of mail.
    • Save messages to files.
    • Tune the server to optimize performance.
    • Handle several domains for large organizations.
    • Simplify the mail management and secure the mail system to maintain the confidentiality of messages.
    Two Methods to Remove Frozen Mails:

    There are two methods to remove all frozen emails from Exim Mail Server,
    • Exim-bp command
    Code:
    # exim –bp | grep frozen | awk ‘{print $3}’ |xargs exim -Mrm
    • Exiqgrep command
    Code:
    # exiqgrep –iz | xargs exim –Mrm
    Advantages:

    Exim has several advantages and they are explained as follows,
    • It works well on busy environments.
    • It delivers mail immediately without queuing.
    • It does not provide centralized load balancing environment.