Running an SMTP server on a linux box should be pretty straightforward, right?
PHP hosting sites would just offer it as a free add-on for most sites... it can't be that hard.
4$/user/month (as of 2022Q4)
https://docs.aws.amazon.com/workmail/latest/adminguide/howto-start.html
https://aws.amazon.com/marketplace/pp/prodview-7lthtvl7jhclu#pdp-usage
https://github.com/montgomery-auber/postfix-containerized
https://github.com/cloakmail/postfix-pg-docker
https://speedkills.io/email-server-aws/
ec2 instance install postfix + letsencrypt + dovecot + roundcube and other things to get a ubuntu system to handle MTA and SMTP with a basic webmail client with it.
missing documentation, but at one point was good:
https://github.com/Avix101/Mail-Server-Script
https://stackoverflow.com/questions/31770064/setup-postfix-smtp-on-amazon-ec2
There are other options, but postfix is the one that comes up first for ubuntu...
iRedMail
https://docs.iredmail.org/install.iredmail.on.debian.ubuntu.html
https://github.com/iredmail/dockerized
MailCow
https://github.com/mailcow/mailcow-dockerized
https://docs.aws.amazon.com/ses/latest/dg/receiving-email-mx-record.html