[Dovecot] test

Timo Sirainen tss at iki.fi
Thu Sep 8 12:45:31 EEST 2011


On Thu, 2011-09-08 at 12:41 +0300, Timo Sirainen wrote:

> I'm not aware of any such bugs ever existing in dovecot-lda. You could
> check this by having Exim internally deliver mails from that site to
> some other maildir/mbox file, and check if the empty line exists there
> also. I don't know the specifics of how to configure Exim this way.

Oh, or another possibility: instead of executing dovecot-lda directly,
execute dovecot-lda.sh which contains something like (warning: totally
untested):

#!/bin/sh


tmpfile=`mktemp`
cat > $tmpfile

if grep -q ^From.*transfer.ro; then
  cp $tmpfile /tmp/transfer.ro.`date +%s`
fi

/usr/local/libexec/dovecot/dovecot-lda "$@" < $tmpfile
ret=$?
rm -f $tmpfile
exit $ret





More information about the dovecot mailing list