Wietse Venema:
> Victor Duchovni:
> > On Mon, Aug 23, 2010 at 08:19:13PM -0400, Wietse Venema wrote:
> >
> > > Support for STARTTLS
> > > ====================
> > >
> > > Support for TLS will be added later in the postscreen life cycle.
> > > TLS will require helper processes that implement the TLS protocol.
> > > The performance is not critical (though TLS support may be resource
> > > intensive). Since many sites implement TLS on the submission port
> > > only, support for TLS is not urgent. Roughly, postscreen passes the
> > > original SMTP socket to a TLS helper processes, and the helper
> > > communicates SMTP plaintext with postscreen. The idea is to have
> > > multiple TLS helper processes, each handling multiple TLS sessions;
> > > this minimizes the memory overhead while keeping performance good.
> >
> > There would need to be a mechanism to communicate peer certificate
> > information to the SMTP server, unless client certs will not be supported
> > in this context (perhaps by analogy with SASL). The server also needs
> > cipher and protocol details to generate the TLS annotations in the
> > "Received:" header.
As mentioned elsewhere, Postscreen is not a proxy.
- Normally, postscreen hands off an already-whitelisted client to
a Postfix SMTP server process before the first client command.
- With TLS or with non-trivial SMTP protocol inspection, postscreen
whitelists the client in one session and replies 4xx to attempts
to send mail, then, in the next SMTP session, it hands off the
already-whitelisted client to a Postfix SMTP server process before
the first client command. I suppose that having this multi-stage
process once a week is not overly disruptive.
If postscreen were to allow a client to pass tests and send mail
in the same (TLS or non-TLS) session,
- Postscreen would have to become a proxy,
- Postscreen would have to validate recipient addresses without
using up one SMTPD process per remote client,
- In the case of non-trivial protocol inspection, postscreen would
have to receive an email message without using up one SMTPD
process per remote client, and postscreen would have to replay
delivery to the Postfix SMTP server after the message is received.
In other words postscreen would duplicate core functionality of a
patented commercial product (mailchannels traffic control). it
would also cost much more time to build than I have available.
Wietse