[Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Steve Wagner
lists at lanwin.de
Mon Dec 28 12:55:57 EET 2009
Hi, sometimes mails that i discard via sieve gets delivered to my inbox
and i can not figure out why. So i hope you can give me a hint.
My setup is:
I use a self compiled dovecot 1.2.4 with installed sieve and managesieve
plugin.
Incoming mails a processed by Postfix and the delivered to Procmail.
Procmail invokes Spamassassin and discard all mails marked as spam. The
other mails are passed to Dovecot deliver this way:
:0 w
| /opt/dovecot/libexec/dovecot/deliver
For moving mails to subdirectorys this works always, but not for mails
that are discard via Sieve. Examples are:
if header :contains "List-Id" "git.vger.kernel.org"
{
if header :contains "Subject" "[ANNOUNCE]" { fileinto "Announce";
stop; }
if header :contains "Subject" "[ANN]" { fileinto "Announce"; stop; }
if header :contains "Subject" "[PATCH" { discard; stop; }
fileinto "Lists.Git";
stop;
}
or
if header :contains "Organization" "web.de" { discard; stop; }
This often works, but sometimes it fails. Procmail reports then that
deliver reported an error (but not which) and delivers them to my inbox.
There are also no message in dovecots or dovecot delivers log file.
Dose anybody have an idea?
Steve
More information about the dovecot
mailing list