LDA input validation
Joseph Tam
jtam.home at gmail.com
Mon Jan 26 11:03:18 UTC 2015
St?phane Cottin writes:
>> You're stilling going to lose contents. If dspam fails, the mail
>> is dumped, the LDA returns exit code 75, and the MTA will probably
>> issue a bounce Email to the sender.
>
> from dovecot-lda man page :
>
> 75 A temporary failure. This is returned for almost all failures. See the log file for
> details. (EX_TEMPFAIL)
>
> The mta keep the mail and retry delivery later, which is what I need.
Ah, my mistake. But ...
> I don't want to deliver email on dspam error, I prefer TEMPFAIL and
> future retries, so I have a chance to fix the issue later without
> loosing or deliver unprocessed mails
... you only have a limited time to fix it. Depending on the sending
MTA's retry schedule, you might have only a few days or less to to deal
with it before the sending MTA stops trying.
If it's important not to lose mail, then the deliver on failure strategy
would be more appropriate. You can even copy the input message that
caused dpam to crash to an inspection queue for later perusal.
Joseph Tam <jtam.home at gmail.com>
More information about the dovecot
mailing list