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.

spamd causes too much load... can it be run elsewhere?

Discussion in 'E-mail Discussions' started by jnetsurfer, Nov 1, 2007.

  1. jnetsurfer

    jnetsurfer Member

    Joined:
    Feb 20, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hello everyone,

    On one of my servers, spamd sometimes eats up way too much CPU time and causes too much load. Is there any way I can have a separate server handle spamd? Or maybe a separate server for all email traffic?

    -Josh
     
  2. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Few steps, that could help you:

    *** In Setup Spamd Startup Configuration - set maximum children processes to 5.


    *** In exim advanced configuration:

    ENABLE:
    Reject mail at SMTP time if the spam score from spamassassin is greater than 15.0.

    DISABLE:
    Reject mail with a failure message if the spam score from spamassassin is greater than ***


    *** In exim's advanced editor add this to the first input (you may want to play with smtp_accept_max a little bit, if you have problems):

    ignore_bounce_errors_after = 45m
    auto_thaw = 4h
    timeout_frozen_after = 3d
    smtp_enforce_sync = true

    queue_only_load = 4
    deliver_queue_load_max = 10

    smtp_load_reserve = 10
    smtp_accept_max=100
    smtp_accept_max_per_host = 5
    smtp_receive_timeout=1m

    remote_max_parallel = 5
    queue_run_max = 20

    Anton.
     
  3. ncrossland

    ncrossland Member

    Joined:
    Sep 23, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    We had tried everything to reduce the CPU load - we found (on advice from our server providers) the cause was auto-whitelist files which had grown huge (e.g. each file up to 20 MB was loaded and processed for every mail that arrived). Deleting all the auto-whitelist files, and disabling it in the spamassassin conf has brought things under control again, with no apparent loss in detection accuracy.

    (this worked for us, it may or may not be good advice)
     
  4. jnetsurfer

    jnetsurfer Member

    Joined:
    Feb 20, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks

    Thanks for the advice. Anton, I'll let you know if that helps. ncrossland, where are auto-whitelist files located?
     
  5. ncrossland

    ncrossland Member

    Joined:
    Sep 23, 2003
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    in each user's

    /home/username/.spamassassin
     
  6. u-hosts

    u-hosts Member

    Joined:
    Dec 7, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Why don't you use MailScanner + SpamAssassin ?
     
  7. jnetsurfer

    jnetsurfer Member

    Joined:
    Feb 20, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I'm considering a VMWare virtual appliance with MailScanner. That way I can send all email to that, and then it can forward email to exim on my cPanel server.
     
Loading...

Share This Page