[Dovecot] real_rip variable addition for dovecot 2.1.10

Timo Sirainen tss at iki.fi
Thu Oct 18 06:23:58 EEST 2012


On 16.10.2012, at 23.43, Jack Bates wrote:

> Please check the code. I didn't add it, but a real_lip might be useful for some people as well. Also, I notice that pop3-proxy is doing a different xsession than the imap proxy. Is there an xsession standard that is different between the two, or just an oversight in the code? Both send the remote address/port, but only imap proxy sends the local address/port.
> 
> This patch declares long variable %{real_rip} so that a backend server can declare a different login_log_format_elements
> login_log_format_elements = user=<%u> method=%m rip=%r lip=%l pip=%{real_rip} mpid=%e %c
> 
> This is primarily useful for backend servers to log both the rip, lip, and in case of xsession, the real rip. I haven't done extensive testing yet, but as long as nothing does anything weird elsewhere in the code, it should be good.
> 
> http://www.brightok.net/jbates/dovecot-2.1.10-real-ip.patch

Added: http://hg.dovecot.org/dovecot-2.1/rev/92364817f4ba




More information about the dovecot mailing list