Sendmail Default Domain

September 3, 2013 1.8k 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?
1 Answer
Try this:

mail -aFrom:someone@example.com -s 'Test' youremail@address.com
Have another answer? Share your knowledge.