----- Original Message -----
From: "Charles Benett" <[EMAIL PROTECTED]>
Sent: Thursday, September 14, 2000 6:17 AM
Subject: Re: TLS support
> 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 '.' .
I vaguely remember considering this before, and unfortunately you can't use
a Reader for incoming SMTP traffic as it will alter the data of 8-bit
message data (and possibly 7-bit). I'll give TLS with SMTP a whirl and see
if I can figure out the problem.
> 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 would really like to add this support if possible, but if it does involve
significant changes, I agree we can postpone this.
> 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.
Just 2 incoming more than likely. Outgoing messages (through
SmartTransport) don't really use any given port. I hadn't even thought
about adding TLS support to SmartTransport, although that does seem like a
good idea.
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]