lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


hello.

for a while now i try to find a way to use
luasocket and luasec to send emails via smtps ( TLS ).

i currently use the code from

https://github.com/slushpupie/lua-smtps

as a starting point, but i consistently run in the "wrong version
number" problem when i connect to a smtp server.

now i remember that this used to be an openssl problem on debian
a while ago ( there a numerous bug reports for that ) but i thought
this was solved.

i tried this in various combinations

on debian squeeze ( luasec 0.4, openssl 0.9.8o-4squeeze14 )
on debian wheezy ( luasec 0.4.1, openssl 1.0.1e )

but nevertheless, all i get back from the server is the " wrong version
number" error.

now i am no smtp protocol wizard, so either i do something wrong
here or do i need to compile luasec against a certain version of
openssl ?

is anybody aware of a working smtps ( TLSv1) example using
luasocket and luasec?

any help is welcome :)

startx