[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luasec, luasocket smtps problems
- From: Thijs Schreijer <thijs@...>
- Date: Sun, 24 Aug 2014 12:55:44 -0700 (PDT)
startx wrote
> On Thu, 27 Jun 2013 15:21:05 +0100
> Joshua Phillips <
> jp.sittingduck@
> > wrote:
>
>> HTH,
>> >
>> > i have checked for openssl library problems with
>> >
>> > openssl s_client -starttls smtp -connect
> <servername>
> :
> <port>
>> >
>> > against various mail servers, and it seems that this
>> > works fine ( receiving 250 OK )
>>
>> That s_client command uses STARTTLS (the exchange starts with
>> unencrypted SMTP and then uses the STARTTLS command to start a TLS
>> session). The code on Github uses SMTPS (connects using TLS straight
>> away), which is considered deprecated (IIRC) and usually uses a
>> different port. You'll have to modify the code to check for STARTTLS
>> availability and send the STARTTLS command and receive the
>> acknowledgement before doing the TLS handshake.
>>
>
> hello.
>
> yes you are of course correct, i only need to delay wrapping the socket
> until after i have issued STARTTLS. doing so in fact let me continue
> with AUTH.
>
> i will put some code together over the weekend and make it available
> somewhere for future reference.
>
> cheers for the hint,
>
> startx
Running into this as well, any chance to share your solution?
Thijs
--
View this message in context: http://lua.2524044.n2.nabble.com/luasec-luasocket-smtps-problems-tp7650178p7662561.html
Sent from the Lua-l mailing list archive at Nabble.com.