It should be noted that I use these versions;

@Stevan and   @Tom

 FreeBSD domain.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 25 19:28:31 CET 
2011

 postfix-current-2.8.20110115,4 A secure alternative to  widely-used  Sendmail
 dovecot-2.0.9       Secure and compact  IMAP  and POP3 servers
 dovecot-pigeonhole-0.2.2 A Sieve plugin for the  Dovecot  'deliver' LDA and 
LMTP
 dovecot2-antispam-plugin-20101222 The  dovecot 2.x  plugin for spam systems 
 training.
 dspam-3.9.0_1         Bayesian spam filter - stable maintenance  version



> > ----- Original  Message ----
> > > From:  Stevan Bajić <ste...@bajic.ch>
> > > To: dspam-user@lists.sourceforge.net
> >  >  Sent: Tue, March 1, 2011 5:05:01 AM
> > > Subject: Re:  [Dspam-user] Can NOT  get Dspam to retrain, DSPAM refuses 
> > > to 

> >find 
> >
> > >the X-DSPAM-Signature in the  header
> > > 
> > > 
> > > 
> > >  On Tue, 01 Mar 2011  12:42:05  +0100, Tom Hendrikx wrote:
> > > 
> > > >   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.
> > > >
> > >  I did for a friend the   configuration  that works. The only problem so 
> > >  far is  that the   dovecot-antispam plugin has issues if you use dovecot 
>>= 
>
> > >  2.0.  So you  need patching to get it working  under dovecot >2.0 or you 
> > >  need to use  the fork for  2.0.
> > > 
> > > 
> > >  > 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
> > > >
> >  >  This is the configuration that I  used for him:
> >  >     =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > >      #  Selects the specific backend to be used for spam system   training
> > >     antispam_backend = dspam
> > > 
> > >     # Specifies whether to allow appending  mails  to the spam  folder
> > >    # from the unknown source.  Optional, default  =  NO.
> > >     antispam_allow_append_to_spam = NO
> > > 
> > >    #  Specifies  whether to skip the leading "From " line  of the  mail
> > >    # piped to the  backend processor.   Optional, default = NO.
> > >    antispam_skip_from_line  =   NO
> > > 
> > >    # semicolon-separated list  of spam  folders
> > >     antispam_spam =   Spam;spam;SPAM;Junk;junk;JUNK;Junk-E-Mail;Junk 
> > >   Mail;junk   mail;Junk Mails;junk mails;Unerw&APw-nschte Mails
> >  > 
> > >     #  semicolon-separated list of Trash  folders (default unset i.e.  
>none)
> > >      antispam_trash = Trash;trash;Deleted;deleted;Deleted  Items;Deleted 
> > >   Messages;Gel&APY-scht;Gel&APY-schte   Elemente
> > > 
> > >    #  semicolon-separated  list of  unsure folders (default unset i.e. 
> > >    none)
> > >     #antispam_unsure =
> > > 
> >  >    # mail signature (used  with  any backend requiring  a signature)
> > >     antispam_signature =   X-DSPAM-Signature
> > > 
> > >    #  specifies what  to do if the signature header  is missing.  Possible
> >  >    # values: "move" (move the mail silently  without   training), "error"
> > >    # (display an error  stating  that the signature  header is missing).
> > >    #   Optional, default = "error".
> > >      antispam_signature_missing =  error
> > > 
> > >     # specifies the path to the  dspam  client binary.
> > >     # Optional, default =   "/usr/bin/dspam".
> > >     antispam_dspam_binary =   /usr/bin/dspam
> > > 
> > >     # list of command line arguments to  the dspam  binary. Must  include
> > >    # one "%%s" in order  to be replaced with  the  signature value.
> > >    # Optional,  default  =  "--source=error;--signature=%%s".
> > >      antispam_dspam_args = 
> > >     --user;%Lu;--deliver=;--source=error;--signature=%%s
> > > 
> >  >     # command  line argument to specify that mail should  be  
reclassified
> > >    # as SPAM.  Optional,  default =  "--class=spam".
> > >    antispam_dspam_spam  =   --class=spam
> > > 
> > >    # command line  argument to specify  that mail should  be reclassified
> >  >    # as not SPAM.  Optional, default =   "--class=innocent".
> > >     antispam_dspam_notspam =   --class=innocent
> > > 
> > >    #  specifies the  mail header name to derive the  classification  
>result.
> >  >    # Optional, default = NONE.
> > >       antispam_dspam_result_header = X-DSPAM-Result
> > > 
> > >     #  specifies the  list of classification results to avoid   retraining
> > >    # for. Optional,  default =   NONE.
> > >    antispam_dspam_result_blacklist =    Virus;Blocklisted;Blacklisted
> > >     =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> > > 
> > >  @Tom:  Since I know that you are using Gentoo... let me  know  if you 
> > >  need/want a  Ebuild for the  dovecot-antispam plugin  that works without 
> > >  issues  under  dovecot >=  2.x
> > 
> > 
> > 
> > 
> 
> 
>     
> 


      

------------------------------------------------------------------------------
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

Reply via email to