I have a droplet running 2 WordPress sites, accessed via two different domain names, e.g. blog.site1.com and blog.site2.com. Both need smtp service to send occasional password reset emails, etc. What is the best approach to providing local-only smtp service for these sites. The “from” addresses need to be different for each. I installed mailutils, but I’m unclear what the ‘myhostname’ variable should be. Tried using a project gmail address in WordPress, but it fails to authenticate.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.