Replacement for antispam plugin

Håkon Alstadheim hakon at alstadheim.priv.no
Sun Feb 12 22:00:49 UTC 2017



Den 12. feb. 2017 21:44, skrev ebroch at whitehorsetc.com:
> 
> 
> Any opinion on dspam's interoperability with this?
> 
> 

Just follow the wiki and replace sa-learn scripts with calling dspam.
Dspam direct pipe needs mail-line-endings (\r\n) translated into unix
line-endings (\r).

like so:

----- learn-spam.sh ---------
#!/bin/sh
sed -e 's/\r$//' | /usr/bin/dspam --source=error --class=spam

----- learn-ham.sh ----------
#!/bin/sh
sed -e 's/\r$//' | /usr/bin/dspam --source=error --class=innocent

------

Theese will be invoked with the owner of the mailbox as current uid, so
that is all.


More information about the dovecot mailing list