I have an amazon linux 2 server running in the aws cloud and I have yum-cron running on it. I have an email domain
mydomain.com which is running on a separate server in a completely different cloud environment (bluehost). I have the following settings in
email@example.com firstname.lastname@example.org email_host=localhost
The above configuration works beautifully and I am asking how exactly does it work? As far as I know sending an email is a somewhat complicated process. You must connect to an SMTP server, provide a hostname, port and login credentials, and when the email is sent its given to that SMTP server which handles the actual sending of the email. Localhost is (as far as I know) NOT an smtp server, so how is yum-cron managing to send emails? I was expecting this configuration to fail.