-------- Original-Nachricht --------
> Datum: Tue, 11 Dec 2007 18:59:01 +0100
> Von: "Steve" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [dspam-users] MySQLUIDInSignature

> 
> -------- Original-Nachricht --------
> > Datum: Tue, 11 Dec 2007 12:18:07 -0500
> > Von: [EMAIL PROTECTED]
> > An: Richard Freeman <[EMAIL PROTECTED]>
> > CC: [email protected]
> > Betreff: Re: [dspam-users] MySQLUIDInSignature
> 
> > Richard Freeman <[EMAIL PROTECTED]> wrote on 12/10/2007
> 10:35:22 
> > AM:
> > 
> > > I'm using a postfix delivery agent to do it:
> > > 
> > > dspam-add     unix      -       n       n       -       10      pipe
> > >    flags=Rhu user=dspam argv=/usr/bin/dspam --source=error
> --class=spam
> > > --user root
> > > 
> > 
> > Ok...I'm going to try this route. Looking through pipe(8) and master(5)
> it
> > seems relatively straightforward what it is doing. 
> > 
> > I'm assuming I'll need something like the following in my transport map:
> > 
> > [EMAIL PROTECTED]        dspam-add:
> > [EMAIL PROTECTED]         dspam-del:
> > 
> > With the appropriate master.cf entries:
> > 
> > dspam-add     unix      -       n       n       -       10      pipe
> >    flags=Rhu user=dspam argv=/usr/bin/dspam --source=error --class=spam
> > --user root
> > dspam-del     unix      -       n       n       -       10      pipe
> >    flags=Rhu user=dspam argv=/usr/bin/dspam --source=error --class=ham
> > --user root
> > 
> Or with just one simple PCRE transport and one entry in master.cf:
> dspam-train     unix      -       n       n       -       10      pipe
>    flags=Rhq user=dspam:mail argv=/usr/bin/dspam
>    --user ${sender}
>    --class=${nexthop}
>    --source=error
>    --deliver=spam,innocent,summary
>    --stdout
> 
> /^train\-(spam|ham)[EMAIL PROTECTED]/ dspam-train:${1}
> 
Argh! Class can not be ham! Sorry! The proper setup would be:
dspam-train     unix      -       n       n       -       10      pipe
   flags=Rhq user=dspam:mail argv=/usr/bin/dspam
   --user ${sender}
   --class=${nexthop}
   --source=error
   --deliver=spam,innocent,summary
   --stdout

/^train\-(spam|innocent)[EMAIL PROTECTED]/      dspam-train:${1}

If you need to have [EMAIL PROTECTED] then adding another transport will solve 
the issue:
/[EMAIL PROTECTED]/             dspam-train:innocent

Or if you want to be fancy then and have more then one alias for a class do 
this:
/^train\-(ham|nonspam|innocent|good)[EMAIL PROTECTED]/  dspam-train:innocent
/^train\-(spam|nonham|junk|uce|bad)[EMAIL PROTECTED]/   dspam-train:spam


> 
> 
> > I'm going to give that a try and see what happens.
> > 
> > Michael D. Lemon
> > Director of Information Technology
> > Americal Corporation
> > Phone: 252-762-2000 x2142
> > Fax:      252-762-0176
> 
> -- 
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

Reply via email to