[opensuse] howto execute sieve filter in dovecot
Hello, an other question :-( I want to move spam tagged files to the "Junk" folder of any user. I've seen than this can be done with sieve/dovecot, for example there: http://serverfault.com/questions/488044/send-spam-mail-to-a-special-folder-u... so I wrote in my own server account require "fileinto"; if header :comparator "i;ascii-casemap" :contains "Subject" "**SPAM**" { fileinto "Junk"; stop; } but if I send a port with **SPAM** in the sibject, it's not filtered. howto achieve this? thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 08/06/2014 16:17, jdd a écrit :
I want to move spam tagged files to the "Junk" folder of any user.
I got a bit forward. I could setup roundcube to show a fliter menu. But I couldn't yet manage dovecot to answer cleanly. Dovecot listen to port 4190 (said by netstat), but roundcube can't talk to it this would solve the filter problem, allowing users to setup they own filter thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Hello,
an other question :-(
I want to move spam tagged files to the "Junk" folder of any user.
I've seen than this can be done with sieve/dovecot, for example there:
http://serverfault.com/questions/488044/send-spam-mail-to-a-special-folder-u...
so I wrote in my own server account
require "fileinto";
if header :comparator "i;ascii-casemap" :contains "Subject" "**SPAM**" { fileinto "Junk"; stop; }
but if I send a port with **SPAM** in the sibject, it's not filtered.
howto achieve this?
You do not say how or if you configured dovecot for sieve. In my config I have the following: protocols = imap sieve lmtp protocol lmtp { mail_plugins = sieve quota } # sieve default values sieve = ~/.dovecot.sieve sieve_dir = ~/ sieve_subaddress_sep = + In a users homedir (example) .dovecot.sieve : if header :contains "subject" "SPAM" ) { fileinto "INBOX.junk"; stop; } -- Per Jessen, Zürich (30.5°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
jdd
-
Per Jessen