[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-tp... Sent from the Dovecot mailing list archive at Nabble.com.
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.
Yes, that solved the problem. I just putted login_trusted_networks = x.x.x.70, x.x.x.71 in dovecot.conf, restarted and that's it :P
Thanx
Urban Loesch-2 wrote:
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.
-- View this message in context: http://old.nabble.com/Dovecot-1.2.17%2C-Proxy-and-forwarding-of-remote-ip-tp... Sent from the Dovecot mailing list archive at Nabble.com.
participants (2)
-
Tomislav Mihalicek
-
Urban Loesch