> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18726
> RemoteDelivery doesn't use the SMTP bind address

> While I can set the ip address the smtp server binds to, it only affects
the
> server port. But when it delivers emails James binds to the default ip
address
> instead of the specified.

The IP address that you can set is for the incoming handler.  It certainly
does not need to be the same as the outgoing side of James.  However ...

>From what I can see, JavaMail has no default provision for calling any of
the Socket constructors that specify which local address and/or port to
bind.  It either calls new Socket(host, port) or it uses a SocketFactory.
For some information on that, see
http://www.javaworld.com/javatips/jw-javatip115.html and related links.

I haven't looked into it much, but perhaps we could add our own
SocketFactory and some properties to support the ability to bind to a
specific outgoing IP and port.  Since I run multi-homed servers, the
inability to control bind addresses is a pet peeve of mine, too.  I've fixed
a number of open source programs in that regard.

On the other hand, perhaps there is something in JavaMail that already does
this, and we've simply missed it.  I'm cc'in the JavaMail Interest List to
see what they say.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to