LDA input validation

Stéphane Cottin stephane.cottin at vixns.com
Fri Jan 23 14:49:56 UTC 2015


Hi,

I'm using qmail + dspam + dovecot-lda.

A typical .qmail file :

| /usr/bin/dspam --client --deliver=stdout --user "$EXT@$USER" | /usr/bin/preline -f /usr/lib/dovecot/dovecot-lda -d "$EXT@$USER" -a "$EXT@$USER" -m "$EXT2"

When dspam segfault or is killed, preline receive an empty content and only pass to dovecot-lda two headers ( Return-Path and Delivered-To ).
Then dovecot-lda delivers successfully and the original message contents are lost. 

Should dovecot-lda returns an error in such conditions ( invalid contents ) ? Qmail will keep it in the queue and retry delivery later.

Stéphane


More information about the dovecot mailing list