Serge Knystautas wrote:
> 
> I guess these questions is mainly for Charles...

> 2) How much work is involved in getting TLS support for SMTP?  Ideally
> the support would be optional... I'm not quite sure how Avalon would
> support this, but in theory I'd like to have a non-TLS SMTP listener at
> port 25 and then a TLS SMTP listener at some other port.

I've commited a version of SMTPServer in proposal which enables TLS.
However, this does not work as expected. I believe the problem revolves
around the use of the deprecated method DataInputstream.readLine() in
SMTPHandler. Basically, as it is, the TLS version never sees the
end-of-Data marker so the connection has to be manually closed. The
message is recieved OK, but with a spurious '.' or 2 at the end.

To resolve this, i think the way to go is use a
BufferedReader(InputStream), as with the POP3 and RemoteManager. We
would then need to give the handler a sense of state to distinguish
between data and commands. It would stay in the data state until it
recieved a line which was just '.' .

This is certainly doable. However, given that the SMTP is currently the
only stable part (are there still file problems with POP3 on NT?), I
would suggest delaying this, unless it is vital for someone.

I haven't looked at the two port thing yet. I suspect you'd have to
alter James.java to create 2 servers, one per port. Do you want to
forward message on 2 ports or just recieve on two? The issue here, I
think, is that outbound  mail transmission uses class SmartTransport,
which invokes the system transport. So I think you could recieve on
plain and TLS but only send on plain. This would need further
investigation.

Charles


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to