LDA input validation

Joseph Tam jtam.home at gmail.com
Mon Jan 26 04:31:48 UTC 2015


St?phane Cottin writes:

> dspam already send errors to syslog, the point here is to never loose
> email contents.  This was a wrong design, i'm now use a wrapper instead
> ( see my previous post for details ).

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.

If you really don't want the recipient to lose Email, you should
buffer the input into a file, run dspam on it, and if the output
is not-null, pipe it to dovecot-lda, otherwise pipe the original
input.

Joseph Tam <jtam.home at gmail.com>


More information about the dovecot mailing list