Le 21/08/2015 15:51, Andrew McN a écrit :
On 21/08/15 19:49, Guillaume Lakano - DOVECOT wrote:
Aug 20 20:21:14 mail imap: antispam: running mailtrain backend program parameter 1 -D --username=guillaume.XXXX@mydomain.com Aug 20 20:21:14 mail imap: antispam: running mailtrain backend program parameter 2 --spam That looks like it should be three parameters, not two?
Hello Andrew, thanks for your answer :)
Sorry about the previous copy/paste, this was a wrong previous test ( I've tested to inject others arguments to see if dovecot still report the error or no... )
Here is the the same logs :
Aug 21 16:04:37 mail imap: antispam: plugin initialising (2.0-notgit) Aug 21 16:04:37 mail imap: antispam: verbose debug enabled Aug 21 16:04:37 mail imap: antispam: "Junk" is exact match spam folder Aug 21 16:04:37 mail imap: antispam: no unsure folders Aug 21 16:04:37 mail imap: antispam: "Trash" is exact match trash folder Aug 21 16:04:37 mail imap: antispam: pipe backend spam argument = --spam Aug 21 16:04:37 mail imap: antispam: pipe backend not-spam argument = --ham Aug 21 16:04:37 mail imap: antispam: pipe backend program = /usr/bin/sa-learn Aug 21 16:04:37 mail imap: antispam: pipe backend program arg[0] = --username=guillaume.XXXX@mydomain.com Aug 21 16:04:37 mail imap: antispam: pipe backend tmpdir /tmp Aug 21 16:04:37 mail imap: antispam: mailbox_is_unsure(Junk): 0 Aug 21 16:04:37 mail imap: antispam: mailbox_is_trash(INBOX): 0 Aug 21 16:04:37 mail imap: antispam: mailbox_is_trash(Junk): 0 Aug 21 16:04:37 mail imap: antispam: mail copy: from trash: 0, to trash: 0 Aug 21 16:04:37 mail imap: antispam: mailbox_is_spam(INBOX): 0 Aug 21 16:04:37 mail imap: antispam: mailbox_is_spam(Junk): 1 Aug 21 16:04:37 mail imap: antispam: mailbox_is_unsure(INBOX): 0 Aug 21 16:04:37 mail imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 Aug 21 16:04:37 mail imap: antispam: running mailtrain backend program /usr/bin/sa-learn Aug 21 16:04:37 mail imap: antispam: running mailtrain backend program /usr/bin/sa-learn Aug 21 16:04:37 mail imap: antispam: running mailtrain backend program parameter 1 --username=guillaume.XXXX@mydomain.com Aug 21 16:04:37 mail imap: antispam: running mailtrain backend program parameter 2 --spam Aug 21 16:04:39 mail imap: antispam: run program failed with exit code -1 Aug 21 16:04:46 mail imap: antispam: plugin initialising (2.0-notgit) Aug 21 16:04:46 mail imap: antispam: verbose debug enabled Aug 21 16:04:46 mail imap: antispam: "Junk" is exact match spam folder Aug 21 16:04:46 mail imap: antispam: no unsure folders Aug 21 16:04:46 mail imap: antispam: "Trash" is exact match trash folder Aug 21 16:04:46 mail imap: antispam: pipe backend spam argument = --spam Aug 21 16:04:46 mail imap: antispam: pipe backend not-spam argument = --ham Aug 21 16:04:46 mail imap: antispam: pipe backend program = /usr/bin/sa-learn Aug 21 16:04:46 mail imap: antispam: pipe backend program arg[0] = --username=guillaume.XXXX@mydomain.com Aug 21 16:04:46 mail imap: antispam: pipe backend tmpdir /tmp Aug 21 16:04:46 mail imap: antispam: plugin initialising (2.0-notgit) Aug 21 16:04:46 mail imap: antispam: verbose debug enabled Aug 21 16:04:46 mail imap: antispam: "Junk" is exact match spam folder Aug 21 16:04:46 mail imap: antispam: no unsure folders Aug 21 16:04:46 mail imap: antispam: "Trash" is exact match trash folder Aug 21 16:04:46 mail imap: antispam: pipe backend spam argument = --spam Aug 21 16:04:46 mail imap: antispam: pipe backend not-spam argument = --ham Aug 21 16:04:46 mail imap: antispam: pipe backend program = /usr/bin/sa-learn Aug 21 16:04:46 mail imap: antispam: pipe backend program arg[0] = --username=guillaume.XXXX@mydomain.com Aug 21 16:04:46 mail imap: antispam: pipe backend tmpdir /tmp
Also, read this:
http://wiki2.dovecot.org/Plugins/Antispam#Backend_-_mailtrain_realtime_sa-le...
Ok I'll try to use an external pipe to script
Thanks
--
*NOX DIGITAL* Guillaume Lecanu