[Dovecot] sieve

Tom Hendrikx tom at whyscream.net
Tue Nov 6 10:18:46 EET 2012


On 11/6/12 8:59 AM, Christian Rößner wrote:
> Hi,
> 
> is there a sieve option that can reject a mail directly without
> creating a new mail and sending that out? I know about
> 
> reject "Reject message goes here";
> 
> but I am looking for a mechanism that can reject Mail. Postfix can
> use reject_unverified_recipient to connect to LMTP and ask if a mail
> would successfully be enqueued and will return the status gotten from
> the LMTP server if not. Chances are high that the mechanism would
> work, too, if Dovecot would know about the sieve rule, while getting
> a connection on LMTP. Does Dovecot know all rules at this point or is
> sieve handled after the mail has already been accepted?
> 

I have no idea if your above idea would actually work, but having
followed your questions on the postfix ml and your interests in using
reject_unverified_recipient and its cache with lmtp, it would be very
unwise to cache deliverability on the postfix side based on sieve
results, since sieve is able to reject/bounce on any part of the message
including message body contents and such.

This could lead to very unpredictable rejects to unrelated messages,
since the cache could obtain reject policies from sieve for a recipient
based on a single rejected message containing the word '<insert spammy
term here>'.

--
Tom



More information about the dovecot mailing list