[Dovecot] login_trusted_networks from webmail ?
tss at iki.fi
Wed Jul 3 23:34:56 EEST 2013
On 3.7.2013, at 23.29, Jan-Frode Myklebust <janfrode at tanso.net> wrote:
> I'd like to get the IP-address of the webmail-klient logged in my
> maillog (for being compliant with coming data retention policies). I've
> noticed that with login_trusted_networks pointing at my dovecot
> directors, we get rip=client-ip logged on the backends. How is the proxy
> providing this to the dovecot backends? Anybody know what magic we need
> to implement in our webmail-solution to be able to forward the
> webmail-client-ip and have it logged as rip= in dovecot?
a ID ("x-originating-ip" "184.108.40.206")
Other things you could send in the same command: x-originating-port, x-connected-ip, x-connected-port
And in case others are wondering, POP3 and LMTP use: XCLIENT ADDR=220.127.116.11 PORT=12345
> I belive it will be enough to have it logged as rip= on the directors,
> maybe not needed to be forwarded all the way to the backends (but that
> would be nice as well).
If backend has login_trusted_networks pointing to directors, then the IP gets forwarded to backends as well.
More information about the dovecot