Python 100 project #35: Catch All Mail Server

Most of the network device has some kind of notification system, and usually notification media is either Email or SNMP. Email is way too slow if anything really happens, while SNMP the function is limited and not flexible enough. So in the later phase, I want to get those email notification posted to Slack. I can use the email integration of the Slack itself, but I decided to make one by myself so that the service can be utilized for other services as well.

First I made a simple SMTP server to catch all the email. This project simply print out the email body it receives.

Output Example:


Here is the code: