[Dovecot] $IP not getting set?
Using dovecot 2.0.13. I went to implement relay-ctrl per directions
on the Wiki, and failed. After running it down, as best as I can determine, the problem is that the $IP variable is not getting set (and thus not re-set in the script wrapper). I plunked a "set >> debug" into the script, and the only env var's that are set are as listed below (slightly sanitized for public display). Anyone have any ideas? I have tried both the Wiki-way, and this way: http://dovecot.org/list/dovecot/2009-December/045139.html with identical results.
CLIENT_LIMIT='1000' CONFIG_FILE='/my_path/config' DOVECOT_CHILD_PROCESS='1' DOVECOT_PRESERVE_ENVS='TZ' DOVECOT_VERSION='2.0.13' GENERATION='7690' IFS=' ' LOG_SERVICE='1' OPTIND='1' PATH='my_path' PPID='1' PS1='# ' PS2='> ' PS4='+ ' PWD='my_pwd' SOCKET_COUNT='1' SSL_SOCKET_COUNT='0'
On Tue, 2011-08-02 at 13:46 -0700, A.L. wrote:
Using dovecot 2.0.13. I went to implement relay-ctrl per directions on the Wiki, and failed. After running it down, as best as I can determine, the problem is that the $IP variable is not getting set (and thus not re-set in the script wrapper). I plunked a "set >> debug" into the script, and the only env var's that are set are as listed below (slightly sanitized for public display). Anyone have any ideas? I have tried both the Wiki-way, and this way: http://dovecot.org/list/dovecot/2009-December/045139.html with identical results.
I don't know if the mailing list post is up to date, read the wiki instead: http://wiki2.dovecot.org/PostLoginScripting
My test script prints the IP address to the IMAP session just fine:
#!/bin/sh
echo "* OK $IP" exec "$@"
participants (2)
-
A.L.
-
Timo Sirainen