Tomislav Mihalicek
2011-Jul-19 08:49 UTC
[Dovecot] Dovecot 1.2.17, Proxy and forwarding of remote ip
Hi i have a nice working proxy setup and postlogin script that is doing logging logs. echo "$(date +%Y.%m.%d-%H:%M:%S), $USER, $IP, ${1}" >> /var/log/mail/logins.info 2>&1 is it possible that i recieve a remote ip of user client on proxied internal machine, cause i have only the proxy one, and that date is not a relevant to me thanx t. -- View this message in context: http://old.nabble.com/Dovecot-1.2.17%2C-Proxy-and-forwarding-of-remote-ip-tp32089318p32089318.html Sent from the Dovecot mailing list archive at Nabble.com.
Urban Loesch
2011-Jul-19 09:19 UTC
[Dovecot] Dovecot 1.2.17, Proxy and forwarding of remote ip
Hi, try to put your proxy ip's in the "login_trusted_networks" configuration option. ... # Space separated list of trusted network ranges. Connections from these # IPs are allowed to override their IP addresses and ports (for logging and # for authentication checks). disable_plaintext_auth is also ignored for # these networks. Typically you'd specify your IMAP proxy servers here. login_trusted_networks ... Regards Urban Tomislav Mihalicek wrote:> Hi > > i have a nice working proxy setup and postlogin script that is doing logging > logs. > echo "$(date +%Y.%m.%d-%H:%M:%S), $USER, $IP, ${1}" >> > /var/log/mail/logins.info 2>&1 > > is it possible that i recieve a remote ip of user client on proxied internal > machine, cause i have only the proxy one, and that date is not a relevant to > me > > thanx > > t.