Displaying 20 results from an estimated 42 matches for "antispam_pipe_program_args".
2011 Dec 15
1
dovecot-antispam: pipe backend with spamc failing to parse args
...ignature = X-Spam-Flag
antispam_signature_missing = error
antispam_trash_pattern = trash;Trash;Deleted *
antispam_spam_pattern_ignorecase = SPAM
antispam_pipe_tmpdir = /var/tmp
antispam_pipe_program_spam_arg = -L spam
antispam_pipe_program_notspam_arg = -L ham
antispam_pipe_program = /usr/bin/spamc
antispam_pipe_program_args = -d 10.0.1.109
Now, when I move a message to Spam, dovecot-antispam detects it and
attempts to run, but it fails:
Dec 14 16:22:45 grosbeak [username 10.0.1.74 uid]: antispam: run program
failed with exit code 64
Exit code 64 is spamc's exit code for "command line usage error" - bu...
2016 Apr 12
6
antispam plugin, pipe backend, how to make it work?
...lowing configuration in /etc/dovecot/conf.d/90-plugin.conf
plugin {
#setting_name = value
sieve=~/.dovecot.sieve
sieve_dir=~/sieve
antispam_pipe_program_spam_arg = --spam
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program = /usr/local/bin/sa-learn-pipe.sh
antispam_pipe_program_args = --username=%u # % expansion done by
dovecot
antispam_trash = trash;Trash;Deleted Items;Deleted Messages
antispam_spam = SPAM;Junk
antispam_backend = pipe
antispam_verbose_debug = 1
antispam_debug_target = syslog
antispam_pipe_tmpdir = /tmp
}
I have tried the follow...
2016 Apr 12
2
antispam plugin, pipe backend, how to make it work?
...gin {
>> #setting_name = value
>> sieve=~/.dovecot.sieve
>> sieve_dir=~/sieve
>> antispam_pipe_program_spam_arg = --spam
>> antispam_pipe_program_notspam_arg = --ham
>> antispam_pipe_program = /usr/local/bin/sa-learn-pipe.sh
>> antispam_pipe_program_args = --username=%u # % expansion done by
>> dovecot
> You need to specify the argument list as a list seperated by semicolons,
> per example on the wiki:
>
> antispam_pipe_program_args = --username;%u
Not sure about that, because sa-learn expects the parameter
--username=user at na...
2014 Jul 29
3
Exit status code 134; what is it, in the context of Dovecot Antispam plug-in?
...ddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /bin/bash
antispam_pipe_program_args = /usr/local/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;JUNK
antispam_trash_pattern_ignorecase = trash;Deleted *
antispam_verbose_debug = 1
quota = dict:user...
2016 Apr 13
2
antispam plugin, pipe backend, how to make it work?
...>>>> plugin { #setting_name = value sieve=~/.dovecot.sieve
>>>> sieve_dir=~/sieve antispam_pipe_program_spam_arg = --spam
>>>> antispam_pipe_program_notspam_arg = --ham
>>>> antispam_pipe_program = /usr/local/bin/sa-learn-pipe.sh
>>>> antispam_pipe_program_args = --username=%u # % expansion done
>>>> by dovecot
>>> You need to specify the argument list as a list seperated by
>>> semicolons, per example on the wiki:
>>>
>>> antispam_pipe_program_args = --username;%u
>>
>> Not sure about that, be...
2015 Aug 21
2
plugin antispam sa-learn run program failed with exit code -1
...iguration like that:
>
> antispam_debug_target = syslog
> antispam_verbose_debug = 1
>
> antispam_backend = pipe
> antispam_pipe_program_spam_arg = --spam
> antispam_pipe_program_notspam_arg = --ham
> antispam_pipe_program = /usr/local/bin/sa-learn-pipe.sh
> antispam_pipe_program_args = --username=%Lu
Now, this seems better, no error, the email is correctly moved in /Junk/
and I have no error
> Aug 21 16:31:05 mail imap: antispam: mailbox_is_unsure(Junk): 0
> Aug 21 16:31:05 mail imap: antispam: mailbox_is_trash(INBOX): 0
> Aug 21 16:31:05 mail imap: antispam: mailbo...
2015 Jan 15
2
[SERVERBUG] failed to send mail with SA and antispam plugin
...}
mailbox Trash {
special_use = \Trash
}
prefix = INBOX.
separator = .
}
passdb {
args = /etc/dovecot/master-users
driver = passwd-file
master = yes
pass = yes
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
antispam_backend = pipe
antispam_pipe_program = /usr/bin/spamc
antispam_pipe_program_args = -d;my-mx-server.domain.com;-u;amavis
antispam_pipe_program_notspam_args = -L;ham
antispam_pipe_program_spam_args = -L;spam
antispam_pipe_tmpdir = /tmp
antispam_signature = X-Spam-Flag
antispam_signature_missing = error
antispam_spam = INBOX.Spam;INBOX.Junk
antispam_trash = INBOX.trash;trash;INBOX...
2015 Nov 08
2
antispam plugin pipe backend error when moving multiple emails
Hi,
I've got some trouble with the dovecot antispam plugin and the pipe backend.
I'm using dovecot 2.2.18 with maildirs and zlib compression enabled.
When moving 2 or more emails at once from the Junk folder to another one, I always have the following error : "Failed to copy to temporary file"
In the server logs :
imap(vvv at vvv.vvv): Error:
2016 Apr 13
5
antispam plugin, pipe backend, how to make it work?
...etting_name = value sieve=~/.dovecot.sieve
>>>>>> sieve_dir=~/sieve antispam_pipe_program_spam_arg = --spam
>>>>>> antispam_pipe_program_notspam_arg = --ham
>>>>>> antispam_pipe_program = /usr/local/bin/sa-learn-pipe.sh
>>>>>> antispam_pipe_program_args = --username=%u # % expansion done
>>>>>> by dovecot
>>>>> You need to specify the argument list as a list seperated by
>>>>> semicolons, per example on the wiki:
>>>>>
>>>>> antispam_pipe_program_args = --username;%u
>...
2018 Feb 17
1
trying to enable sieve
...uto = subscribe
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
antispam_allow_append_to_spam = no
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /usr/bin/sa-learn
antispam_pipe_program_args = --no-sync
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program_spam_arg = --spam
antispam_spam = Junk
antispam_trash = Trash
antispam_verbose_debug = 1
quota = dict:%u::proxy::quota
quota_rule = *:storage=10M:messages=1000
quota_warning = storage=99%% quota-warning 99 %...
2015 Mar 31
2
Need a bit of help with the antispam plugin
...rip_connections = 20
plugin {
antispam_debug_target = syslog
antispam_verbose_debug = 1
antispam_backend = pipe
antispam_trash = Trash
antispam_spam = Junk
antispam_pipe_program_spam_arg = --spam
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program = /usr/bin/sa-learn
antispam_pipe_program_args = --username=%Lu
}
}
For some reason, when I try to move something to Junk, I get the
following in my syslog:
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: "...
2015 Jan 15
2
[SERVERBUG] failed to send mail with SA and antispam plugin
...(false positive) they get the following error message:
>>
>> [SERVERBUG] failed to send mail
> # 2.1.7: /etc/dovecot/dovecot.conf
> # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8 ext4
[cut]
> plugin {
> antispam_backend = pipe
> antispam_pipe_program = /usr/bin/spamc
> antispam_pipe_program_args = -d;my-mx-server.domain.com;-u;amavis
> antispam_pipe_program_notspam_args = -L;ham
> antispam_pipe_program_spam_args = -L;spam
> antispam_pipe_tmpdir = /tmp
> antispam_signature = X-Spam-Flag
> antispam_signature_missing = error
> antispam_spam = INBOX.Spam;INBOX.Junk
> antis...
2013 Jun 19
3
Calling dovecot-lda from within Antispam pipe script (bash) seems to have no effect
...plaintext_auth = no
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_privileged_group = vmail
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /usr/bin/sa-learn-pipe.sh
antispam_pipe_program_args = --debug;--username=amavis
antispam_pipe_program_notspam_arg = --ham
antispam_pipe_program_spam_arg = --spam
antispam_pipe_tmpdir = /tmp
antispam_spam_pattern_ignorecase = SPAM;JUNK
antispam_trash_pattern_ignorecase = trash;Deleted *
antispam_verbose_debug = 1
quota = dict:user::file...
2014 Feb 20
1
dovecot with maildir not using mtime on reindex
...mespace inbox {
inbox = yes
location =
prefix =
}
passdb {
args = host=localhost port=1143 username=%L{user}::%L{service}::%L{rip}::%L{session}
driver = imap
}
plugin {
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /he/dovecot/utils/he_spamtrain.pl
antispam_pipe_program_args = --user=%u
antispam_pipe_program_notspam_arg = --falsepositive
antispam_pipe_program_spam_arg = --missed
antispam_pipe_tmpdir = /var/run/dovecot_as_tmp
antispam_signature_missing = move
antispam_spam = Spam;Inbox.Spam;INBOX.Spam;Junk;INBOX.Junk
antispam_trash_pattern_ignorecase = trash...
2013 Jan 02
2
Trouble with expire plugin
...regex imap4flags copy
include variables mailbox date ihave
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
antispam_backend = pipe
antispam_pipe_program = /usr/bin/ssh
antispam_pipe_program_args =
-l;spamd;-i;/etc/dovecot/sareport.key;mx1.xxxxxxx.com
antispam_pipe_program_notspam_arg = revoke
antispam_pipe_program_spam_arg = report
antispam_pipe_tmpdir = /tmp
antispam_spam = Junk
antispam_trash_pattern_ignorecase = trash;Deleted *
autocreate = Trash
autocreate2 = Junk...
2015 Apr 07
2
Need a bit of help with the antispam plugin
...antispam_verbose_debug = 1
>>
>> antispam_backend = pipe
>> antispam_trash = Trash
>> antispam_spam = Junk
>> antispam_pipe_program_spam_arg = --spam
>> antispam_pipe_program_notspam_arg = --ham
>> antispam_pipe_program = /usr/bin/sa-learn
>> antispam_pipe_program_args = --username=%Lu
>> }
>> }
>
> replace the value of antispam_pipe_program with a script:
>
> ======
> #/bin/bash
>
> (
> set -x
> id -a
> date
> /usr/bin/sa-learn "$@"
> rc=$?
> echo rc=$rc
> exit $rc
> ) >/tmp/antispam.$$.log...
2016 Aug 19
2
antispam plugin pipe script seems not to be called when it "should be"
..."%Y-%m-%d %H:%M:%S "
mail_max_userip_connections = 100
mail_plugins = " quota"
mail_privileged_group = vmail
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
antispam_backend = pipe
antispam_debug_target = syslog
antispam_pipe_program = /bin/bash
antispam_pipe_program_args = /usr/local/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;JUNK
antispam_trash_pattern_ignorecase = trash;Deleted *
antispam_verbose_debug = 1
quota = dict:user...
2014 Jul 29
0
Exit status code 134; what is it, in the context of Dovecot Antispam plug-in?
...ion", but that is less than
> informative in this context.
>
> # 2.2.9: /etc/dovecot/dovecot.conf
> # OS: Linux 3.13.0-32-generic x86_64 Ubuntu 14.04.1 LTS
> plugin {
> antispam_backend = pipe
> antispam_debug_target = syslog
> antispam_pipe_program = /bin/bash
> antispam_pipe_program_args = /usr/local/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;JUNK
> antispam_trash_pattern_ignorecase = trash;Deleted *
> antispam_verbose_debug...
2016 Apr 18
0
antispam plugin pipe backend error when moving multiple emails
Hello,
I'm bumping this because it still occurs with dovecot 2.2.22.
my dovecot-antispam plugin configuration :
antispam_allow_append_to_spam = no
antispam_backend = pipe
antispam_pipe_program = /usr/bin/rspamc
antispam_pipe_program_args = -h;127.0.0.1:11334;-P;********
antispam_pipe_program_notspam_arg = learn_ham
antispam_pipe_program_spam_arg = learn_spam
antispam_pipe_tmpdir = /var/tmp
antispam_spam = Junk
antispam_trash = trash;Trash;Deleted Items;Deleted Messages
zlib enabled:
zlib_save = gz
zlib_save_le...
2020 Jul 10
0
antispam
...g)
? # antispam_signature_missing = move # move silently without training
? antispam_signature_missing = error
? antispam_trash = Trash
? antispam_spam = Junk
? antispam_pipe_program_spam_arg = --spam
? antispam_pipe_program_notspam_arg = --ham
? antispam_pipe_program = /usr/bin/sa-learn
? antispam_pipe_program_args = --username=%Lu
}
it seems to be going into the database ok but it doesn't seem to be
applying anything it is learning.? might there be some configuration
option missing?