Replacement for antispam plugin

Marcus Rueckert darix at opensu.se
Sun Feb 12 22:56:52 UTC 2017


On 2017-02-12 23:00:49 +0100, Håkon Alstadheim wrote:
> 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).

tbh ... what do you do about mails which just use \r as separator?

s|\r\n|\n| is safer.

    darix

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

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org


More information about the dovecot mailing list