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-train...@example.com" -d
"sa-train...@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.h...@gmail.com>