Question

Sendmail Default Domain

Posted September 3, 2013 2k views
I have a domain where incoming mail is handled through outlook.com and it is working fine. I also have a web form to email script that sends the occasional message. Those messages are sent from @localhost.com. How do I configure Sendmail to identify itself as the domain which is actually hosted in the droplet?

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.

1 answer
Try this:

mail -aFrom:someone@example.com -s 'Test' youremail@address.com
Submit an Answer