Edgar Fuß
2009-Oct-13 13:27 UTC
[Dovecot] failing to deliver to one of multiple destinations
Is it defined whether, in case a message should be delivered to multiple destinations via a sieve script, and one of those destinations fail, then the whole delivery is to be considered as successful or not? My case: A sieve script forwarding to and external destinations plus local keep. The keep fails (configuration error, wrong homedir, .dovecot.lda- dupes not writable). According to postfix logs, dovecot deliver returned success. The mail was NOT delivered to the local destination and NOT bounced. Is this expected behaviour?
Stephan Bosch
2009-Oct-13 16:22 UTC
[Dovecot] failing to deliver to one of multiple destinations
Edgar Fu? schreef:> Is it defined whether, in case a message should be delivered to multiple > destinations via a sieve script, and one of those destinations fail, > then the whole delivery is to be considered as successful or not? > > My case: > A sieve script forwarding to and external destinations plus local keep. > The keep fails (configuration error, wrong homedir, .dovecot.lda-dupes > not writable). > According to postfix logs, dovecot deliver returned success. > The mail was NOT delivered to the local destination and NOT bounced. > > Is this expected behaviour?No, when delivery fails entirely, the deliver binary should give an appropriate exit code, indicating that the MTA needs to try again later or bounce the message. What do the Dovecot and MTA logs say? Furthermore, the output of dovecot -n would help us find and solve the issue. And finally, your Sieve script may also be relevant. Regards, -- Stephan Bosch stephan at rename-it.nl
Edgar Fuß
2009-Oct-13 18:27 UTC
[Dovecot] failing to deliver to one of multiple destinations
> No, when delivery fails entirely, the deliver binary should give an > appropriate exit code, indicating that the MTA needs to try again later > or bounce the message.OK, I would have expected that.> What do the Dovecot and MTA logs say?I will send you that information in private mail.> Furthermore, the output of dovecot -n would help us find and solve the > issue. And finally, your Sieve script may also be relevant.See above. Thanks for your help.
Edgar Fuß
2009-Oct-13 19:40 UTC
[Dovecot] failing to deliver to one of multiple destinations
> I will send you that information in private mail.OH NO! It seems to be entirely our fault. After spending about an hour excerpting, editing and commenting the mail log (Postfix->Dspam->Postfix->deliver/Sieve plus forward), and finally pasting the Sieve script, I noticed there seems to be an error in my colleagues forward-to-Sieve tranlation ommitting the keep after a redirect if the forward file contains both an external address and the local one. Sorry for the noise.