[Dovecot] IP in rawlog

Timo Sirainen tss at iki.fi
Sat Mar 12 22:06:46 EET 2005


On Fri, 2005-03-11 at 10:13 +0100, Andreas Goertz wrote:
> i'm using dovecot with rawlog enabled. Well, i need to log the IP of the 
> user, too. Could you give me a hint, how this can be implemented?

0.99.x or 1.0-test? In any case to rawlog.c something like:

struct ip_addr ip;
if (net_getpeername(proxy->client_in_fd, &ip, NULL) == 0)
	i_info("ip address = %s", net_ip2addr(&ip));

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050312/cb1dfe3e/attachment-0001.bin>


More information about the dovecot mailing list