[Dovecot] Dovecot - Sieve script loaded but filtering doesn't works ?

Clement PAULET list.it at lmaccess.net
Thu Mar 21 17:12:53 EET 2013


Hi Daniel,

Thanks for your help.

In fact my problem was due to my sieve script (missing header search).

#Sieve script with missing header settings
if address "To" "info at info.xx.com"
{
     fileinto "Test";
}

#Sieve script replace with header settings
if allof (header :contains "To" "info at info.xx.com")
{
         fileinto "INBOX.Test";
         stop;
}

As a precautionary measure I also add the autocreate directive.

I must yet to define a specific folder for the message marked as SPAM 
(not a simple folder).
I believe that is possible directly in dovecot configuration

Have a nice day

Clement


Le 2013-03-21 13:30, Daniel Parthey a écrit :
> Hi Clement,
> 
> Clement PAULET wrote:
>> When I use a Sieve script, it is loaded but actions are not respected
>> Mar 18 10:31:19 localhost dovecot: lda(info at info.xx.com): sieve: 
>> msgid=<20130318093119.7EAAEC063D at nflda02.xx.lan>: stored mail into 
>> mailbox 'INBOX'
> 
> If the mailbox "INBOX.Test" does not exist, the message
> will be delivered to mailbox "INBOX":
> http://wiki2.dovecot.org/LDA
> 
> Try to set the global dovecot configuration directive
> lda_mailbox_autocreate = yes
> This will always autocreate folders if they do not exist yet.
> 
> Alternatively you can use
> fileinto :create "INBOX.Test";
> to autocreate the folder in your Sieve script.
> 
> Regards
> Daniel




More information about the dovecot mailing list