[Dovecot] Calling dovecot-lda from within Antispam pipe script (bash) seems to have no effect

Joseph Tam jtam.home at gmail.com
Fri Jun 21 00:58:47 EEST 2013


Ben Johnson writes:

> It really boils-down to the fact that I can call the following on the
> command-line and it functions as expected:
>
> su vmail -c '/usr/lib/dovecot/deliver -a "sa-training at example.com" -d
> "sa-training at example.com" -m "Training.SPAM" -p
> "/tmp/sendmail-msg-25794.txt"'
>
> Yet, when I attempt to do the exact same thing from within the pipe
> script that Dovecot Antispam calls, I receive exit code 75 from
> deliver/dovecot-lda and absolutely nothing is logged, with exception of
> the information of which I'm already aware (logged to syslog).

Have you also checked the environment variables?  I think dovecot-lda
gets some information from them.  Also, it's possible the PATH or some
other critical environment variables is different, causing the
difference in outcome.

Joseph Tam <jtam.home at gmail.com>


More information about the dovecot mailing list