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.

> Deeper protocol checks
> ======================
> 
> With deeper protocol checks, postscreen would actually engage in a
> mail transaction, without actually taking responsibility for mail.
> Examples of deeper protocol checks are: improper command pipelining,
> over-long SMTP commands, over-long header or body lines, MIME errors,
> and so on (does it pay off to make this this plug-in extensible?).

If content-dependent policy is to be supported via plugins, it is useful
to allow the n'th (n>=1) instance of a message to reach the real
SMTP server, without whitelisting the source. If the message evaluates
very clean, deliver right away, if suspect, defer for retransmission.

This is more difficult to integrate into the design, because it requires
more than descriptor passing, the postscreen(8) service would have to
replay messages into the SMTP server.

-- 
        Viktor.

Reply via email to