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 delays

Discussion in 'General Discussion' started by andyf, Apr 19, 2003.

  1. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    We're starting to notice a problem common across most of our machines.

    Exim, instead of attempting to deliver a message when it is accepted just pushes it to the queue, and it can take an hour or more before this is actually attempted for delivery. *there is NO initial attempt*.

    Some info:
    The load on these machines is relatively low, one of them is idle.
    It happens on all domains.
    The messages are NOT frozen
    Manually delivering the messages from WHM works fine.
    So far we've only noticed this happening on mail recieved from 'nobody'.
    We do not have the 'nobody' restrictions enabled.
    It does not happen with all messages.

    This is causing much annoyance among customers as so much outgoing mail is being delayed. This only appears to have started to happen since the new tweak features on 'nobody' mail, but these have never been enabled on these machines. We cannot be sure these two things are related, please don't assume they are.

    Anyone else experiencing the same or can shed any light on this?

    Thanks.
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    yup, I've been having these issues now and then for the past weeks.

    Check out this thread :
    http://forums.cpanel.net/showthread.php?s=&threadid=8658

    In my case it helps running /scripts/newexim which will install an older version of exim (which works fine on my server)

    Check if that resolves the problem.

    If so, then you could run /scripts/upcp to update to the latest exim version again.

    Sometimes the problem will come back, sometimes it won't.

    What I do each time when mail from php forms is getting queued I just go back to the old version (/scripts/newexim)
     
  3. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    Thanks for the info.

    So not really a solution, but more of a temporary fix. I still believe this could well be related to the new features of how many messages per hour and the 'nobody' mail settings, all introduced recently.

    Nick, is there anything which could have caused this?
     
  4. Curt

    Curt Well-Known Member

    Joined:
    Oct 16, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    I am having this problem on only one server out of 5. Very strange.
     
  5. TheCrazyHostGuy

    Joined:
    Apr 21, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    Exim problems

    This might be slightly off the posted topic... but at the same time closely related....


    There was a virus scanner add-on for exim on the Cpanel website that we recently installed... since we installed that we have been seeing extremly large e-mail ques... one day as high as about 30,000 plus messages.... needless to say we had a ton of unhappy customers.

    We sort-of disabled it.... but we still get large mail ques regularly even when the server is under relitively low load.

    Not sure if it is related or not.

    Also... does anyone know how we can remove this virus scanner? it is causeing me tons of problems with people who are getting attachments returned!

    Thanks,

    James
     
  6. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    I'm not sure how you can remove the virus scanner, but we don't have it installed on any of the machines, so unfortunately it's not that which is causing our problems.
     
  7. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    I've put in a ticket about this and brought it to Nicks attention, so hopefully we'll see some progress of this soon.

    Noticed quite a few more threads on this in other parts of the forum, and have directed those to here.
     
  8. Slav

    Slav Well-Known Member

    Joined:
    Oct 28, 2002
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    Yes i can say we are having the same problem on both our machiness too. Hope this gets fixed as i got people screaming at me all the time also....
     
  9. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    The only problem with that is the next time you run upcp and there is a newer version of exim available your older version will get upgraded to the new version but you can stop that by doing this;

    cd /usr/sbin
    chattr +i sendmail

    That way if you have rolled back to an older version of Exim the newer one will not install over it. :D
     
  10. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    check to see weather you got any of the following in your exim.conf

    deliver_load_max
    deliver_queue_load_max
    queue_only_load

    e.g. egrep '(deliver_load_max|deliver_queue_load_max|queue_only_load)' /etc/exim.conf
    if they try commenting them out then kill -HUP eximpid (as root or restart exim if you prefer)
     
    #10 howard, Apr 22, 2003
    Last edited: Apr 22, 2003
  11. fredkk

    fredkk Registered

    Joined:
    Nov 18, 2002
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Mail server

    :mad: I have two servers and I am having the same trouble, when I ran /scripts/newexim it deliveryed the mail right away and then went right back to the same problem. When you run a mail trouble check from the WHM you get mail router error,. I have tried everything that I can think of and still the mail will not go through sometimes for hours and sometimes it never goes through. And it does not bounce either, any suggestions? I am lost at this point
     
  12. Silverado

    Silverado Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    154
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Backyard - Poolside
    Howard, could you explain a little more on what effect this does or doesn't have? And what you have set yours to? And, did it help the matter any?
    Thank you.
     
  13. fredkk

    fredkk Registered

    Joined:
    Nov 18, 2002
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    exim mail

    This is what I just got when I tried to send the queue manually
    Single queue run
    LOG: 0 MAIN
    Start queue run: pid=10557
    delivering message 198AK4-0002aB-00 (queue run pid 10557 fd 5)
    LOG: 5 MAIN
    == fredkk@pay-email.com T=virtual_userdelivery defer (-43): Retry time not yet reached
    LOG: 0 MAIN
    End queue run: pid=10557
    Complete

    It did not send a dang thing it is still sitting on the server
     
  14. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    queue_only_load will cause exim to autoplace messages on the queue if the load avg on the machine is above the specifed value

    deliver_load_max will cause exim to not do any message deliveries if the load avg is above the value specfied if it is in the middle of a queue run then it will check to see if the deliver_queue_load_max is sey if the load is above the value specifed then the run will be aborted

    deliver_queue_load_max will help exim to decide weather to abort a queue run with regard to the above

    Heres the offical explantion frm the exim docs

    the exim+viruscan package sets the above options to the following

    deliver_load_max = 3
    deliver_queue_load_max = 5
    queue_only_load = 4

    the rpm (e.g. exim-3.36-xxx_cpanel_stmpcontrol_antivirus.i386.rpm) exim.conf only sets deliver_queue_load_max to the following

    deliver_queue_load_max = 3

    You can comment these out if people wish then exim won't bother about the load stuff, or set the defaults higher
     
  15. Silverado

    Silverado Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    154
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Backyard - Poolside
    Thanks Howard.... LOL. I was just looking at it when I got your new post. I should have known that... brainlock I think.
    Anyway... have you tried commenting them out? This seems like a very viable solution to me...... a little risky.. but maybe worth it.

    Shell is open now.... just waiting to see if you've tried it.

    This is all that is under that heading.
    # primary_hostname =
    deliver_queue_load_max = 5
    sender_verify = true
    headers_sender_verify = true

    I already set it to 5 a couple of weeks ago.... and it helped a little... just not sure if I should throw it up to 10 or 20 because I thought that was only used for when you "force delivery".

    Another Add in edit.... I just set it to 20... restarted exim and it had no effect. I am about 100% sure this is only to set the "forced delivery" load.
     
    #15 Silverado, Apr 22, 2003
    Last edited: Apr 22, 2003
  16. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Re: exim mail

    [see post above for actual queue run] ]

    My guess would be that whm is calling exim with just the -q option which respects retry time intervals to override them you need to use -qf (.e.g /usr/sbin/sendmail -qf)

     
    #16 howard, Apr 22, 2003
    Last edited: Apr 22, 2003
  17. howard

    howard Well-Known Member

    Joined:
    Apr 20, 2003
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Well i personally have however I think it depends on what sort work or load your machine generally has/does (this where sar or mrtg can be invaluable) they are mainly used to stop exim contributing to the mess if your machine goes into high loads suddenly e.g. from a runaway script or stop exim from causing problems in the first place if something goes wrong due to a external force such as if someone accidently sends a virus to a list then everyone av program telling the list (or
    trying to) that x virus has been sent to them
     
    #17 howard, Apr 22, 2003
    Last edited: Apr 22, 2003
  18. andyf

    andyf Well-Known Member

    Joined:
    Jan 7, 2002
    Messages:
    246
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    Same problems even with this update.
     
  19. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
  20. elenlace

    elenlace Well-Known Member

    Joined:
    Sep 10, 2002
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    Hello sexy_guy,

    I followed your instructions of "chattr +i sendmail" but know everytime I run scripts/newexim I get:

    ---------------------------------------------------------
    Waiting for exim to restart..............finished.

    exim dead but subsys locked

    (some other things)...

    Apr 24 20:12:03 server1 exim: 2003-04-24 20:12:03 Failed to open configuration file /etc/exim.conf
    ---------------------------------------------------------

    Also, my exim.conf and exim.pl get erased during this process. I was able to get exim back up by manually copying exim.conf and exim.pl from a backup I had and restarting exim manually; although it do works exim is shown down in WHM.

    Any insight on what might have gone wrong? Can i reverse the "chattr sendmail" change to test if this is causing the problem? Any chance you might know how to get a clean copy of exim and just plain reinstall it?

    Any help is appreciated,

    AA
    elenlace
     
Loading...

Share This Page