Smtpd server (via aiosmtpd) with a falcon frontend. Incoming messages are saved as serialized JSON objects in the messages/ folder.
messages/
pip3 install -r requirements.txt
To start the smtpd server:
./smtpd.py
To start the web API:
gunicorn -b '127.0.0.1:8000' server:application