28 questions
Advice
0
votes
2
replies
36
views
With the aiosmtpd python3 module, how to get the IP address of the remote connection?
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 ...
0
votes
1
answer
179
views
How to create a working SMTPS server on port 465 using Python?
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
Cannot connect to aiosmtpd server from non-localhost
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
AIOSMTPD: Unable to set TLSContext broader than 1.2
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 ...
0
votes
2
answers
850
views
Python aiosmtpd getting authentication working
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 ...
2
votes
0
answers
308
views
Fake SMTP server not supporting auth
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 ...
57
votes
3
answers
74k
views
asyncio.get_event_loop(): DeprecationWarning: There is no current event loop
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
2k
views
Save email as .eml file with python
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, ...
0
votes
1
answer
2k
views
Can receive but not send emails with aiosmtpd SMTP server
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
How to setup minimal smtp server on localhost to send messages to other smtp servers
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 ...
1
vote
1
answer
2k
views
Unable to send or recieve emails from python aiosmtpd SMTP server, stuck at 250 ok [duplicate]
I had "successfully" made an SMTP server. The code works fine connecting to SMTP clients. But it is neither able to recieve emails nor send it. I tried with various test servers and also the ...
0
votes
1
answer
938
views
SMTP STARTTLS format
Is the EHLO message required after the TLS connection has been established? I'm using an acorn ltl-6511M wildlife camera that doesn't seem to send an EHLO message after establishing the TLS connection,...
0
votes
0
answers
231
views
How do I write my own challenge_auth method for aiosmtpd?
I'm trying to connect a wildlife camera to my SMTP server but it keeps dropping the connection after being asked for it's username. I've verified that this server works with other wildlife cameras and ...
0
votes
1
answer
2k
views
python aiosmtpd server with basic logging
I've been made aware that aiosmtpd logs to the syslog. I'm using a Red Hat Linux distribution and can't find anything related to my SMTP server in the messages or maillog file. I'm trying to debug an ...
1
vote
1
answer
976
views
Python aiosmtpd gives SMTP AUTH extension not supported by server
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"....