Report this

What is the reason for this report?

Sendmail Default Domain

Posted on September 3, 2013

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Try this: <br> <br><pre>mail -aFrom:someone@example.com -s ‘Test’ youremail@address.com</pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.