How to use asyncore with SSL?
breamoreboy at gmail.com
breamoreboy at gmail.com
Mon Jan 22 16:03:41 EST 2018
On Thursday, January 18, 2018 at 11:25:58 PM UTC, Grant Edwards wrote:
> I've been trying to use the secure smtpd module from
> https://github.com/bcoe/secure-smtpd, but the SSL support seems to be
> fundamentally broken. That module simply wraps a socket and then
> expects to use it in the normal way via asyncore.
>
> Of course that fails the first time an ssl-wrapped-socket's send or
> recv method raises SSLWantReadError or SSLWantWriteError. Those
> exceptions aren't handled and it crashes.
>
> That makes the SSL support pretty much useless.
>
> I'm trying to fix that, but I can't find any information or
> documentation about using asyncore with SSL.
>
> Alternatively, a pointer to a simpler smtp server library that
> supports SSL would be great. The use of asyncore and multiprocessing
> process pools by this module is _way_ overkill for my needs and
> results in something that 1) doesn't work, and 2) can't be debugged.
>
> --
> Grant Edwards grant.b.edwards Yow! Pardon me, but do you
> at know what it means to be
> gmail.com TRULY ONE with your BOOTH!
I haven't tried it myself but I've just stumbled across this https://github.com/aio-libs/aiosmtpd.
--
Kindest regards.
Mark Lawrence.
More information about the Python-list
mailing list