Steve Charmer writes:
Feb 28 12:20:04 diggy-ocn-drop imapd-ssl: LOGOUT, user=<URL:mailto:m...@mydomain.co>m...@mydomain.co, ip=[::ffff:104.xxx.xxx.xxx], headers=0, body=0, rcvd=77, sent=330, time=0, starttls=1I want to add additional information to these lines. The ip address is the public IPv4 of my server.I want to be able to add the public IPv4 address of the remote client trying to login to courier-imapdin the file /etc/courier/imapd-ssl I see the line SSLLOGGEROPTS="-name=imapd-ssl" can I add additional text to that line to include the remote ip address? I have searched the web, but I cannot find any examples on what to put there.
That's because there is nothing that the server can do to determine the client's real IP address. When NAT is used, as is apparently the case is here, as far as the server knows that's the IP address where the connection is coming from, and that's the only IP address that's involved. The real client IP address is only known to the network proxy.
pgpv3au9HzNWZ.pgp
Description: PGP signature
_______________________________________________ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap