Kelsey Cummings
2011-May-27 19:00 UTC
[Dovecot] Client IP log variable for proxy/director setups?
Timo - it would be very convenient if we could get a variable that held the real client ip for use in logging with director/proxy setups. It's clearly already passed around in client->user->remote_ip but at this point, I don't see anyway to get it into the logs and it would take me ages to figure out the Right place to add it since client->user doesn't seem to be available in client-common.c: get_var_expand_table(..). Perhaps I'm missing something obvious? -- Kelsey Cummings - kgc at corp.sonic.net sonic.net, inc. System Architect 2260 Apollo Way 707.522.1000 Santa Rosa, CA 95407
Kelsey Cummings
2011-Jun-01 00:17 UTC
[Dovecot] Client IP log variable for proxy/director setups?
On Fri, May 27, 2011 at 12:00:25PM -0700, Kelsey Cummings wrote:> Timo - it would be very convenient if we could get a variable that held > the real client ip for use in logging with director/proxy setups. It's > clearly already passed around in client->user->remote_ip but at this point, > I don't see anyway to get it into the logs and it would take me ages to > figure out the Right place to add it since client->user doesn't seem to > be available in client-common.c: get_var_expand_table(..). Perhaps I'm > missing something obvious?Something so obvious as it already doing it. I have NFC what I did when I "tested" this the first time around and concluded that the director server's ip was showing up in %r. Sorry! -- Kelsey Cummings - kgc at corp.sonic.net sonic.net, inc. System Architect 2260 Apollo Way 707.522.1000 Santa Rosa, CA 95407