[Dovecot] PATCH: sendmail-like DSNs in Dovecot deliver (EX_TEMPFAIL always)

Timo Sirainen tss at iki.fi
Sun May 13 20:34:58 EEST 2007

On Sun, 2007-05-13 at 18:16 +0300, Timo Sirainen wrote:
> I don't think there are any useful exit codes in sysexits.h. Hmm.
> Deliver fallbacks always trying to write mail to INBOX if it couldn't
> write it elsewhere. So INBOX writes can fail only with:
> 1. permission problems
> 2. out of quota
> In INBOX cause 1. is probably a configuration problem. In this case it
> should be treated as temporary problem.
> 2. should probably be configurable, as some people want it to be a
> temporary failure and others want it to be a permanent failure.
> I guess I'll have to go and fix Dovecot's error handling a bit.

Dovecot can now internally report these failures:

	/* Temporary internal error */
	/* It's not possible to do the wanted operation */
	/* Invalid parameters (eg. mailbox name not valid) */
	/* No permission to do the request */
	/* Out of disk space or quota */
	/* Item (eg. mailbox) doesn't exist or it's not visible to us */
	/* Tried to access an expunged message */

I also added quota_full_tempfail setting to control if it should return
EX_TEMPFAIL or bounce the mail. All other errors are treated as
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070513/f09836f2/attachment.pgp 

More information about the dovecot mailing list