TLS woes

Miguel Mendez <[email protected]> Mon, 21 Mar 2005 21:20:55 +0100
Newsgroups gmane.comp.lib.libesmtp
Message-ID <[email protected]>
--Signature=_Mon__21_Mar_2005_21_20_55_+0100_JQe1W3U1tHYD1ad7
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I'm adding TLS support to a small program. The code is very similar to
the one in the example that comes with libesmtp, but when I try to use
TLS it fails right after the TLS session has been established. The
postfix logs show this:

Mar 21 21:13:46 scienide postfix/smtpd[9046]: TLS connection established fr=
om scienide.energyhq.es.eu.org[2001:470:1f01:198:210:4bff:fe3d:e256]: TLSv1=
 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Mar 21 21:13:46 scienide postfix/smtpd[9046]: watchdog_pat: 0x80f9548
Mar 21 21:13:46 scienide postfix/smtpd[9046]: < scienide.energyhq.es.eu.org=
[2001:470:1f01:198:210:4bff:fe3d:e256]: QUIT
Mar 21 21:13:46 scienide postfix/smtpd[9046]: > scienide.energyhq.es.eu.org=
[2001:470:1f01:198:210:4bff:fe3d:e256]: 221 Bye

When I run the example I see this instead:

Mar 21 21:12:32 scienide postfix/smtpd[9046]: TLS connection established fr=
om scienide.energyhq.es.eu.
org[2001:470:1f01:198:210:4bff:fe3d:e256]: TLSv1 with cipher DHE-RSA-AES256=
-SHA (256/256 bits)
Mar 21 21:12:32 scienide postfix/smtpd[9046]: watchdog_pat: 0x80f9548
Mar 21 21:12:32 scienide postfix/smtpd[9046]: < scienide.energyhq.es.eu.org=
[2001:470:1f01:198:210:4bff
:fe3d:e256]: EHLO scienide.energyhq.es.eu.org

What could be causing libesmtp to send a QUIT instead of the expected EHLO?

Cheers,
--=20
Miguel Mendez <[email protected]>
http://www.energyhq.es.eu.org
PGP Key: 0xDC8514F1


--Signature=_Mon__21_Mar_2005_21_20_55_+0100_JQe1W3U1tHYD1ad7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCPyyqnLctrNyFFPERAgkfAJ9igSzG83tiRaOiV4BdIDH3rKjCUACePNP4
CROyn+8/LPSUUC0Ob5LsvQA=
=xh2t
-----END PGP SIGNATURE-----

--Signature=_Mon__21_Mar_2005_21_20_55_+0100_JQe1W3U1tHYD1ad7--