Hank wrote: > 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. >> I'm unable to get any spams in the quarantine, they are all discarded. > $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'; >> 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. Setting D_PASS does not prevent quarantining, so yes, they should be there. >> 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. >> > 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. The debug output in your maillog or amavis log may be more informative than 'amavisd debug' output. On some systems setting $syslog_priority = 'info'; may give you more detail than $syslog_priority = 'debug';. (if using older style settings, it would be $SYSLOG_LEVEL = 'mail.info';) If you have $DO_SYSLOG = 1; and your mail log is something like '/var/log/maillog' then after sending a message through, I would search for or grep for the string 'BSMTP'. Using 2.4.1, and your setting: $spam_quarantine_method = 'bsmtp:spam-%b-%i-%n'; I get: Sep 10 12:14:09 sfa amavis[3364]: (03364-01) SEND via BSMTP: <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, file /var/lib/amavis/virusmails/spam-d228540a4dd0b23a14b04e4ca3c3d336-20060910-121401-03364-01 Sep 10 12:14:09 sfa amavis[3364]: (03364-01) one_response_for_all <[EMAIL PROTECTED]>: success, r=0,b=0,d=0, ndn_needed=0, '250 2.6.0 Ok, queued as BSMTP spam-d228540a4dd0b23a14b04e4ca3c3d336-20060910-121401-03364-01, id=03364-01' and the mail is there. Check for the possibility of $spam_quarantine_method being assigned more than once. If you have been quarantining to SQL in the past, you may still have that set. Gary V ------------------------------------------------------------------------- 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/
