Need aiosmtpd example of loop.create_server(SMTP...)

149 views
Skip to first unread message

David McNab

unread,
Aug 23, 2020, 5:47:35 AM8/23/20
to aio-libs
Hi all,

Can anyone please point me to some examples which create and run an SMTP server via loop.create_server() ? Also, straightforward learnable examples which create multiple servers of different types within the one event loop?

I need to have the one event loop running several servers and clients in the one process, where these servers and clients which are passing data between each other, so the Controller approach in aiosmtpd is not suitable.

I'm a long time Python programmer, but am very new to asyncio and its complex idioms. It's feeling like with asyncio I'm having to learn Python all over again.

Here's my attempt so far (attached). I can connect, but the server kills the connection straight away

All help appreciated.

Cheers
David

gaAgent.py
Reply all
Reply to author
Forward
0 new messages