On Sat, 9 Sep 2006 21:39:07 -0600 Hank <[EMAIL PROTECTED]> wrote: > I've been running with amavisd-new/spammassassin/postfix/mysql for some > time without any problems. I've been tagging and passing SPAM to my > users, and now I'm trying to implement the squirrelmail plugin > amavisnewsql, for releasing quarantined spam, etc. Anyway, I have two > mailservers running identical setups and configs (minus some settings > ie: $mydomain, $myhostname, and @local_domains_maps(), etc). The first > server I made adjustments to amavisd.conf for quarantining mail and to > not pass (D_DISCARD) using bsmtp as spam_quarantine_method. Everything > worked great, spam was quarantined, and squirrelmail can release the > mails. > > Now, when I tried to implement the same settings on server number two, > I'm unable to get any spams in the quarantine, they are all discarded. > The confs are basically the same, I'll post server two's related config > blocks, let me know if you need other sections (didn't want to paste > the entire config in here). > > $final_virus_destiny = D_DISCARD; > $final_banned_destiny = D_DISCARD; > $final_spam_destiny = D_DISCARD; > $final_bad_header_destiny = D_PASS; > > $QUARANTINEDIR = "$MYHOME/quarantine"; > > $virus_quarantine_method = 'bsmtp:virus-%i-%n'; > $spam_quarantine_method = 'bsmtp:spam-%b-%i-%n'; > $banned_files_quarantine_method = 'bsmtp:banned-%i-%n'; > $bad_header_quarantine_method = 'bsmtp:badh-%i-%n'; > > $sa_local_tests_only = 0; > $sa_mail_body_size_limit = 200*1024; > $sa_tag_level_deflt = -999; > $sa_tag2_level_deflt = 5.0; > $sa_kill_level_deflt = $sa_tag2_level_deflt; > $sa_dsn_cutoff_level = 10; > $sa_spam_subject_tag = '***SPAM*** '; > $sa_spam_level_char = '*'; > $sa_spam_report_header = 1; > $first_infected_stops_scan = 1; > > Normally, I should have a 'quarantine: spam-blahblahblah' in there. > Nothing ever gets pushed to my quarantine directory. Now, I'm noticing > some weird behaviour. In my quarantine directory I have 'badh-' and > 'virus-' emails. Bad header mails should not be in there since it's set > with D_PASS. Virus should be and it works, but SPAM never makes it in. > Every time I make a config change, I've made sure I restarted the > service. I also reinstalled amavisd-new from source. > > Here are my permissions on the quarantine directory (also including the > badh example mail): > drwxr-x--- 3 amavis amavis 248 Sep 9 15:44 . > drwxr-xr-x 8 amavis amavis 456 Sep 9 15:38 .. > drwxr-xr-x 2 amavis amavis 48 Sep 9 13:09 .notstored > -rw-r----- 1 amavis amavis 11513 Sep 9 14:07 > badh-20060909-140735-12365-01 > > Here are the relevant versions I'm running (on a Gentoo system) > mail-filter/amavisd-new-2.4.1 > mail-mta/postfix-2.2.10 > dev-db/mysql-4.1.21 > mail-filter/spamassassin-3.1.3 > > Here are some relevant items on amavis startup. Let me know if you need > full output. > > Sep 9 14:40:31 comp /usr/sbin/amavisd[581]: ANTI-VIRUS code > loaded > comp /usr/sbin/amavisd[581]: ANTI-SPAM code loaded > comp /usr/sbin/amavisd[581]: ANTI-SPAM-SA code loaded > comp /usr/sbin/amavisd[581]: Unpackers code loaded > comp /usr/sbin/amavisd[581]: BSMTP-out proto code loaded > comp /usr/sbin/amavisd[581]: SQL base code loaded > comp /usr/sbin/amavisd[581]: SQL::Log code NOT loaded > comp /usr/sbin/amavisd[581]: SQL::Quarantine NOT loaded (I don't > think this matters, but wanted to list it. The working server does not > have this loaded as well) > > Any ideas/recommendations are greatly appreciated. I'm wondering if > there is a perl module that is acting improperly further in.. I'm just > running out of ideas and options. Please let me know if you'd like me > to provide any additional config settings or log output.
Hello I cranked debug to 5 and ran my test again. Items of interest are below. do_notify_and_quarantine: ccat=Spam, (6,0) do_notify_and_quarantine - done sending SMTP response: "250 2.7.1 Ok, discarded, id=10556-01- SPAM" If you'd like to see the SPAM block in the debug log, I created an external file here (http://www.bevelstudio.com/tmp/log.txt), since formatting would look bad in the email. Reading the docs (http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine) I noticed this paragraph: "When using the "bsmtp:" quarantine method and versions of amavisd-new earlier than 2.2.0, the *_quarantine_to was completely ignored, which made it impossible to turn off quarantining selectively for certain users by specifying an empty or undef value. Since 2.2.0, an empty *_quarantine_to turns off quarantine for a recipient regardless of the quarantine method. A nonempty string in *_quarantine_to (the exact value is ignored) must now be used even with "bsmtp:" to enable quarantining." Sine my version is 2.4.1, I figured it applied to me, so I added the value: $spam_quarantine_to = 'spam-quarantine'; Restarting and testing again led to the same result... no quarantine. Thanks! hanji -- Key ID: 68CE3C73 Fingerprint: 815A 5232 BEF5 3DEF 7640 E5DA 7570 027F 68CD 3C73 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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/
