Hello Mahesh,
i think there is no backport.
For STARTTLS there should be two sides:
- James acting as receiver
- James acting as sender
You have the option to use TLS in James, by configuring a
"org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory".
But this is for strict TLS binding, not a STARTTLS. But it may be worth to look
at.
For the receiving side:
If you want to implement it in james, you need a handler for that.
Have a look at org.apache.james.smtpserver package.
There are the handlers for the low-level protocols.
I think you need to extend or change one of the handler classes.
Then you need to register your own handler class, by
- including the "james-smtphandlerchain.xml" into your config.xml
- change the class name inside the james-smtphandlerchain.xml.
- change the EhloCmdHandler.java, to announce the STARTTLS option
(esmtpextensions.add("STARTTLS");)
The StartTLS is implemented in James3, have a look at:
org.apache.james.protocols.smtp.core.esmtp. StartTlsCmdHandler;
For the sending side:
You need to change or expand the RemoteDelivery Mailet.
In James3 this is done, have a look at.
Just theory.
I am not sure, if I would recommend to implement it. You need to test it, too.
Maybe you could use James 3 beta4, which is long released version, and is used
by some servers.
Greetings
Bernd
-----Ursprüngliche Nachricht-----
Von: Mahesh Sivarama Pillai [mailto:[email protected]]
Gesendet: Montag, 4. Juli 2016 04:31
An: James Users List <[email protected]>
Betreff: Re: URGENT HELP: Backport STARTTLS from 3.0 to 2.3.2
Hi,
Can someone suggest how to go about this please ?
Thanks
Mahesh
On Thu, Jun 30, 2016 at 11:26 AM, Mahesh Sivarama Pillai <[email protected]>
wrote:
> Hi All,
>
> Did someone backport *STARTTLS* feature from 3.0 beta to 2.3.2 ? We have
> 2.3.2 running in production and there is a requirement to support STARTTLS.
> Since 3.0 is in beta, the team is not comfortable in putting into
> production.
>
> If the porting is not done, can someone please guide on how to implement
> this in 2.3.2 ? I can give it a try.
>
> Thanks
> Mahesh
>