Report this

What is the reason for this report?

web server + separate mail server = same domain name possible?

Posted on April 12, 2015

My situation:

  1. one web server for my public website (mydomain.org)
  2. one mail server for my website (mail.mydomain.org)

My goal: Emails on mail server look like this: user@myname.org (not user@mail.myname.org)

Is this possible?



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.

Yes,

You have to add a MX record to the DNS for “mydomain.org”. The MX record points to “mail.mydomain.org”. When mail servers resolve “user@mydomain.org” they will query the MX record for “mydomain.org” and get told to fetch email from “mail.mydomain.org”. That DNS can point to any IP you want to use as your email server.

Yes.

I like that kind of QA. It’s so clear and Expressive and understandable :)

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.