Re: [AMaViS-user] Loading recomendations

This is a discussion on Re: [AMaViS-user] Loading recomendations within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; At 08:32 AM 9/11/2007, Benedict White wrote: >Firstly I would like to thank Mark Martinec for ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2007
Nate
 
Posts: n/a
Default Re: [AMaViS-user] Loading recomendations

At 08:32 AM 9/11/2007, Benedict White wrote:
>Firstly I would like to thank Mark Martinec for an excellent piece of code!


I second that!!

>I have a server (well I run about 10 or so now)
>
>the setups are all postfix MTA to Amavisd with Spamassassin, using
>Razor, Pyzor and DCC.
>
>What I need to know is how far I can push the maximum number of
>child processes (max_servers) in postfix and amavisd?


My rule of thumb is apx 5 processes per CPU/Core. That seems to keep
the CPU loaded with body scanning while some other slower processes
that require more time than cpu (disk/network) complete. I've gone
as high as 10 per CPU and it's a little more efficient; however, the
memory requirements become pretty extreme.


>Also, as one of my servers rejects 70% of the mail that hits it, do
>I need to have the same number of smtp threads in postfix as well as
>amavisd or can I get away with less amavisd severs?


Incoming smtp connections are always going to be much much greater
than amavis smtp connections. For instance, a 4 core server here I
run 750 smtpd maximum processes, while amavis gets 20. The reason is
there are considerably more incoming connections to the mail server
which either a) take a long time to complete due to network
connections/large attachments, and b) a lot of incoming connections
get rejected immediately by RBLs and never reach amavis.

Another item i've noticed which has required an increase to postfix
smtp maxproc is there are a ton of either open relays or malware
infected machines out there that open up a smtp connection, and sit
idle never sending anything. By default postfix will wait 5 minutes
before disconnecting them. So to solve the issue I've increased
allowable smtp connections and also added smtpd_timeout = 30s in main.cf.

- Nate


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0