aio-libs / aiosmtpd

A reimplementation of the Python stdlib smtpd.py based on asyncio.
https://aiosmtpd.aio-libs.org
Apache License 2.0
313 stars 95 forks source link

authenticated_relayer example closes port immediately #333

Open obadz opened 1 year ago

obadz commented 1 year ago

I think it's because of the cont.stop() in the finally block?

https://github.com/aio-libs/aiosmtpd/blob/330e9efd6e045c2a84bb243bb446e44c2eb4e266/examples/authenticated_relayer/server.py#L86-L89

(Using aiosmtpd 1.4.2)

remram44 commented 1 year ago

Same remark.

Also it does NOT REQUIRE AUTHENTICATION, which is a huge problem. People will base their code off of this and run in the most insecure way.

edit: opened #374