At 07:03 PM 9/12/2007, Justin Kim wrote:
>For 12 connection on amavis, I setup postfix master.cf to have the same
>process number. And postfix, amavis everything is localhost.
>For 20 max_server numbers on separate amavis1 server, I didn't do anything
>on postfix master.cf side. Is that causing the problem? Should I match that
>number too?

Postfix won't make more than the configured number of connections, in 
this case 12.  It's OK for amavisd-new to have a greater number of 
servers, but they won't be used.

Beware the opposite situation, where postfix is making more 
connections than amavisd-new has servers.  Such as situation will 
lead to all kinds of problems.  I don't think this is your trouble.

>And I don't know where I setup 1200 seconds.

That's the -o smtp_data_done_timeout you specified in the postfix 
master.cf amavisd-new entry.

> > Does amavisd-nanny show more than 12 connections in use at a
> > time?  If not, good.  You may need to reduce the number of
> > connections allowed in the postfix master.cf amavisd entry to get the
> > processing time down to some reasonable number.
> >
> > I see you have amavisd-new configured for 20 servers.
> > Are you running out of memory?  CPU stuck at 100%?
> >
> > You might try running "amavisd debug" or "amavisd debug-sa" to help
> > find the bottleneck.
> >
> > Good luck.
> >
> > --
> > Noel Jones
>
>
>Can you help me to pin point the problem?
>Can this be a DNS related problem? Does amavis server need to have the
>correct DNS server setup? (the same one as the postfix server is using?)

Yes, fast DNS is a requirement!! SpamAssassin can trigger dozens of 
DNS lookups for a single message.  To test this, in amavisd.conf set:
$sa_local_tests_only = 1;
to disable all network tests.  If throughput goes way up, you've 
probably found the problem.

>On my postfix localhost where 12 max_server is configured amavisd-nanny
>shows:
>PID 02500: .             0:00:01 .
>PID 02607: 02607-06-4    0:00:03 ===
>PID 02627: .             0:00:01 .
>PID 02856: 02856-04-8    0:00:01 =
>PID 03134:               0:00:03 ...
>PID 03244:               0:00:05 .....
>PID 03327: 03327-04-2    0:00:04 ====
>PID 03450: 03450-02      0:00:02 ==
>PID 03463: 03463-02-2    0:00:01 =
>PID 03682:               0:00:03 ...
>PID 04076: .             0:00:01 .
>PID 04331:               0:00:03 ...

OK, looks like messages are processed in just a few seconds.

>PID 14849: 14849-01      0:00:49 =====SSSS:SSSSSSSSS:SSSSSSSSS:SSSS>
>PID 14850: 14850-01-10   0:00:03 =SSS
>PID 14851: 14851-01-5    0:00:00 S
>PID 14852:               0:00:47 .........:.........:.........:.....
>PID 14853: 14853-01-6    0:00:00 S
>PID 14854:               0:00:46 .........:.........:.........:.....
>PID 14855:               0:00:49 .........:.........:.........:.....
>PID 14856: 14856-01-8    0:00:03 SSS
>PID 14857: 14857-02-6    0:00:03 =SSS
>PID 14858:               0:00:49 .........:.........:.........:.....
>PID 14859:               0:00:49 .........:.........:.........:.....
>PID 14860: 14860-01-10   0:00:08 SSSSSSSSS
>PID 14861: 14861-01-6    0:00:10 SSSSSSSSS:S
>PID 14862: 14862-01-6    0:00:11 =SSSSSSSS:SS
>PID 14863: 14863-01-8    0:00:01 S
>PID 14864: 14864-01-7    0:00:07 SSSSSSS
>PID 14865:               0:00:49 .........:.........:.........:.....
>PID 14866: 14866-01-5    0:00:00 F
>PID 14867:               0:00:48 .........:.........:.........:.....
>PID 14868:               0:00:48 .........:.........:.........:.....

Looks like messages are taking longer to be processed.  Notice that 
only 12 PID's are active.

-- 
Noel Jones 


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to