On Sat, Aug 23, 2003 at 05:49:58PM +0800, william villanueva wrote:
> Checking the logs though, I see a couple of SpamAssassin timed out
> errors.  Might be these affecting MailScanner 'coz when I disable
> SpamAssassin, the load drops.  Problem is figuring how to enable
> SpamAssassin without hiking the load.

I use neither MailScanner nor Sendmail. Instead I use amavisd-new and
Postfix. I use SpamAssassin with DNS and Bayesian checks enabled, and
also have amavisd-new call ClamAV for virus scanning.

I had previously misconfigured the Postfix + amavisd-new tandem which
caused my system to grind to a halt when mail would flood in, usually
after system downtime, by which time mail would have accumulated in
various mail servers that would send them in as fast as possible when
the link came back up.

Now I throttle the rate at which Postfix sends amavisd-new mail for
scanning (amavisd-new handles calling SpamAssassin), limiting it to 5
simultaneous connections through the /etc/postfix/master.cf entry:

smtp-amavis unix -      -       n       -       5       lmtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes

My setup has since been fairly resistent to spikes in mail traffic.
Postfix is reasonably resource-friendly, and happily keeps mail in its
queue, pushing a maximum of 5 messages at a time to amavisd-new.

Because I don't use the Sendmail + MailScanner tandem, I don't know how
to achieve similar results with your setup. Neither Postfix nor
amavisd-new are that difficult to setup, though. If my success story is
inspiring enough and you can't figure out how to solve the problems with
Sendmail + MailScanner, perhaps you can think about switching to Postfix
and amavisd-new.

 --> Jijo

-- 
Federico Sevilla III  : http://jijo.free.net.ph      : When we speak of free
Network Administrator : The Leather Collection, Inc. : software we refer to
GnuPG Key ID          : 0x93B746BE                   : freedom, not price.
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to