The STARTTLS implementation in qmail-smtpd.c in qmail-smtpd in the netqmail-1.06-tls patch for netqmail 1.06 does not properly restrict I/O buffering, which allows man-in-the-middle attackers to insert commands into encrypted SMTP sessions by sending a cleartext command that is processed after TLS is in place, related to a "plaintext command injection" attack, a similar issue to CVE-2011-0411.
https://exchange.xforce.ibmcloud.com/vulnerabilities/65932
http://www.vupen.com/english/advisories/2011/0612
http://www.securityfocus.com/bid/46767
http://www.kb.cert.org/vuls/id/MAPG-8D9M5Q
http://www.kb.cert.org/vuls/id/555316