Displaying 20 results from an estimated 168 matches for "antispam_backend".
2015 Aug 21
2
plugin antispam sa-learn run program failed with exit code -1
...bin/sa-learn $* /tmp/sendmail-msg-$$.txt && rm -f
> /tmp/sendmail-msg-$$.txt &
> echo "$$-end" >> /tmp/sa-learn-pipe.log
> exit 0
And to update my configuration 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 h...
2015 Jul 20
2
[Dovecot Antispam] Can't seem to load plugin
...gt; takes me.
>>
>
> it would help to see your dovecot -n output here.
>
Ok, found it in the first mail...
Do these folders exist in the filesystem? The case matches?
I use antispam_{spam,trash}_pattern_ignorecase and don't care about the
case of the folders...
plugin {
antispam_backend = crm114
antispam_crm_args = --fileprefix=/home/%u/spamdb/
antispam_crm_binary = /usr/local/etc/dovecot/filter/mailreaver.crm
antispam_debug_target = syslog
antispam_signature = X-CRM114-CacheID
antispam_spam = Spam
antispam_trash = Trash
antispam_unsure = INBOX/Suspect
i don&...
2013 Apr 30
2
dovecot antispam plugin is not woking
...mAV 0.97.7/17102
and dspam antispam plugin
?dovecot-antispam-plugin-43880985e3dd
and plugin configuration is given below:
protocol imap {
? mail_plugins = " antispam autocreate"
}
protocol pop3 {
? mail_plugins = antispam autocreate
}
plugin {
? antispam_allow_append_to_spam = YES
? antispam_backend = dspam
? antispam_crm_args = --config=/home/vmail
? antispam_dspam_args = --client;--user vmail
? antispam_dspam_binary = /usr/bin/dspam
? antispam_dspam_notspam = --class=innocent
? antispam_dspam_result_header = X-DSPAM-Result
? antispam_dspam_spam = --class=spam
? antispam_mail_tmpdir = /tmp
?...
2013 Sep 12
1
Plugin antispam - mailtrain realtime sa-learn
...ou need a wrapper script for
sa-learn as it shouldn't support pipped input, but that is supported
since SpamAssassin 2.6 at least. As far as I can see and test, the
following config makes it work without a wrapper script. Can someone
confirm it before the wiki is updated?
plugins {
antispam_backend = pipe
antispam_trash = Trash
antispam_spam = Junk
antispam_mail_spam = --spam
antispam_mail_notspam = --ham
antispam_mail_sendmail = /usr/bin/sa-learn
}
Hans
[1] http://wiki2.dovecot.org/Plugins/Antispam
2013 Jan 16
1
dovecot + antispam plugin - no retraining
...ve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date ihave
namespace inbox {
inbox = yes
location =
prefix =
}
passdb {
driver = pam
}
plugin {
antispam_backend = pipe
antispam_mail_notspam = ham at example.org
antispam_mail_sendmail = /usr/sbin/sendmail
antispam_mail_sendmail_args = -f;%u at example.org
antispam_mail_spam = spam at example.org
antispam_mail_tmpdir = /tmp
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = err...
2012 Jun 09
1
Dovecot antispam plugin bug: got an empty message
...gt; antispam_signature = X-DSPAM-Signature
> antispam_signature_missing = move
> antispam_spam_pattern_ignorecase = Junk;Junk.*
> antispam_trash_pattern_ignorecase = Trash;Deleted Items;Deleted
> Messages
>
> # Backend specific
> antispam_backend = dspam
> antispam_dspam_binary = /usr/bin/dspamc
> antispam_dspam_args =
> --user;%u;--deliver=;--source=error;--signature=%%s
> antispam_dspam_spam = --class=spam
> antispam_dspam_notspam = --class=innocent
> #antispam_dspam_result_header...
2016 Apr 12
6
antispam plugin, pipe backend, how to make it work?
...g = --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 following wrapper script:
#!/bin/bash
# set -x
LOGFILE=/tmp/sa-learn-pipe.log
echo "$$-start ($*)" >> $LOGFILE
#echo $* > /tmp/sendmail-parms.txt
cat<...
2014 Jul 29
3
Exit status code 134; what is it, in the context of Dovecot Antispam plug-in?
...mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress 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;JU...
2014 Mar 16
1
dovecot2-antispam segfault
.... 6:09 ???????????? "Nikolay Amiantov" <nikoamia at gmail.com>
???????:
> Hello,
> I've got a segfault with postfix2-antispam.
> Versions:
> Linux: Arch Linux x86_64
> Dovecot: 2.2.11
> Antispam: latest hg (revision 51)
>
> Antispam configuration:
> antispam_backend = dspam
> antispam_allow_append_to_spam = YES
> antispam_spam = Spam;Junk
> antispam_trash = trash;Trash
> antispam_signature = X-DSPAM-Signature
> antispam_signature_missing = error
> antispam_dspam_binary = /usr/bin/dspamc
> antispam_dspam_args =
> --user;%Ln...
2012 Sep 05
1
Trouble implementing Antispam plug-in for Dovecot
...ration options:
/etc/dovecot/dovecot.conf
--------------------
## IMAP specific settings
protocol imap {
mail_executable = /usr/lib/dovecot/rawlog /usr/lib/dovecot/imap
mail_plugins = quota imap_quota antispam
}
# [...]
plugin {
antispam_debug_target = syslog
antispam_verbose_debug = 1
antispam_backend = pipe
antispam_pipe_program = /usr/bin/sa-learn-pipe.sh
antispam_pipe_program_spam_arg = --spam
antispam_pipe_program_notspam_arg = --ham
antispam_spam_pattern_ignorecase = spam;junk
}
--------------------
For what it's worth, the logging directives seem not to have any effect
(and pe...
2015 Jul 20
0
[Dovecot Antispam] Can't seem to load plugin
...ex.log
dovecot.index.log.2
dovecot.index.thread
dovecot.mailbox.log
new
subscriptions
tmp
plugin {
antispam_debug_target = syslog
antispam_verbose_debug = 1
antispam_trash_pattern_ignorecase = Trash
antispam_spam_pattern_ignorecase = Spam
antispam_unsure_pattern_ignorecase = Suspect
antispam_backend = spool2dir
antispam_spool2dir_spam = /home/%u/unprocessed/spam-%%lu-%%lu
antispam_spool2dir_notspam = /home/%u/unprocessed/ham-%%lu-%%lu
}
After reloading with this configuration and moving a piece of spam into the
spam folder...
root at zerolag:/home/james.lott/mail # ls -lah ../unprocess...
2012 Jan 25
1
Dovecot antispam plugint got an empty message
...mespace {
inbox = no
list = children
location = maildir:/home/dovecot/Sdilene/maildir:INDEX=/home/dovecot/%n/public
prefix = Sdilene.
separator = .
subscriptions = no
type = public
}
passdb {
args = session=yes
driver = pam
}
plugin {
acl = vfile
acl_shared_dict = proxy::acl
antispam_backend = dspam
antispam_dspam_args = --user;%u;--source=error
antispam_dspam_binary = /usr/bin/dspam
antispam_dspam_notspam = --class=innocent
antispam_dspam_result_header = X-DSPAM-Result
antispam_dspam_spam = --class=spam
antispam_mail_tmpdir = /tmp
antispam_signature = X-DSPAM-Signature...
2015 Jan 15
2
[SERVERBUG] failed to send mail with SA and antispam plugin
...e = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
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
antis...
2020 Mar 24
2
dovecot-2.2.36-4 and antispam
...ch
spam with Junk for dovecot2.2.36-4
in dovecot:
15-mailboxes.conf:
.......
?mailbox Drafts {
??? special_use = \Drafts
? }
? mailbox Junk {
??? special_use = \Junk
? }
? mailbox SPAM {
??? special_use = \Junk
? }
? mailbox Trash {
??? special_use = \Trash
? }
....
90-plugin.conf:
.....
?antispam_backend = MAILTRAIN
? #antispam_mail_sendmail_args? = --for;%u
? antispam_mail_spam = --spam
? antispam_mail_notspam = --ham
? antispam_mail_sendmail = /usr/local/bin/spam-learn.sh
? antispam_pipe_tmpdir = /tmp
? antispam_spam_pattern_ignorecase = spam;inbox.spam;Unwanted
? antispam_trash_pattern_ignoreca...
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:
2011 Nov 29
1
can't get sieve to sort virus into spam
...envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date
mbox_write_locks = fcntl
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
antispam_backend = dspam-exec
antispam_dspam_args = --deliver;--user;%u
antispam_dspam_binary = /usr/bin/dspam
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_spam = Spam
antispam_trash = trash;Trash;Deleted Items; Deleted Messages
sieve = /home/vmail/%d/%n/do...
2018 Feb 17
1
trying to enable sieve
...e = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
auto = 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 = d...
2015 Mar 31
2
Need a bit of help with the antispam plugin
...NOTE: The username is compared case-sensitively.
# Default is 10.
# Increase it to avoid issue like below:
# "Maximum number of concurrent IMAP connections exceeded"
mail_max_userip_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 th...
2012 Aug 17
1
antispam_plugin prevents IMAP login (error 3) [Dovecot 2.0.19]
...ailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
plugin {
antispam_backend = dspam-exec
antispam_dspam_binary = /usr/bin/dspam
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = error
antispam_spam = Spam
antispam_trash = trash;Trash;Deleted Items; Deleted Messages
autocreate = INBOX/Sent Mail
autocreate2 = INBOX/Spam
autocreate3 =...
2017 Feb 05
2
dovecot/auth CPU spikes
...= subscribe
special_use = Junk
}
mailbox Sent {
auto = subscribe
special_use = Sent
}
mailbox "Sent Messages" {
special_use = Sent
}
mailbox Trash {
auto = subscribe
special_use = Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
antispam_backend = pipe
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/bin/rspamc
antispam_mail_sendmail_args = -h;localhost:11334;-P;q1
antispam_mail_spam = learn_spam
antispam_spam = Junk
antispam_trash = Trash
fts = solr
fts_solr = break-imap-search url=http://localhost:8080/solr/
sieve...