Displaying 20 results from an estimated 24 matches for "learn_ham".
2019 Feb 24
0
permission denied errors with INDEX=MEMORY and trees plugin
...{
executable = script /usr/lib/dovecot/filter_rspamc.sh
group = vmail
unix_listener sieve-pipe/filter_rspamc {
mode = 0600
user = vmail
}
user = vmail
}
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service learn_ham {
executable = script /usr/lib/dovecot/learn_ham.sh
group = vmail
unix_listener sieve-pipe/learn_ham {
mode = 0600
user = vmail
}
user = vmail
}
service learn_spam {
executable = script /usr/lib/dovecot/learn_spam.sh
group = vmail
unix_listener sieve-pipe/learn_spam {
mo...
2020 Oct 13
1
Spam learning for rspamd
On 10/12/2020 10:54 PM, Aki Tuomi wrote:
> Try this guide:
> https://doc.dovecot.org/configuration_manual/howto/antispam_with_sieve/
>
> Aki
I will, but that doesn't seem to answer the question of the header
rewriting. How can I explain to rspamd and/or sieve that a message that
was delivered, but marked as spam is in fact NOT spam?
--
Dan Egli
On my Test server
--------------
2020 Apr 01
2
sieve compile error
Dear all, I try to recompile my learn_ham.sieve script, which fails
with the message
root at ida:/etc/dovecot# sievec sieve-scripts/report-ham.sieve
report-ham: line 1: error: require command: unknown Sieve capability
`vnd.dovecot.pipe'.report-ham: line 1: error: require command: unknown
Sieve capability `imapsieve'.report-ham: li...
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:
2019 Nov 16
2
Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11
...report-ham.svbin
-rw-r--r-- 1 root root 199 Nov 17 00:25 report-spam.sieve
-rw-r--r-- 1 root root 354 Nov 17 00:30 report-spam.svbin
-rwxr-xr-x 1 root root 41 Nov 17 00:32 sa-learn-ham.sh
-rwxr-xr-x 1 root root 42 Nov 17 00:32 sa-learn-spam.sh
$ cat sa-learn-ham.sh
#!/bin/sh
exec /usr/bin/rspamc learn_ham
When I execute the script manually, it seems to work:
$ cat [some-mail] | /usr/lib/dovecot/sieve/sa-learn-ham.sh
Results for file: stdin (0.011 seconds)
success = true;
filename = "stdin";
scan_time = 0.012000;
Again, with the same mail:
$ cat [some-mail] | /usr/lib/dovecot/sieve/sa-le...
2017 Feb 05
2
dovecot/auth CPU spikes
...{
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 = file:~/sieve;active=~/.dovecot.sieve
s...
2020 Jan 21
0
Getting an extprogram script to work
Hi all,
I'm trying to do the same thing everyone else is: having rspamd
learn_ham or learn_spam depending on where I move a message. My current
problem is that Dovecot seems to be reporting success, but nothing ever
happens -- the script somehow fails to run.
I'm currently using a dummy script that just writes a file to /tmp,
until I can get this much working, at least. My...
2018 Jul 26
2
mdbox_deleted proper syntax
...subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-pgsql.conf
driver = sql
}
passdb {
args = /etc/dovecot/dovecot-pgsql2.conf
driver = sql
}
passdb {
args = cache_key=%u%r%l *
driver = bsdauth
}
plugin {
antispam_backend = mailtrain
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/local/bin/rspamc
antispam_mail_sendmail_args = -h;127.0.0.1:11334;-P;q1
antispam_mail_spam = learn_spam
antispam_spam = caughtspam
antispam_trash = trash
fts = solr
fts_autoindex = yes
fts_solr = url=http://127.0.0.1:8983/solr/dovecot/
recipient_delim...
2018 Mar 10
1
quota-status: Issues with uppercase recipient address
...ial_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /usr/local/etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/srv/mail/dovecot/shared-mailboxes
antispam_backend = mailtrain
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/local/bin/rspamc
antispam_mail_sendmail_args = -h;10.0.110.27:11334;-P;[REDACTED]
antispam_mail_spam = learn_spam
antispam_spam = Junk
antispam_trash = Trash
fts = solr
fts_autoindex = yes
fts_solr = url=http://127.0.0.1:8983/solr/dovecot/
imapsieve_m...
2016 Apr 18
0
antispam plugin pipe backend error when moving multiple emails
...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_level = 9
When moving 2 or more messages from inbox to the Junk folder:
"J47...
2019 Nov 17
0
Learning ham/spam with IMAPSieve: sa-learn-ham.sh terminated abnormally, signal 11
Jens Rey via dovecot skrev den 2019-11-17 00:51:
> $ cat sa-learn-ham.sh
> #!/bin/sh
> exec /usr/bin/rspamc learn_ham
rspamc is not spamc
is rspamd installed ?, is spamassassn installed ?
make sa-laern-ham.sh change name to rspamd-learn-ham.sh and addopt sieve
to that name change
i cant se other error on what you have
2020 Apr 01
0
sieve compile error
...t.org/Pigeonhole/Sieve/Plugins/Extprograms>
so is this a global sieve script or personal sieve script? I think it is personal script as it is triggered by imapsieve.
Sami
> On 1 Apr 2020, at 15.35, Johannes Rohr <johannes at rohr.org> wrote:
>
> Dear all, I try to recompile my learn_ham.sieve script, which fails with the message
>
> root at ida <mailto:root at ida>:/etc/dovecot# sievec sieve-scripts/report-ham.sieve
>
> report-ham: line 1: error: require command: unknown Sieve capability `vnd.dovecot.pipe'.
> report-ham: line 1: error: require command:...
2015 Feb 01
0
[Bug ?] IMAP keywords are not preserved during mailbox conversion
...x Sent {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = scheme=plain username_format=%n /usr/local/etc/dovecot/dovecot.auth/%d.passwd
driver = passwd-file
}
plugin {
antispam_backend = mailtrain
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/local/bin/rspamc
antispam_mail_sendmail_args = -h;localhost:11334
antispam_mail_spam = learn_spam
antispam_spam = Junk
antispam_trash = Trash
quota = dict:User quota::file:%h/dovecot-quota
quota_rule = *:storage=2G
quota_rule2 = Trash:storage=+10%%
qu...
2017 Sep 01
0
problem with shared folders and acls - only able to share INBOX
...special_use = \Trash
}
prefix =
separator = /
subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
antispam_backend = pipe
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/bin/rspamc
antispam_mail_spam = learn_spam
antispam_spam = Spam
antispam_trash = Trash
quota = maildir:User quota
quota_exceeded_message = Benutzer %u hat das Speichervolumen
?berschritten. / User %u has exhausted allowed storage space.
sieve =
file:/var/...
2018 Aug 09
3
imapsieve wrong matches on APPEND cause
...lugin section of dovecot.conf no rule
is matched at all.
If I add APPEND event into causes in plugin section of dovecot.conf, then
for some reason imapsieve matches both rules on move from Inbox to Spam and
no rules on move from Spam to Inbox.
Matching both rules attempts to run both learn_spam and learn_ham. First one
works and second logs error (which is correct).
On attempt to move message from Spam to Inbox imapsieve not matching any
rule at all and thus learning is not working.
Could you please let me know how to fix this?
More details.
Here is what I have in my plugin section of dovecot.conf:...
2018 Apr 14
1
imapsieve fail to pipe to sa-learn-spam.sh
...e}" ];
/home/vmail/sieve/global#cat sa-learn-spam.sh
#!/bin/sh
exec /usr/local/bin/rspamc -h /var/run/rspamd/rspamd.sock -P
"Password" learn_spam
/home/vmail/sieve/global#cat sa-learn-ham.sh
#!/bin/sh
exec /usr/local/bin/rspamc -h /var/run/rspamd/rspamd.sock -P
"password" learn_ham
I'd appreciate any suggestions.
Thanks.
Dave.
2017 Sep 05
0
AW: problem with shared folders and acls - only able to share INBOX
...special_use = \Trash
}
prefix =
separator = /
subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
antispam_backend = pipe
antispam_mail_notspam = learn_ham
antispam_mail_sendmail = /usr/bin/rspamc
antispam_mail_spam = learn_spam
antispam_spam = Spam
antispam_trash = Trash
quota = maildir:User quota
quota_exceeded_message = Benutzer %u hat das Speichervolumen
?berschritten. / User %u has exhausted allowed storage space.
sieve =
file:/var/...
2017 Jun 13
0
v2.2.30 released
...special_use = \Sent
}
mailbox Trash {
auto = no
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = cache_key=%s%u *
driver = pam
}
plugin {
acl = vfile
acl_anyone = allow
acl_shared_dict = proxy::acl
antispam_backend = mailtrain
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 = SPAM
antispam_trash = Trash
fts = lucene
fts_autoindex = yes
fts_lucene = whitespace_chars=@.
mail_replica = remote:root at 192.168.1.7...
2018 Aug 04
1
replication fails and corrupts index with zlib enabled
...special_use = \Trash
}
mailbox virtual/All {
special_use = \All
}
mailbox virtual/Flagged {
special_use = \Flagged
}
prefix =
type = private
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
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
mail_replica = tcp:stand.by.server.ip.address
sieve = ~/.dovecot.sieve
sieve_before = /etc/dovecot/sieve/before...
2018 Jul 30
0
mdbox_deleted proper syntax
...ovecot/dovecot-pgsql.conf
> driver = sql
> }
> passdb {
> args = /etc/dovecot/dovecot-pgsql2.conf
> driver = sql
> }
> passdb {
> args = cache_key=%u%r%l *
> driver = bsdauth
> }
> plugin {
> antispam_backend = mailtrain
> antispam_mail_notspam = learn_ham
> antispam_mail_sendmail = /usr/local/bin/rspamc
> antispam_mail_sendmail_args = -h;127.0.0.1:11334;-P;q1
> antispam_mail_spam = learn_spam
> antispam_spam = caughtspam
> antispam_trash = trash
> fts = solr
> fts_autoindex = yes
> fts_solr = url=http://127.0....