Hi
I use dovecot-2.2.36.4 on Debian 8.11 and plugin dovecot-antispam from
http://johannes.sipsolutions.net/Projects/dovecot-antispam
All works fine but in roundcube i get two folder: Spam (real: Junk) and SPAM
in sieve i have:
require ["fileinto","imap4flags"];
# rule:[SPAM Box]
if header :contains "X-Spam-Flag" "YES"
{
setflag "\\Seen";
fileinto "SPAM";??? #?? --->?? because dovecot-antispam need folder
SPAM
to teach spam or ham
stop;
}
problem probably fixed when I change
fileinto "SPAM";
to
fileinto "Junk";
But plugin "dovecot-antispam" probably not working ...
Maybe I think wrongly
Can you recommend any other plugin that will work properly and teach
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_ignorecase = trash;Deleted
*;Junk*;wiadomo&AVs-ci-&AVs-mieci;kosz
? antispam_debug_target = syslog
? antispam_verbose_debug = 1
script to learn
cat /usr/local/bin/spam-learn.sh
#!/bin/sh
date >> /tmp/spam.txt
echo $@ >> /tmp/spam.txt
if [ "x$1" = "x--spam" ]; then
??? /usr/bin/pyzor report >> /tmp/spam.txt 2>&1
fi
if [ "x$1" = "x--ham" ]; then
??? /usr/bin/pyzor whitelist >> /tmp/ham.txt 2>&1
fi
-- 
Maciej Mi?aszewski
Starszy Administrator Systemowy
IQ PL Sp. z o.o.
Biuro Obs?ugi Klienta:
e-mail: bok at iq.pl
tel.: +48 58 326 09 90 - 94
fax: +48 58 326 09 99
Dzia? pomocy: https://www.iq.pl/pomoc
Informacja dotycz?ca przetwarzania danych osobowych: https://www.iq.pl/kontakt
IQ PL Sp. z o.o. z siedzib? w Gda?sku (80-298), ul. Geodet?w 16, KRS 0000007725,
S?d rejestrowy: S?d Rejonowy w Gda?sku VII Wydzia? KRS, kapita? zak?adowy:
140.000 PLN, NIP 5832736211, REGON 192478853
Hi, maybe this helps avoiding double folders. https://wiki.dovecot.org/Plugins/MailboxAlias Am 24.03.20 um 10:34 schrieb Maciej Milaszewski:> Hi > I use dovecot-2.2.36.4 on Debian 8.11 and plugin dovecot-antispam from > http://johannes.sipsolutions.net/Projects/dovecot-antispam > > All works fine but in roundcube i get two folder: Spam (real: Junk) and SPAM > > > in sieve i have: > > require ["fileinto","imap4flags"]; > # rule:[SPAM Box] > if header :contains "X-Spam-Flag" "YES" > { > setflag "\\Seen"; > fileinto "SPAM";??? #?? --->?? because dovecot-antispam need folder SPAM > to teach spam or ham > stop; > } > > problem probably fixed when I change > fileinto "SPAM"; > to > fileinto "Junk"; > > > But plugin "dovecot-antispam" probably not working ... > Maybe I think wrongly > > Can you recommend any other plugin that will work properly and teach > 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_ignorecase = trash;Deleted > *;Junk*;wiadomo&AVs-ci-&AVs-mieci;kosz > > ? antispam_debug_target = syslog > ? antispam_verbose_debug = 1 > > > script to learn > > cat /usr/local/bin/spam-learn.sh > #!/bin/sh > > date >> /tmp/spam.txt > echo $@ >> /tmp/spam.txt > > if [ "x$1" = "x--spam" ]; then > ??? /usr/bin/pyzor report >> /tmp/spam.txt 2>&1 > fi > if [ "x$1" = "x--ham" ]; then > ??? /usr/bin/pyzor whitelist >> /tmp/ham.txt 2>&1 > fi > >
Am Dienstag, den 24.03.2020, 16:03 +0100 schrieb J. Echter:> > > > Can you recommend any other plugin that will work properly and teach > > spam with Junk for dovecot2.2.36-4I followed the instructions at https://wiki2.dovecot.org/HowTo/AntispamWithSieve and successfully replaced dovecot-antispam which is deprecated with Imapsieve. It is a little more work until you have it going but not too much.. Cheers, Johannes> > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200324/b615ba61/attachment.html>