[Dovecot] IP in rawlog

Andreas Goertz andreas.goertz at hosteurope.de
Tue Mar 15 11:45:29 EET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Timo,

Andreas Goertz schrieb:
| Hi Timo,
|
| | 0.99.x or 1.0-test? In any case to rawlog.c something like:
|
| 0.99.14
|
| | struct ip_addr ip; | if (net_getpeername(proxy->client_in_fd, &ip,
| NULL) == 0) |     i_info("ip address = %s", net_ip2addr(&ip));
|
| no - this patch doesn't seem to work, because in rawlog.c proxy is
| not declared. So i looked for the call to rawlog_open() and saw that
| it's only called from main.c in imap and pop3 folder. But there also
| is no proxy declared. Do you have another idea? Thanks in advance.

Hmm - while searching for another solution i found the function
client_syslog() in imap-login/client.c. If i understand it correctly,
i_info() only writes to the syslog and i have no clue, how to write into
rawlog from client.c respectively client_syslog().

Is it possible to write from imap-login/client.c into rawlog? For
remember: i'm using 0.99.14.

Thanks and regards,
Andreas Goertz.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCNq65pAOZWzj6viQRApX1AKCifis+jgKTPSDiX1yynujNI7I+aACeOZWC
JRPn1R9ed/HcwD022fUPgrk=
=RJer
-----END PGP SIGNATURE-----



More information about the dovecot mailing list