Re: [Dovecot] Calling dovecot-lda from within Antispam pipe script (bash) seems to have no effect
21 Jun
2013
21 Jun
'13
12:58 a.m.
Ben Johnson writes:
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@gmail.com>
21 Jun
21 Jun
8:22 p.m.
New subject: [Dovecot] Calling dovecot-lda from within Antispam pipe script (bash) seems to have no effect
On 6/20/2013 5:58 PM, Joseph Tam wrote:
Thanks for the reply, Joseph. I appreciate your time.
I added debugging output to the script, which now prints the environment variables. My script now outputs the following:
25985-start (--spam) ENV value is: DOVECOT_PRESERVE_ENVS=TZ SSL_SOCKET_COUNT=0 DOVECOT_CHILD_PROCESS=1 CONFIG_FILE=/var/run/dovecot/config SOCKET_COUNT=1 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/var/vmail/example.com/ben CLIENT_LIMIT=1 GENERATION=9 DOVECOT_VERSION=2.0.19 SHLVL=1 LOG_SERVICE=1 SERVICE_COUNT=1 _=/usr/bin/env Checking if the command-line input argument string (--spam) contains the string "ham" or "spam" Mode is "SPAM" Calling (as user vmail) '/usr/lib/dovecot/deliver -d "sa-training@example.com" -m "Training.SPAM" -p "/tmp/sendmail-msg-25985.txt"' Exit status was 75 25985-end
Does anything jump-out at you?
Thanks again,
-Ben
4400
Age (days ago)
4401
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ben Johnson
-
Joseph Tam