[Dovecot] sieve problem email silently discard

Stephan Bosch stephan at rename-it.nl
Wed Jun 22 17:41:53 EEST 2011


Op 22-6-2011 16:05, ml at smtp.fakessh.eu schreef:
> Le mercredi 22 juin 2011 10:21, Stephan Bosch a écrit :
>> Op 22-6-2011 3:18, ml at smtp.fakessh.eu schreef:
>>> I met a few times the problem or an email that passes through a sieve
>>> script is silently discard
>> We cannot say much about this problem, unless we get some more information:
>>
>> 1) What is your configuration? Provide the output of dovecot -n.
> my dovecot -n
<snip/>
>    plugin = $mail_plugins  autocreate managesieve  sieve
>    sieve = ~/.dovecot.sieve
>    sieve_before = /var/sieve-scripts/roundcube.sieve
>    sieve_dir = ~/sieve
>    sieve_global_path = whatever
<snip/>

Ok, so you are using multiscript with sieve_before.

>> 2) Is it reproducible somehow?
> this is rare but does occur from time to time. I do not know how to reproduce

:/

>>       - What is the Sieve script you see this behavior for? Or does it
>> happen for all users?
> i use a simple script sieve
> of this style
> ~]$ cat  .dovecot.sieve
<snip/>

>> 3) Is there any error or other message in the logs that may explain this
>> behavior?
> egrep lda /var/log/maillog
>
> 2011-06-22 14:34:45lda(fakessh): Info: sieve:
> msgid=<4E01E14E.4040401 at sr******.info>: marked message to be discarded if not
> explicitly delivered (discard action)
> 2011-06-22 14:34:45lda(root): Info: sieve:
> msgid=<4E01E14E.4040401 at sr******.info>: marked message to be discarded if not
> explicitly delivered (discard action)

This is really strange. Even though your script does not contain a 
discard command, the message is discarded through an explicit discard 
action. I do notice that you are using the multiscript feature using 
sieve_before and I expect that our problem is there. Notice that the 
same message is discarded in an identical manner for two different users 
(root and fakessh). What does /var/sieve-scripts/roundcube.sieve contain?

Also, it can be helpful to enable mail_debug to get more info on what 
scripts are being executed and which script actually triggers the 
discard action.

Regards,

Stephan.





More information about the dovecot mailing list