Tony Hoyle said: >> -----Original Message----- >> From: Michael Leone [mailto:[EMAIL PROTECTED]] >> Sent: 18 July 2002 16:15 >> To: [EMAIL PROTECTED] >> Subject: Re: [SAtalk] newbie question about rule base >> >> >> Hmmm. Well, I can try it again. What info should I post, to determine >> whether I have a problem with my installation or setup? I'm >> using SA from >> Debian unstable, so it's v2.31. I can post some mail logs >> snips, showing >> the speed once maildrop starts calling spamc.
Here's a sample log with both amavisd-new scanning for viruses and spam-scanning, and me calling "spamc" from my maildrop .mailfilter. (BTW ... it's "viruses", not "virii" :-) Jul 18 14:12:10 mail spamd[26452]: server started on port 783 Jul 18 14:13:28 mail postfix/smtpd[26423]: connect from wine.codeweavers.com[198.144.4.3] Jul 18 14:13:28 mail postfix/smtpd[26423]: 469D517C2: client=wine.codeweavers.com[198.144.4.3] Jul 18 14:13:28 mail postfix/cleanup[26459]: 469D517C2: message-id=<[EMAIL PROTECTED]> Jul 18 14:13:28 mail postfix/qmgr[18634]: 469D517C2: from=<[EMAIL PROTECTED]>, size=2799, nrcpt=1 (queue active) Now Amavis starts to virus scan, using F-Prot, and spam-scan. Jul 18 14:13:28 mail amavis[26412]: (26412-02) SMTP-in /var/amavis/amavis-20020718T141015-26412: <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]> Received: from mail.mike-leone.com ([127.0.0.1]) by localhost (mail.mike-leone.com [127.0.0.1]) (amavisd-new) with SMTP id 26412-02 for <[EMAIL PROTECTED]>; Thu, 18 Jul 2002 14:13:29 -0000 (EDT) Jul 18 14:13:28 mail amavis[26412]: (26412-02) Checking: <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]> Jul 18 14:13:30 mail amavis[26412]: (26412-02) spam_scan: tests=, <[EMAIL PROTECTED]> Jul 18 14:13:30 mail amavis[26412]: (26412-02) fwd via smtp: [127.0.0.1:10025] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]> Jul 18 14:13:30 mail postfix/smtpd[26462]: connect from localhost[127.0.0.1] Jul 18 14:13:30 mail postfix/smtpd[26462]: 30DEA1F41: client=localhost[127.0.0.1] Jul 18 14:13:30 mail postfix/cleanup[26459]: 30DEA1F41: message-id=<[EMAIL PROTECTED]> Jul 18 14:13:30 mail postfix/qmgr[18634]: 30DEA1F41: from=<[EMAIL PROTECTED]>, size=3288, nrcpt=1 (queue active) Jul 18 14:13:30 mail postfix/smtpd[26462]: disconnect from localhost[127.0.0.1] Jul 18 14:13:30 mail amavis[26412]: (26412-02) mail checking ended: DELIVERED Amavisd done. Total time = 2 seconds. Jul 18 14:13:30 mail postfix/smtp[26460]: 469D517C2: to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=2, status=sent (250 Ok, id=26412-02, from MTA: Ok: queued as 30DEA1F41) Jul 18 14:13:30 mail spamd[26452]: connection from localhost [ 127.0.0.1 ] at port 40271 Jul 18 14:13:30 mail spamd[26466]: info: setuid to turgon succeeded Here comes spamc calling spamd. Jul 18 14:13:30 mail postfix/smtpd[26423]: disconnect from wine.codeweavers.com[198.144.4.3] Jul 18 14:13:36 mail spamd[26466]: clean message (0.0/7.0) for turgon:1000 in 6 seconds, 3313 bytes. spamc done. Total time = 6 seconds. So far, spamc/spamd is still 3x slower than amavisd (which is also virus scanning). turgon@mail:~$ ps ax | grep spam 26452 ? S 0:00 /usr/bin/perl /usr/sbin/spamd -c -d --pidfile=/var/run/spamd.pid >From /etc/spamassassin/10_misc.cf: <snip> ########################################################################### # Default prefs values: users can override these in their # ~/.spamassassin/user_prefs files. # How many hits before a mail is considered spam. required_hits 7 # Mail using locales used in these country codes will not be marked # as being possibly spam in a foreign language. ok_locales en # Mail using languages used in these country codes will not be marked # as being possibly spam in a foreign language. This is an expensive # test, so it is set to "all" so the test will not be used by default. ok_languages all # Some common prefs settings can be set here, to take effect site-wide # unless the user override them. See the .prefs file for explanations. rewrite_subject 1 report_header 1 subject_tag *****SPAM***** # use_terse_report 0 defang_mime 1 skip_rbl_checks 1 razor_check 0 razor_timeout 1 # check_mx_attempts 3 # check_mx_delay 5 score RAZOR_CHECK 0 Amavisd-new doesn't put the spam score in NON-SPAM emails, but I guess I can live with that. Especially since it's still so much quicker. Altho thanks to everyone for pointing out the rbl and razor speedups. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk