Similarly to a rest api, I want a server to listen for an email to an address I have created, and in response to mail being received, run code that I have created. Is this possible already? I understand how to call an api or create a micro service, but it seems like triggering code when someone sends an email is esoteric.
In my research, it seems like I need an smtp server and pubsub data structure. However, in the implementations I have found on GitHub, it seems they are more tailored to sending email rather than triggering code when a user receives an email. I would prefer not to use sengrid or ses aws.
If smtp server is what I need, do you think it is something I can complete in a semester.