Could you please suggest a simple SMTP server with the very basic APIs (by very basic I mean, to read, write, delete email), that could be run on a linux box? I just need to
A more modern approach is to use the aiosmtpd library (documentation available here).
You can find a good example here: https://aiosmtpd.readthedocs.io/en/latest/aiosmtpd/docs/controller.html.