james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: [PATCH] for Bug 18726 JavaMail doesn't support specifying the SMTP bind address
Date Wed, 07 May 2003 01:53:26 GMT
Applied to CVS.

	--- Noel

-----Original Message-----
From: Hontvari Jozsef [mailto:hontvari2@solware.com]
Sent: Friday, April 11, 2003 8:24
To: James Developers List
Subject: [PATCH] for Bug 18726 JavaMail doesn't support specifying the
SMTP bind address

The patch addresses the problem in the way as described below by Noel.

It adds a new configuration parameter, "bind" to the RemoteDelivery mailet.
If this parameter is not given then the patch doesn't change the current
algorithm at all.

This patch is against the 2.1.2 version, not the 3.0 head. I would like it
to be included in the next small bugfix release, I am already using it
successfully with 2.1.2.

If you accept it, I am willing to add the new configuration parameter to the
user doc, but I need to know the base cvs tag which I should use.


----- Original Message -----
From: "Hontvari Jozsef" <hontvari2@solware.com>
To: "James Developers List" <james-dev@jakarta.apache.org>
Sent: Thursday, April 10, 2003 11:20 PM
Subject: Re: JavaMail doesn't support specifying the SMTP bind address


> I have implemented this in the way Noel recommended. It seems to be
> working.  I will send a patch in the near future.
>
>
> ----- Original Message -----
> From: "Noel J. Bergman" <noel@devtech.com>
> To: "James Developers List" <james-dev@jakarta.apache.org>
> Cc: "JAVAMAIL-INTEREST" <JAVAMAIL-INTEREST@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
>
>


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


Mime
View raw message