[Dovecot] $IP not getting set?

Timo Sirainen tss at iki.fi
Mon Aug 15 00:13:28 EEST 2011


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 "$@"





More information about the dovecot mailing list