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.

exim queue limit

Discussion in 'E-mail Discussions' started by cygus, Aug 17, 2007.

  1. cygus

    cygus Active Member

    Joined:
    Jun 18, 2007
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    hi

    How can I set how long emails can be in queue (for example 2days), after this mail should be deleted.

    regards
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    867
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    In WHM go to exim configuration>>>>>advanced mode and in the first "box" add something like :
    timeout_frozen_after = 4d
    ignore_bounce_errors_after = 2d
     
  3. cygus

    cygus Active Member

    Joined:
    Jun 18, 2007
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    ok thanks

    please explain me what does it mean exactly

    regards
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    timeout_frozen_after = drop emails from the queue that are frozen (undeliverable) after X days
    ignore_bounce_errors_after = drop bounce emails from undeliverable email after X days

    Both are a good idea.
     
  5. cygus

    cygus Active Member

    Joined:
    Jun 18, 2007
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    thanks a lot

    best regards
     
  6. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    i have add this in the exim configuration but dont work, it work fine only if i edit it from shell
     
  7. LinuxTechie

    LinuxTechie Well-Known Member

    Joined:
    Jan 22, 2011
    Messages:
    502
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello !

    I knows this is an old thread. Will these settings work or is there any other new options in newer version of Exim?
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you place them in the topmost box in WHM > Exim Configuration Editor > Advanced Editor area, then the new values will be used in place of the previously existing ones in /etc/exim.conf file. For example, the previous values:

    Code:
    # grep timeout_fr /etc/exim.conf && grep ignore_bou /etc/exim.conf
    timeout_frozen_after = 5d
    ignore_bounce_errors_after = 3d
    If I put this into the topmost box in the Advanced Editor and save the changes:

    Code:
    timeout_frozen_after = 4d
    ignore_bounce_errors_after = 2d 
    This now shows the following:

    Code:
    # grep timeout_fr /etc/exim.conf && grep ignore_bou /etc/exim.conf
    timeout_frozen_after = 4d
    ignore_bounce_errors_after = 2d
     
  9. maxgdias

    maxgdias Registered

    Joined:
    Feb 25, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I do this configuration. The result is:
    timeout_frozen_after = 24h
    ignore_bounce_errors_after = 22h

    the comand:
    exim -bp | grep frozen | wc -l
    return "0"

    But my queue has mor 1000 emails with more 45h.


    Another question.
    This adjustment will "erase" or only messages marked as "frozen"?
    I'm actually looking for a setting that "remove" messages that are automatically queued for more than 24 hours.


    Can you help me?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The command you are checking for the number of frozen wouldn't remove frozen messages but check for the number of frozen messages.

    To remove messages queued more than 24 hours, you could use the following command:

    Code:
    exiqgrep -o 86400 -i | xargs exim -Mrm
    The 86400 represents the number of seconds in 24 hours.
     
Loading...

Share This Page