[Dovecot] deliver exit codes?
Timo Sirainen
tss at iki.fi
Fri May 18 22:11:44 EEST 2007
On Thu, 2007-05-17 at 23:38 +0200, Ralf Hildebrandt wrote:
> This works really well, UNLESS a user exceeds his/her quota: In that
> particular case, deliver fails to deliver the mail and generates a
> bounce, all on it's own.
>
> It's exit status is 0 in that case, so my MTA (postfix) thinks that the
> mail has been delivered successfully.
>
> I'd prefer deliver to return EX_TEMPFAIL, which I can pass through
> maildrop back to postfix, which will then log a temporary error and
> will bounce the mail all by itself after 5 days time.
CVS HEAD has a new quota_full_tempmail setting for this. But since you
probably don't want to use CVS HEAD, your only choice is to modify the
sources:
src/deliver/deliver.c line 708-709:
if (temporary_error)
return EX_TEMPFAIL;
Change that to simply:
return EX_TEMPFAIL;
-------------- 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/20070518/f002b639/attachment.pgp
More information about the dovecot
mailing list