You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Hontvari Jozsef <ho...@solware.com> on 2003/05/10 08:53:56 UTC

Re: JavaMail doesn't support specifying the SMTP bind address

I have submitted an enhancement request through BugParade to the sun
javamail group to include a property for the smtp transport which makes
possible to supply to local bind address, instead of using the default
address.


----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Developers List" <ja...@jakarta.apache.org>
Cc: "JAVAMAIL-INTEREST" <JA...@java.sun.com>
Sent: Sunday, April 06, 2003 7:48 AM
Subject: JavaMail doesn't support specifying the SMTP bind address


> > 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: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org