> Steve,
>
Hallo Robert,
> Yes, if you could post the directions on how to setup method 1 with
> Postfix,
> I would appreciate it.
>
In your master.cf you need to create a new service for retraining. I am going
to call it "dspam-retrain".
--<---[cut below]---->----
dspam-retrain unix - n n - - pipe
flags=Rhq user=postfix:dspam argv=/usr/bin/dspam
--class=${nexthop}
--source=error
--deliver=spam,innocent
--stdout
--<---[cut above]---->----
I used uid "postfix" and gid "dspam" because that's what I see that you have
used in your setup.
We could use one service for spam training and one for ham training but I am
lazy and like to have just one and use nexthop to specify what class it is.
For the transport I am going to use a PCRE map table. In your situation you
could even use a static hash table since you just have one domain. But should
you have more then one domain and you would like to implement on each every
domain a spam/ham alias then the PCRE map is a easy and comfortable way. Let's
call that PCRE map dspam-retrain.pcre and lets save it in the Postfix
directory. The content would be:
--<---[cut below]---->----
/^(spam|junk)\...@.*$/ dspam-retrain:spam
/^(notspam|ham)\...@.*$/ dspam-retrain:innocent
--<---[cut above]---->----
Then the only thing left to do is to add that transport map to main.cf:
--<---[cut below]---->----
transport_maps =
pcre:${config_directory}/dspam-retrain.pcre
[...your other transport entries...]
--<---[cut above]---->----
Now restart Postfix and send a mail for retraining to [email protected]
or to [email protected].
If you don't want to use PCRE for the map then just create a file called
dspam-retrain.hash (just an example. The name can be anything you like) and add
the following content to it:
--<---[cut below]---->----
[email protected] dspam-retrain:spam
[email protected] dspam-retrain:spam
[email protected] dspam-retrain:innocent
[email protected] dspam-retrain:innocent
--<---[cut above]---->----
Then you map that hash table by executing:
# postmap /etc/postfix/dspam-retain.hash
And then add that hash table to your transport_maps in main.cf:
--<---[cut below]---->----
transport_maps =
hash:${config_directory}/dspam-retrain.hash
[...your other transport entries...]
--<---[cut above]---->----
Restart Postfix and send your retraining mail as usual.
> Thanks,
>
cheers,
> Robert
>
Steve
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
------------------------------------------------------------------------------
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user