4 ms·
I thought having smtpd was useful but I guess people must be using better maintained alternatives. Anyone care to comment on what they are using for receiving
by vkaku 4y ago
I thought having smtpd was useful but I guess people must be using better maintained alternatives.
Anyone care to comment on what they are using for receiving emails in Python?
Update: smtplib is still on, so that makes sense.
- duskwuff 4y ago> Anyone care to comment on what they are using for receiving emails in Python? In most cases, you use an existing MTA (like Postfix or whatnot) and set it up to deliver mail to a Python script. Or, even less directly, you use an IMAP library to access mail after it's delivered to a mailbox, or use a mail provider which can call a webhook over HTTP when an email is received. For the rare situations where you do really want to write your own mail server, aiosmtpd exists, and the migration process doesn't look terribly complicated: https://aiosmtpd.readthedocs.io/en/latest/migrating.html https://aiosmtpd.readthedocs.io/en/latest/migrating.html
- BurnGpuBurn 4y agoAiosmtpd is great. A simple script to send all received mails to something like slack is demonstrated here: https://github.com/ont/slacker https://github.com/ont/slacker