[Dovecot] sieve discard

Eugene Gladchenko eugene at donpac.ru
Fri Sep 19 18:33:19 EEST 2008


Steffen,

>> if header
>>   :matches

SK> Do you use regex's, if not :contains or :is may work, too, with less
SK> ressources.

>>     ["To", "Cc", "Bcc", "Reply-To", "In-Reply-To"]
>>     ["webmaster at example.net"] {
>>   discard;
>>   stop;
>> }
>>

SK> Do you have the headers of a mail, that got discarded, and and those, that
SK> did not?

I think I managed to solve the problem, thanks to Steffen.

It turned out that "webmaster at example.net" :matches "webmaster at example.net"
but "<webmaster at example.net>" does not.

In my tests, I always sent messages to webmaster at example.net address.
But spammers used to use angle brackets so it fooled the script.

Now the sieve script looks as follows and it works:

if address :is :all
     ["To", "Cc", "Bcc", "Reply-To"]
     ["webmaster at example.net"] {
   discard;
}


-- 
Eugene Gladchenko
EVG15-RIPE



More information about the dovecot mailing list