antispam plugin not working correctly
Felix Zielcke
fzielcke at z-51.de
Wed Nov 23 17:53:27 UTC 2016
Hi,
I've configured the antispam plugin like in the wiki to use the sa-
learn-pipe.sh shell script.
But it's not creating the log file in /tmp.
Even if I add a "touch /tmp/x" in sa-learn-pipe.sh it's not created.
So how I can check if it works correctly?
dovecot version 2.2.26.0
/var/log/debug although contains:
Nov 23 18:36:49 daedalus imap [fzielcke at z-51.de 80.187.96.201 UID MOVE]: antispam: mail copy: src spam: 1, dst spam: 0, src unsure: 0
Nov 23 18:36:49 daedalus imap [fzielcke at z-51.de 80.187.96.201 UID MOVE]: antispam: running mailtrain backend program /usr/bin/sa-learn-pipe.sh
Nov 23 18:36:49 daedalus imap [fzielcke at z-51.de 80.187.96.201 UID MOVE]: antispam: running mailtrain backend program /usr/bin/sa-learn-pipe.sh
Nov 23 18:36:49 daedalus imap [fzielcke at z-51.de 80.187.96.201 UID MOVE]: antispam: running mailtrain backend program parameter 1 --ham
# doveconf -n |grep antispam
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /usr/bin/sa-learn-pipe.sh
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program_spam_arg = --spam
antispam_pipe_tmpdir = /tmp
antispam_spam_pattern_ignorecase = SPAM
antispam_trash_pattern_ignorecase = trash;Deleted *
antispam_verbose_debug = 1
mail_plugins = acl zlib quota imap_zlib imap_acl imap_quota antispam
More information about the dovecot
mailing list