[Dovecot] recipient delimiter results in sieve errors

Gregory Mokhin mok at kde.ru
Mon Sep 3 04:53:57 EEST 2007


Hello,

I'm using dovecot 1.0.3 and Dovecot Sieve plugin 1.0.2. Sieve script works
fine with normal addresses, like user at domain.., and messages marked with
"X-Spam-Flag: YES" are delivered directly to INBOX.Spam.

To make deliver understand recipient_delimiter I tried two methods, the
first one as per wiki (tweaking postfix master.cf), and the second one by
tweaking dovecot-sql.conf (the main idea is to use
concat(substring_index('%n',"+',1),'@','%d') for the username). Both
methods work good.

However when deliver processes sieve script for the addresses with a
delimiter, user+ext at domain.tld, there is an error:

deliver(test at k..): Info: cmusieve: Using sieve path:
/home/vmail/.dovecot.sieve
deliver(test at k..): Info: cmusieve: Executing script
/home/vmail/.dovecot.sievec
deliver(test at k..): Info: sieve runtime error: Keep: Generic Error
deliver(test at k..): Error:
sieve_execute_bytecode(/home/vmail/.dovecot.sievec) failed
deliver(test at k..): Info: msgid=<.. at mail...>: saved mail to INBOX

In that case message is delivered to INBOX, not to INBOX.Spam

Regards,
Gregory



More information about the dovecot mailing list