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 is running rich, anyone have thoughts on how to chill it out?

Discussion in 'General Discussion' started by DWHS.net, May 26, 2005.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    EXIM for as far back as I can remember is the heaviest resource on our servers. Anyone have thoughts on how to keep it more chill?

    This is a open question for opinions and anyone that might know how to run EXIM with high mail smoothly.

    It almost always is running at 99% of it's load level.

    Any thoughts good or bad is much appreciated. :)
     
  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
    A few important considerations if you haven't already done so:

    1. Make sure all the /etc/valiases/domain.com are using :fail: and not :blackhole:
    http://www.configserver.com/free/fail.html

    2. Where possible, make sure that all the valiases domains have the catchall disabled and set to :fail:

    3. Install a dictionary attack ACL:
    http://www.configserver.com/free/eximdeny.html

    4. Make sure that you have not set split_spool_directory to no (i.e. use the default yes)

    5. Make sure you're running exim v4.50:

    exim -bV

    If it's not:

    /scripts/updatenow
    /scripts/eximup


    6. Make sure that you don't have the queue processing running too frequently, i.e. leave WHM > Tweak Settings > Number of minutes between mail server queue runs > 60

    7. Make sure that you have both of the following selected in WHM > Exim Configuration Editor>

    Verify the existance of email senders
    Discard emails for users who have exceeded their quota

    8. In conjuction with sender verification, make sure that you're running bind on your server locally and that it is working and that your servers main IP address appears as the top nameserver in /etc/resolv.conf

    9. Limit the length of time that you keep bounce emails in the queue by adding the following into the first texarea of the advanced exim editor:

    timeout_frozen_after = 2d
    ignore_bounce_errors_after = 12h

    All the above can often make a huge difference to the exim load.
     
  3. Monil

    Monil Member

    Joined:
    Apr 18, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London, UK
    Hi chirpy,

    I have a question for you. Currently my mail server has about 660,000 mails in the queue, most of which are bounces with frozen status.

    Would using:

    timeout_frozen_after = 2d
    ignore_bounce_errors_after = 12h

    slowly delete the frozen mails and allow my mail server to continue functioning normally without delay, etc?

    Any response would be greatly appreciated. :)
     
  4. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
  5. 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 problem comes when you don't actually want to purge the whole queue, but just clear off bounces which those two variables should indeed help with.
     
  6. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    How do you impliment these two features in exim config editor?


    7. Make sure that you have both of the following selected in WHM > Exim Configuration Editor>

    Verify the existance of email senders
    Discard emails for users who have exceeded their quota
     
  7. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Nevermind :) Been used to going straight to advanced.

     
  8. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    This is a great topic, exim is always at the top of my cpu usage meters.

    My resolve file shows this.

    search dwhs.net
    nameserver 66.250.110.98
    nameserver 66.250.110.99

    That domain is not on this server but is the second part of the host name. dwhs666.dwhs.net (evil server)

    And the name servers are not the name servers for the server but for the data center.

    Do you think that would matter?

    Thanks,
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes, it certainly can. If your NOC's DNS servers become slow or non-responsive your server will have a lot of problems, particularly with email which can cause quite a backlog, especially if waiting for timeouts on DNS queries. I'd always recommend having a locally running DNS server, rather than using a NOC's, otherwise you're at the whim of their service - if you don't want to use it as full blown nameserver you can set one up to just be a local name resolver.
     
  10. beano

    beano Registered

    Joined:
    Jun 18, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Exim Retry Configuration

    At the end of the exim configuration editor there is a section for "retry rules."

    Does anyone know whether the rules go in the first box or the second box?
     
Loading...

Share This Page