The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Huge Mail Queue

Discussion in 'E-mail Discussions' started by andrei155, Mar 19, 2010.

  1. andrei155

    andrei155 Member

    Joined:
    Jun 14, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I constantly have a Mail Queue of at least 300 e-mails. I'm not sure if this is normal - however I'm really starting to get concerned. What can I do to prevent e-mails from queuing up? I have a few e-mails that have been stuck there for up to 52 hours.
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    There are different ways to handle mail queues; for example:
    1.) Determining the reason why e-mails are queued and correcting any problems discovered.
    2.) Adjusting the Exim configuration so queued messages have delivery reattempted more frequently.
    3.) Adjusting the Exim configuration to have older messages expire from the queue sooner.

    I believe option #1 may be the most effective in maintaining the mail queue. Please note that in some instances it may be normal for a system to have a larger mail queue as this depends heavily on the unique server usage and the volume of e-mail traffic that is involved.

    The exim logs are a great resource to determine why a specific message is unable to be sent; the Exim mainlog can be found at the following file system path:
    Code:
    /var/log/exim_mainlog
    If attempting to force delivery of a specific message in the queue, you may monitor the aforementioned log using the following command via root SSH access:
    Code:
    # tail -fvn0 /var/log/exim_mainlog
    If needing to enable more verbose logging I recommend adjusting the "log_selector" directive in the Exim configuration via the Advanced Exim Configuration Editor in WHM; here is an example entry that could be used:
    Code:
    # log_selector = +all -ident_timeout -pid
    Here is the full menu path for WHM where the above directive may be added (in the first text entry box in the Advanced Editor):
    WHM: Main >> Service Configuration >> Exim Configuration Editor >> Advanced Editor

    For more detailed information about the aforementioned "log_selector" directive and what options it has please refer to the official Exim documentation that includes full usage information: Specification of the Exim Mail Transfer Agent: 49. Log files - 49.15. Reducing or increasing what is logged
     
Loading...

Share This Page