This patch implements RFC3207 (was RFC2487) in qmail. This means you can get SSL or TLS encrypted and authenticated SMTP between the MTAs and from MUA to MTA.