-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary V
Sent: Wednesday, May 09, 2007 4:51 PM
To: [email protected]
Subject: Re: [AMaViS-user] processing times
Dylan wrote:
> SA check: 223 (43%)
> SA check: 5748 (95%)
OK, so you know it's spamassassin network tests. Grab a test message
and feed it to spamassassin in debug mode and pipe it through a perl
function that Mark mentions:
su amavis -c 'spamassassin -D < email.txt 2>&1' | timestamp
where timestamp is a function in my .bashrc :
function timestamp()
{ perl -MPOSIX -MTime::HiRes -n -e '
BEGIN {$|=1; $dp=0; $t0=Time::HiRes::time};
$t=Time::HiRes::time; $dt=$t-$t0; printf("%s%06.3f %4.3f %4.3f
%s",
POSIX::strftime("%H:%M:",localtime($t)), $t-int($t/60)*60,
$dt, $dt-$dp, $_); $dp=$dt' $*
}
Or pipe it directly to the one liner:
su amavis -c 'spamassassin -D < email.txt 2>&1' | perl -MPOSIX ....
and look for the network tests.
you can send output to a file (send to your amavis home directory) by
tacking on something like this to the end of the statement:
>/var/amavis/0.log 2>&1 &
I noticed in mine:
14:43:17.936 3.994 0.000 [31178] dbg: uridnsbl: queries completed: 1
started: 0
14:43:17.936 3.994 0.000 [31178] dbg: uridnsbl: queries active: at Wed
May 9 14:43:17 2007
14:43:21.357 7.415 3.421 [31178] dbg: dns: success for 8 of 9 queries
14:43:21.357 7.415 0.000 [31178] dbg: dns: timeout for bsp-firsttrusted
after 6 seconds
See the big delay? And I ran out of time.
One thing that can make a difference is how responsive your DNS server
is. Typically a local caching DNS server is recommended. Really I'm
not surprised net tests take 5 seconds. What is more strange is how
you get your other server to perform network tests in 1 second.
Gary V
So it looks like pyzor is my issue.
19:07:11.045 4.313 0.001 [3957] dbg: util: executable for pyzor was
found at /usr/bin/pyzor
19:07:11.045 4.313 0.000 [3957] dbg: pyzor: pyzor is available:
/usr/bin/pyzor
19:07:11.049 4.318 0.004 [3957] dbg: info: entering helper-app run mode
19:07:11.050 4.318 0.001 [3957] dbg: pyzor: opening pipe: /usr/bin/pyzor
check < /tmp/.spamassassin3957YCDfwHtmp
19:07:11.056 4.325 0.006 [3958] dbg: util: setuid: ruid=504 euid=504
19:07:16.051 9.319 4.994 [3957] dbg: pyzor: killed stale helper [3958]
19:07:16.054 9.322 0.003 [3957] dbg: pyzor: [3958] terminated:
exit=0x000f
19:07:16.054 9.322 0.000 [3957] dbg: info: leaving helper-app run mode
19:07:16.054 9.322 0.000 [3957] dbg: pyzor: check timed out after 5
seconds
I ran the same thing on my other box and it appears pyzor is not enabled
so that may better explain the time processing differences. What do I do
to fix pyzor if it's timing out? I changed the server file in the amavis
home directory per your suggestion but I guess that isn't the issue.
Also, this is a DNS server as well.
Dylan
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/