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 Problem?

Discussion in 'E-mail Discussions' started by NetBloke, Sep 18, 2007.

  1. NetBloke

    NetBloke Member

    Joined:
    Mar 18, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle, Washington, USA
    Hello

    I am having a problem with server load and trying to work out what this process (that seems to be the culprit for using server time) is. Here it is:

    mailnull 0 0.5 0.2 /usr/sbin/exim -bd -q60m

    I have up to 20 of these running at the same time and the CPU load goes through the roof.

    Thanks for any advice in advance!
     
  2. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    I have the same problem. Did you find what was wrong?

    Regards, Erik
     
  3. NetBloke

    NetBloke Member

    Joined:
    Mar 18, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle, Washington, USA
    No ..no replies...if you find a solution please let me know
     
  4. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    same here, mailnull use a lot of resource!
     
  5. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    I did not find tehnical solution but did solve problem at the time. I have found that in mail queue was a lot of emails from one user only. User was obviously in stage of huge mailing. I tryed to force resend those stuck mails since they have stuck in queue but all mails from queue could not be delivered, not all with same error but anyway all of them could not be delivered becouse some kind of error. Since they would only site in the queue and bounce, eating my server load I have deleted them. I know that is not exactly good solution but if I would not do that my server would become overloaded.


    Regards, Erik
     
  6. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Make sure none of your users are using :blackhole: . If they are, change them to fail.

    If you are just getting tons of mail, you might want to just turn on rbls in the exim config editor in whm. This can do wonders for lowering your load.
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    For further reference, Chirpy here on the forums wrote an excellent explanation as to the reasoning behind using :fail: rather than :blackhole: - you can find this at:

    http://www.configserver.com/free/fail.html
     
  8. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Hm, went looking for the perl script that was written to automatically set all to fail and notice I now have 2 on this box. Did CPanel implement this into /scripts now?

    Anyway, here it is:
    Code:
    #!/usr/bin/perl
    print "Converting all domain Default Accounts to :fail: ...";
    opendir (DIR, "/etc/valiases/") or die;
    while (my $file = readdir (DIR)) {
            if ($file =~ /^\./) {next}
            open (IN, "</etc/valiases/$file") or die;
            my @data = <IN>;
            close (IN);
            open (OUT, ">/etc/valiases/$file") or die;
            foreach my $line (@data) {
                    if ($line =~ /^\*\:/) {
                            print OUT "*: :fail:\n";
                    } else {
                            print OUT $line;
                    }
            }
            close (OUT);
    }
    print "Done!\n";
    
     
  9. 7thDsites

    7thDsites Member

    Joined:
    Jun 21, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    MT
    we've been having the same problems with the loads and I do get a ton of mail that I purge from the queue several times daily
    - it seems though that the mail in the queue is generally the result of people on our server getting spoofed - I could be wrong though

    anyway; starting about a month ago in addition to the load being high exim now fails and automagically restarts many times per day

    obviously this could be a few things but I don't even know where to start to troubleshoot/resolve this.

    any assistance is much appreciated!
     
  10. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    same problem here, mailnull use a lot of resource and my server go offline.
     
  11. webicom

    webicom Well-Known Member

    Joined:
    Mar 30, 2004
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Slovenia
    Try if it helps as it did for me in one of my previus post:
    I did not find tehnical solution but did solve problem at the time. I have found that in mail queue was a lot of emails from one user only. User was obviously in stage of huge mailing. I tryed to force resend those stuck mails since they have stuck in queue but all mails from queue could not be delivered, not all with same error but anyway all of them could not be delivered becouse some kind of error. Since they would only site in the queue and bounce, eating my server load I have deleted them. I know that is not exactly good solution but if I would not do that my server would become overloaded.
     
  12. beekeeper

    beekeeper Active Member

    Joined:
    Apr 28, 2003
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Australia
    mailnull high load

    In the past 3 days I am seeing many (20+) instances of the following and exim regularly failing hourly:

    mailnull 6324 0.3 0.2 6908 3056 ? S 22:34 0:00 /usr/sbin/exim -bd -q120m

    My mail queue has only about 100 messages and nothing noteworthy.

    Any good ideas to troubleshoot this would be welcome.
     
  13. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    201
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I get the same thing 2-3 times per day. Sometimes exim fails, other time it doesn't.
     
Loading...

Share This Page