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.

MailScanner + Exim

Discussion in 'E-mail Discussions' started by gal3ler, Apr 6, 2006.

  1. gal3ler

    gal3ler Active Member

    Joined:
    Dec 7, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    We're currently using Chirpy's MailScanner + Exim for our outgoing mail gateway. I was wondering if anyone had any good settings for Exim + MailScanner for a very busy server. The server is:

    Dual Xeon 2.4Ghz
    4GB RAM
    RHEL 4

    MailScanner is just having a hard time keeping up with scanning all of the incoming messages and I was wondering if there's a way to increase it's performance along with Exim to have them handle more messages.
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. 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 couple of things to get you started:

    1. Use the dictionary attack ACL and make sure all :blackhole: are changed to :fail: in /etc/valiases/*

    2. If you get a lot of RBL hits, it might be a good idea to offload RBL rejection directly into an exim ACL rather than having MailScanner do it

    3. Run a local caching DNS server if you aren't already and be sure that it is the first listed nameserver IP address (i.e. that of your server) at the top of /etc/resolv.conf

    4. Reducing the number of children down to 2 in MailScanner.conf can help with load, but can adversely affect the speed of delivery if a queue builds up
     
  4. gal3ler

    gal3ler Active Member

    Joined:
    Dec 7, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Yeah right now the children is set to 20 heh

    Lots of email going through this test gateway.

    How do these look:

    Max Children = 20
    Queue Scan Interval = 6


    Max Unscanned Bytes Per Scan = 1000000
    Max Unsafe Bytes Per Scan = 500000
    Max Unscanned Messages Per Scan = 90
    Max Unsafe Messages Per Scan = 5


    Max Normal Queue Size = 1500
     
  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
    I would suggest 20 is way too high. I would never set it above 5 and then only on a 4GB server. 3 is usually perfectly sufficient for most web server usage.
     
Loading...

Share This Page