1 (edited by cajuntechie 2015-04-01 06:38:32)

Topic: Antispam plugin failing to move mail to Junk

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend: MySQL
- Web server: Apache
- Linux/BSD distribution name and version: Ubuntu 14.04
====

I recently installed the Antispam plugin for Dovecot following a tutorial from a member of this community. It seems things work well EXCEPT I get an error every time I try to mark something as junk. When I try to move something to the junk folder, I am told "UID COPY FAILED".

I am assuming that this has something to do with incorrect permissions. Does anyone know how to solve this? I'd really like to get antispam working!  A snippet of the log file is below. Notice where it says that a program failed to run (but it doesn't say WHICH program)

Thanks,
CajunTechie

--- BEGIN LOG ---
Mar 31 18:27:16 anonymail imap: antispam: plugin initialising (2.0-notgit)
Mar 31 18:27:16 anonymail imap: antispam: verbose debug enabled
Mar 31 18:27:16 anonymail imap: antispam: "Junk" is exact match spam folder
Mar 31 18:27:16 anonymail imap: antispam: no unsure folders
Mar 31 18:27:16 anonymail imap: antispam: "Trash" is exact match trash folder
Mar 31 18:27:16 anonymail imap: antispam: pipe backend spam argument = --spam
Mar 31 18:27:16 anonymail imap: antispam: pipe backend not-spam argument = --ham
Mar 31 18:27:16 anonymail imap: antispam: pipe backend program = /usr/bin/sa-learn
Mar 31 18:27:16 anonymail imap: antispam: pipe backend program arg[0] = --username=anthony@cajuntechie.org
Mar 31 18:27:16 anonymail imap: antispam: pipe backend tmpdir /tmp
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_unsure(Junk): 0
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_trash(INBOX): 0
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_trash(Junk): 0
Mar 31 18:27:19 anonymail imap: antispam: mail copy: from trash: 0, to trash: 0
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_spam(INBOX): 0
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_spam(Junk): 1
Mar 31 18:27:19 anonymail imap: antispam: mailbox_is_unsure(INBOX): 0
Mar 31 18:27:19 anonymail imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program /usr/bin/sa-learn
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program /usr/bin/sa-learn
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program parameter 1 --username=anthony@cajuntechie.org
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program parameter 2 --spam
Mar 31 18:27:21 anonymail imap: antispam: run program failed with exit code -1
Mar 31 18:27:23 anonymail imap: antispam: plugin initialising (2.0-notgit)
Mar 31 18:27:23 anonymail imap: antispam: verbose debug enabled
Mar 31 18:27:23 anonymail imap: antispam: "Junk" is exact match spam folder
Mar 31 18:27:23 anonymail imap: antispam: no unsure folders
Mar 31 18:27:23 anonymail imap: antispam: "Trash" is exact match trash folder
Mar 31 18:27:23 anonymail imap: antispam: pipe backend spam argument = --spam
Mar 31 18:27:23 anonymail imap: antispam: pipe backend not-spam argument = --ham
Mar 31 18:27:23 anonymail imap: antispam: pipe backend program = /usr/bin/sa-learn
Mar 31 18:27:23 anonymail imap: antispam: pipe backend program arg[0] = --username=anthony@cajuntechie.org
Mar 31 18:27:23 anonymail imap: antispam: pipe backend tmpdir /tmp
_task=mail&_mbox=INBOX&_folderlist=1&_list=1&_quota=1&_action=refresh&_remote=1&_unlock=loading1427840854911&_=1427840854914)
Mar 31 18:27:35 anonymail imap: antispam: plugin initialising (2.0-notgit)
Mar 31 18:27:35 anonymail imap: antispam: verbose debug enabled
Mar 31 18:27:35 anonymail imap: antispam: "Junk" is exact match spam folder
Mar 31 18:27:35 anonymail imap: antispam: no unsure folders
Mar 31 18:27:35 anonymail imap: antispam: "Trash" is exact match trash folder
Mar 31 18:27:35 anonymail imap: antispam: pipe backend spam argument = --spam
Mar 31 18:27:35 anonymail imap: antispam: pipe backend not-spam argument = --ham
Mar 31 18:27:35 anonymail imap: antispam: pipe backend program = /usr/bin/sa-learn
Mar 31 18:27:35 anonymail imap: antispam: pipe backend program arg[0] = --username=anthony@cajuntechie.org
---END LOG --

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Antispam plugin failing to move mail to Junk

cajuntechie wrote:

Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program /usr/bin/sa-learn
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program /usr/bin/sa-learn
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program parameter 1 --username=anthony@cajuntechie.org
Mar 31 18:27:19 anonymail imap: antispam: running mailtrain backend program parameter 2 --spam
Mar 31 18:27:21 anonymail imap: antispam: run program failed with exit code -1

Is it sa-learn? Any related log for sa-learn?

iRedMail doesn't enable Dovecot antispam plugin, i suggest you post this question in Dovecot mailing list instead.