List Info

Thread: Loading recomendations




Loading recomendations
country flaguser name
United Kingdom
2007-09-11 10:32:37
Firstly I would like to thank Mark Martinec for an excellent
piece of code!

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?

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?

Kind regards

Benedict White



------------------------------------------------------------
-------------
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-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Loading recomendations
country flaguser name
United States
2007-09-11 10:45:31
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-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )