Hi, Dovecot-antispam plugin is a better solution indeed. I use his too.
I'm not sure why dovecot-antispam plugin does not work when using the dspam backend config. Finding out what is causing this, was still on my todo-list. For the moment, I abuse the sendmail/mailtrain backend for calling dspam. Configuration looks like this in my setup: $ cat /etc/dovecot/conf.d/91-antispam.conf plugin { antispam_backend = mailtrain antispam_mail_sendmail = /usr/bin/dspamc antispam_mail_sendmail_args = --source=error;--deliver=;--user;%u antispam_mail_notspam = --class=innocent antispam_mail_spam = --class=spam antispam_mail_tmpdir = /tmp antispam_signature = X-DSPAM-Signature antispam_signature_missing = move antispam_spam_pattern_ignorecase = Junk;Junk.* antispam_trash_pattern_ignorecase = Trash;Deleted Items;Deleted Messages Adapt to your liking, of course. Regards, Tom On 01/03/11 12:15, Robert Z wrote: > Great explanation Tom. One more question if you dont mind. > > What would be the correct way to use header signatures when training ? I want > to > use > > Dovecot-antispam for this. I have attached my dovecot.conf, as anitispam will > not pipe to Dspam for training > when I move mail to the "Spam" folder. > > Robert > > > > > ----- Original Message ---- >> From: Tom Hendrikx <t...@whyscream.net> >> To: dspam-user@lists.sourceforge.net >> Sent: Tue, March 1, 2011 2:27:53 AM >> Subject: Re: [Dspam-user] Can NOT get Dspam to retrain, DSPAM refuses to >> find >> the X-DSPAM-Signature in the header >> >> >> >> On 01/03/11 10:28, Robert Z wrote: >>> Here is my master.cf and main.cf. >>> >>> I am currently training through s...@domain.com. >>> The only thing I can think of that is causing this issue is that postfix >>> or > >>> dspam is >>> stripping the Dspam headers when I send to train at s...@domain.com. >>> >>> Thanks for the help >>> >>> Robert >>> >> >> >> Hi, >> >> If you are retraining by forwarding, you need to to put the signature in >> the body. >> >> When you forward a message with your MUA to s...@example.com, the MUA >> sends a new message with your 'problematic' email either as an >> attachment or inline. The new message has no DSPAM header. >> >> 'As an attachment' means that the to-be-detected signature is a header >> in an attachment to the message that you send to DSPAM, not in the >> message's header itself: DSPAM does not see this. When the problematic >> e-mail is forwarded inline, typically all headers are removed by the >> MUA: only the message body of the email is included in the new message. >> >> When the signature is in the body, and your MUA forwards inline, the >> signature is still in the body of the new message, so that should work. >> For attached messages it might also work (not sure). >> >> For some MUAs, 'bouncing' the message to the s...@example.com might work >> as this leaves headers intact (for those rare MUAs that still support >> bouncing). >> >> Conclusion: when retraining is based on forwarding a misclassified >> message to some mail address destined for dspam processing, make sure >> that the signature is in the body. >> >> Kind regards, >> Tom >> >> > > > > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > > > > _______________________________________________ > Dspam-user mailing list > Dspam-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-user
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user