Skip to main content
Advice
0 votes
2 replies
36 views

I'm using the latest aiosmtpd module under Python 3.12 in LinuxMint 22.3. When a remote SMTP connection is made to a host running aiosmtpd, how can the remote IP address of this connection be obtained ...
4 votes
1 answer
6k views

I'm trying to run my own stmp server on my computer with python and the aiosmtpd library. I run the example, everything looks fine but I never receive the email on the other side. I don't know if ...
1 vote
3 answers
3k views

I began with smtpd in order to process mailqueue, parse inbound emails and send them back to recipients (using smtpdlib.sendmail). I switched to aiosmtpd since i needed multithread processing (while ...
9 votes
3 answers
5k views

I have the following server taken almost directly from the aiosmtpd docs: import asyncio import ssl from aiosmtpd.controller import Controller class ExampleHandler: async def handle_RCPT(self, ...
0 votes
1 answer
179 views

I'm trying to set up an SMTPS server on port 465 using Python and the aiosmtpd library. While I can connect to the server locally using openssl s_client, external mail servers (like Gmail) are unable ...
0 votes
1 answer
309 views

I have an SMTP server set up using aiosmtpd, while I can use telnet to send SMTP emails on my own local machine; if I try to telnet to it from anywhere else, I get Could not open connection to the ...
1 vote
0 answers
91 views

I'm trying to set up an Aiosmtpd server to accept TLS1.1 too, and I can't make it work. Regardless of how I configure TLSContext, the server only accepts TLS1.2. Here's a reproducible code to show the ...
57 votes
3 answers
74k views

I'm building an SMTP server with aiosmtpd and used the examples as a base to build from. Below is the code snippet for the entry point to the program. if __name__ == '__main__': loop = asyncio....
0 votes
2 answers
850 views

I am trying to get authentication working using aiosmtpd... I have read the documentation but still can't get it working. I have followed the instructions on this post: python aiosmtpd server with ...
3 votes
1 answer
3k views

Im trying to create an aiosmtpd server to process emails received. It works great without authentication, yet i simply cannot figure out how to setup the authentication. I have gone through the ...
2 votes
0 answers
308 views

Fake SMTP server not supporting auth I have a function that create a SMTP client, login onto a server, and send mails. I want to create a unit-test with a fake SMTP server that will write the email ...
0 votes
2 answers
2k views

I am trying to export an Email message obtained with aiosmtpd to an *.eml file that I can later open with any *.eml viewer or email client like Thunderbird or Mail. async def handle_DATA(self, ...
1 vote
1 answer
976 views

I am trying to setup a SMTP server on my PC which should require authentication(just like gmail does). Attempting send email from client gives - "SMTP AUTH extension not supported by server"....
0 votes
1 answer
2k views

I have setup a local SMTP server with aiosmtpd where I received emails after setting the proper DNS records: mail.mydomain.com A 1 minute 1.2.3.4 mydomain.com MX 1 minute 10 mail....
2 votes
2 answers
6k views

Honestly, I think I have a fundamental gap in understanding how SMTP works. I can't seem to find a good explanation of what is happening behind the scenes and I think this is preventing me from being ...

15 30 50 per page