[Dovecot] dovecot-sieve and LMT

Stephan Bosch stephan at rename-it.nl
Tue Jun 19 16:36:59 EEST 2012


Op 6/19/2012 3:13 PM, Martin Weil schreef:
> Am 19.06.2012 um 12:44 schrieb Stephan Bosch:
>
>> Op 6/19/2012 11:20 AM, Martin Weil schreef:
>>> Indeed they did not. I incorrectly thought that a line in postfix's main.cf would change the delivery to deliver. That would have been true if I used local delivery. For virtual users postfix is using "virtual" by default. So I had to add deliver to postfix's master.cf and change the virtual_transport in main.cf.
>>>
>>> After configuring logging for deliver I can now confirm that it is used. I was mistaken by thinking local delivery is the same as virtual delivery. I could have avoided this by reading the wiki more carefully. Sorry about that.
>>>
>>> But I am afraid sieve is still not working. Mails are still delivered to INBOX.
>> Do the logs say anything about Sieve? You can enable mail_debug in your configuration to obtain more verbose log messages about what Sieve is doing.
>>
>> Regards,
>>
>> Stephan.
>
> Thanks a lot for this tip.
> It turned out I used the %u variable instead of %n in the path of the sieve script, so sieve was looking in a non existing directory. After correcting sieve complained about the :create statement. But after I removed it, it worked flawlessly.

The :create tag doesn't work unless the mailbox extension is active; you 
need to add the following to the top of your Sieve script to use it:

require "mailbox";

Regards,

Stephan.



More information about the dovecot mailing list