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.

Mail Queue not deleting messages >2 days

Discussion in 'E-mail Discussions' started by kerriritter, Apr 12, 2006.

  1. kerriritter

    kerriritter Active Member

    Joined:
    Oct 25, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    I changed the last line in exim configuration to:

    * * F,2h,15m; G,16h,1h,1.5; F,2d,8h

    This this is the rule:

    # This single retry rule applies to all domains and all errors. It specifies
    # retries every 15 minutes for 2 hours, then increasing retry intervals,
    # starting at 1 hour and increasing each time by a factor of 1.5, up to 16
    # hours, then retries every 8 hours until 4 days have passed since the first
    # failed delivery.

    I understand this to mean that after 2 days (48 hours) have passed the email will be removed from the queue. I have waited 2 days and no joy. I have messages in the queue older than 48 hours. These are emails with connection timed out, refused, temporarily unavailable, and so on. The mail is time sensitive to begin with and no point in continuing to send. But furthermore, why are they not getting dropped out based on the numerous attempts with these results from the recipient server?

    Is there a place in exim.conf to do this? Or a command I can run to clear the queue, but only for messages that meet a certain condition, ie. been in there xx hours or xx days?

    I would appreciate any help with this. This is not a new issue for me, but it is wearing me out. It has been very time consuming doing this daily on several servers. :eek:
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    In the "Exim Configuration Editor" in advanced mode, add

    timeout_frozen_after = 2d
    ignore_bounce_errors_after = 12h

    to the first box.

    It might help.

    As far as cleaning the mail queue, check out my scripts. (see sig below)
     
  3. kerriritter

    kerriritter Active Member

    Joined:
    Oct 25, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    I'm trying that change now and also your script. :)
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Hope it helps. :)
     
  5. hekri

    hekri Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    149
    Likes Received:
    2
    Trophy Points:
    18
    It not help, i change thise, restart exim, delte messages in queue and after 4 days i still see messages in queue 3, 4 days :(
     
  6. deftech

    deftech Member

    Joined:
    Jan 11, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    try this

    Try one of these from a command prompt via SSH

    #This gets rid of frozen messages
    exiqgrep -zi | xargs exim -Mrm


    # Frozen messages older than a day
    exiqgrep -zi -o 86400


    #This will force queue to send and force frozen messages out
    /usr/sbin/exim -qff
     
  7. hekri

    hekri Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    149
    Likes Received:
    2
    Trophy Points:
    18
    Thanx, better is /usr/sbin/exim -qff -v &
    i see what is exim doing :)
     
Loading...

Share This Page