Last Updated: February 25, 2016
·
2.024K
· quard

SMTP server on python for development with storing emails.

As you know, there is a small SMTP server in python. It listens to a port and shows message or proxies mail to another server.

And I have extended it to store emails in folder. This is very helpful, when emails are in html format or huge.

You can run it:

python dev_smtpd.py -s /path/to/save/mails/

By default using DebuggingServer and 1025 port on localhost.

Source available on GitHub Gist