> > InetAddress ip = socket.getInetAddress();
> 
> I meant access it from the mailet (since I no longer have access to the
> socket).  If not, I'll probably go through and add a variable and
> getter/setter methods to Mail to hold the IP address of the sender (will
> default to localhost) and overload sendMail to support getting the
> remote IP address from SMTPHandler.

Yep, having the IP is very useful.

For example you can then block pesky IPs, or if you're setting up a
secure private email system, for example exchanging B2B data, having IP
checks and filtering is very nice.

Dino.


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to