Questions tagged [aiosmtpd]

aiosmtpd is an SMTP server based on asyncio. Part of the aio-libs umbrella project, aiosmtpd supersedes the old asyncore/asynchat based smtpd module in the Python standard library.

From the aiosmtpd documentation:

The Python standard library includes a basic SMTP server in the smtpd module, based on the old asynchronous libraries asyncore and asynchat. These modules are quite old and are definitely showing their age. asyncore and asynchat are difficult APIs to work with, understand, extend, and fix.

With the introduction of the asyncio module in Python 3.4, a much better way of doing asynchronous I/O is now available. It seems obvious that an asyncio-based version of the SMTP and related protocols are needed for Python 3. This project brings together several highly experienced Python developers collaborating on this reimplementation.

This package provides such a implementation of both the SMTP and LMTP protocols.

Visit the aiosmtpd GitHub repository for more information.

Use the [aiosmtpd] tag for questions and problems related to using aiosmtpd.

23 questions
0
votes
1 answer

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, causing a 503 error in my aiosmtpd-based SMTP…
MattieG4
  • 150
  • 2
  • 12
0
votes
0 answers

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 email clients but always seems to fail with this…
MattieG4
  • 150
  • 2
  • 12
0
votes
1 answer

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 issue with a device that can't connect to my SMTP…
MattieG4
  • 150
  • 2
  • 12
0
votes
1 answer

Python Aiosmtpd Server with Docker - Connection Refused

I am trying to develop a test email server that should run in a docker container. The docker container is run with --network=host -P; though for unit tests I would like to use --network=none. I am deliberately specifying that port 0 should be used…
0
votes
1 answer

Problem connecting to Python mail server from Java Camel application

I have a simple email server implemented using the Python language aiosmtpd package (https://github.com/aio-libs/aiosmtpd). I also have an Apache Camel application with a route that attempts to get mail from the server. I have been able to…
Joseph Gagnon
  • 1,731
  • 3
  • 30
  • 63
0
votes
1 answer

Byte/string mismatch in aiosmtpd.handlers.Proxy.handle_DATA

I'm new with asyncio / aiosmtpd. Am I using this wrong, or is this a bug? Running the code below, I get an error indicating that we're confusing bytes with strings. I run this with Python 3.6.1 on Linux with aiosmtpd 1.0a5. #!/usr/bin/env…
Magnus Lyckå
  • 336
  • 2
  • 8
0
votes
1 answer

Python 3 SMTP aiosmtpd proxy/relay

I am trying to make an open SMTP relay using the new aiosmtpd library that replaces smtpd. The program below instantiates a Proxy handler that is passed onto the mail controller, which is started afterwards in the background. A message is then…
dfernan
  • 377
  • 2
  • 9
  • 22
-1
votes
1 answer

aiosmtpd weirdness with custom controller and SMTP factory

To start, I'm working with aiosmtpd, and am trying to write a class that wraps around it to start up the SMTP server programmatically with StartTLS. Now, up until very recently, this code worked as expected with any handler you might pass into it,…
Thomas Ward
  • 2,714
  • 7
  • 36
  • 51
1
2