I have written a custom authentication module to enable client IP address check (using Zimbra Server Extensions).
This is working fine when logging in from Zimbra web client. But when using IMAP/POP client, client IP is being received as null.
This is the method I am using to get client IP:
How can we get the IP address of the client when logging in from IMAP/POP.
This is the mailbox.log. "aa.bb.cc.dd" is the correct client IP address which I want.
2011-02-10 20:02:19,085 INFO [ImapServer-11] [ip=aa.bb.cc.dd;] CustomAuth - ::::Current IP:::null
2011-02-10 20:02:19,085 INFO [ImapServer-11] [ip=aa.bb.cc.dd;] CustomAuth - ::::No IPs match for user. Denying logon