Replacement for antispam plugin
Stephan Bosch
stephan at rename-it.nl
Mon Feb 13 00:28:52 UTC 2017
Op 2/12/2017 om 11:00 PM schreef Håkon Alstadheim:
>
> 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.
Actually, Pigeonhole should be able to do that too:
https://github.com/dovecot/pigeonhole/blob/master/doc/plugins/sieve_extprograms.txt#L112
Yes, I need to update the wiki.
Regards,
Stephan.
More information about the dovecot
mailing list