I'd like to offer the attached patch to keep qmail-smtpd from offering
STARTTLS if there is no SSL key for it.
*** qmail-smtpd.c.orig Tue Jul 24 13:08:00 2001
--- qmail-smtpd.c Tue Jul 24 13:21:04 2001
***************
*** 600,606 ****
#endif
out("\r\n250-PIPELINING\r\n");
#ifdef TLS
! out("250-STARTTLS\r\n");
#endif
out("250-SIZE "); out(smtpsize); out("\r\n");
out("250 8BITMIME\r\n");
--- 600,608 ----
#endif
out("\r\n250-PIPELINING\r\n");
#ifdef TLS
! if (control_readfile(&bmf,"control/cert.pem",0) == 1) {
! out("250-STARTTLS\r\n");
! }
#endif
out("250-SIZE "); out(smtpsize); out("\r\n");
out("250 8BITMIME\r\n");
Chris Garrigues http://www.DeepEddy.Com/~cwg/
virCIO http://www.virCIO.Com
4314 Avenue C
Austin, TX 78751-3709 +1 512 374 0500
My email address is an experiment in SPAM elimination. For an
explanation of what we're doing, see http://www.DeepEddy.Com/tms.html
Nobody ever got fired for buying Microsoft,
but they could get fired for relying on Microsoft.
PGP signature