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.

contents of mail queue vs /var/spool/exim/input

Discussion in 'E-mail Discussions' started by verdon, Aug 1, 2004.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    I've been doing a lot of trolling about here in regards to exim queue, and general poking about my server. My mail queue doesn't seem to be purging itself like it once did. Seems lots of others have experienced and fixed this, and I'd like to sort it out myself, but I ramble...

    One odd thing I did find and wondered about... at the moment I checked, WHM >> Email >> Manage Mail Queue reports 458 messages in the queue ranging from minutes to 26 days (note: a couple days agao I used WHM to manually delete 30 or so from the queue aged 22-45 days). Doing a ls -l on /var/spool/exim/input lists 924 files ranging from minutes to many months old, though most of them are from the last 30 days. Owenership and permissions all seem correct. A handfull of files are 0 bytes.

    Shouldn't the contents of /var/spool/exim/input equal what WHM >> Email >> Manage Mail Queue reports?

    Just curious,
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    There should be twice as many ;)

    Each email has a header file (for routing) and a message file (the email). Other MTA's, e.g. sendmail, work in the same way.
     
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    DOH :D

    So, I guess if the numbers don't quite add up, it's likely due to something getting out of sync during a forced re-boot or some such thing?

    Thanks,
     
  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
    More than likely. There should be a job in the root crontab (crontab -l) that cleans up that litter in the directory on a daily basis.
     
  5. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Ya, there are a few that look likely...

    0 6 * * * /scripts/cleanmsglog > /dev/null 2>&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim callout > /dev/null 2>&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim retry > /dev/null 2>&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim reject > /dev/null 2>&1
    0 6 * * * /usr/sbin/exim_tidydb /var/spool/exim wait-remote_smtp > /dev/null 2>&1

    In this case, I have 4 abandoned files in there (/var/spool/exim/input), none of the four have the -H companion file, only the -D. I imagine I can pretty safely delete these manually.

    Now, if I can only figure out why things are hanging around in my queue, seemingly forever now, that used to delete after 7 days. I've read lots of posts on exim.conf here, have verified my settings, have restarted exim (via shell not WHM) and so on... ah well :)

    That started 40-50 days ago, during one of the series of updates at that time to deal with apache/cpanel security issues. Unfortunately, I didn't notice exactly when that started.
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  7. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Thanks, following is mine, which looks correct, but I'm unsure about the quota line

    # Domain Error Retries
    # ------ ----- -------

    begin retry

    * quota

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


    Thanks also for the link. I had read that thread and am fairly sure I was OK with everything on the list, but I will revisit it. I appreciate your ongoing dialogue :)
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The quota line tells exim to throw away any email for an account if that account is over quota.
     
  9. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I suspected so but wasn't sure. Thanks for the tip :)
     
Loading...

Share This Page