-----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
I'm a little closer, I think. I ran pyzor command line with debug and
found I hadn't actually changed the server so I got that resolved but
I'm still timing out.
[EMAIL PROTECTED] Mail-SpamAssassin-3.1.7]# /usr/bin/pyzor -d check <
sample-spam.txt
calculated digest: d152948f7f029b35691afa499c145797558b2fff
sending: 'User: anonymous\nTime: 1178753203\nSig:
7d26c92a4dbf319e550b8b602f8a0cf52c55fda8\n\nOp: check\nOp-Digest:
d152948f7f029b35691afa499c145797558b2fff\nThread: 15934\nPV: 2.0\n\n'
82.94.255.100:24441 TimeoutError:
A friend of mine mentioned something about pyzor and having to open
certain ports from the Internet in your firewall? This box is behind a
cisco ACL with nothing blocked outbound, allowing any established TCP
sessions back in, and only needed TCP ports incoming (25, 80, etc).
Could this be part of my problem? Are there inbound ports TCP/UDP that
need to be opened up for this to work correctly?
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/