Just wondering if there is a Python MTA. I took a look at smtpd but they all look like forwarders without any functionality.
Yes, Twisted includes a framework for building SMTP servers. There's a simple Twisted-based email server available here (also see here for some information about its development).
If you want something closer to a mail application server, there's Lamson.
If you're looking for a full MTA solution you should check out http://slimta.org/ or as previously mentioned here http://lamsonproject.org I myself has experimented a bit with slimta and it seems to work well.
It's pretty new, so nothing like the maturity of Twisted's SMTP, but there's also Lamson.
Blackhole is an MTA (message transfer agent) that (figuratively) pipes all mail to /dev/null, built on top of asyncio and utilises async def and await statements available in Python 3.5.
While Blackhole is an MTA, none of the actions performed via SMTP or SMTPS are actually processed, and no email is delivered. You can tell Blackhole how to handle mail that it receives. It can accept all of it, bounce it all, or randomly do either of those two actions.
Think of Blackhole sort of like a honeypot in terms of how it handles mail, but it’s specifically designed with testing in mind.
Documentation You can find the latest documentation here.
Changelog You can find a list of changes on the blackhole website. https://kura.github.io/blackhole/changelog.html
© 2022 - 2024 — McMap. All rights reserved.