Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Must my mail server have a specific name?

Question:

I'm setting up my own mail server for my domain. For example I own
"example.com", and I want my server to process all the mail for
"example.com".

I keep seeing domain names like "smtp.example.com", "pop3.example.com" and
"mail.example.com" - do I have to create those kind of subdomains for this to
work? And if so, which ones do I need?

Well, there's nothing special about "smtp." or "mail." - they're just
names.

But you might want to consider using something like them. They can make
certain future changes a little easier.

Become a Patron of Ask Leo! and go ad-free!

All the email clients really need to know is how to get to your mail server.
That means as long as they're given a name that somehow resolves to the IP
address of the correct server, they'll work. You can even skip that and use the
raw IP address when configuring a mail client, and it'll still work. (In fact I
know of some people who use the IP address on purpose, simply to avoid the
extra look-up time when a domain name is converted to an IP address.)

"...as long as they're given a name that somehow
resolves to the IP address of the correct server, they'll work"

So any domain name you choose that maps to the IP address of your
mail server is a fine choice.

However.

Let's say some day in the future, you want to move your mail processing to a
different server. Perhaps you want to offload the server handling "example.com"
web traffic, because the email load is getting too high. It's a common
scenario, actually, as mail servers are working extra hard these days filtering
spam.

If you have a separate subdomain - say "mail.example.com" - that you use for
all of your mail configuration, then after you set up your new mail server, all
you need to do is change the IP address that "mail.example.com" points to. As
DNS propagates, all of your mail processing will automatically move to the new
server. No email clients need to be reconfigured.

Now, there's still an issue with DNS propagation that could potentially
cause some mail to be delivered on the old server after the recipients have
switched to the new - but a separate subdomain solves that problem as well.

The "MX" DNS record tells mailers where to send mail destined for your
domain. So perhaps we'd set up a domain "mx.example.com", and use that ONLY for
the MX settings for your domain (or domains). We'd still also set up
"mail.example.com" for your recipient's client programs to send and receive
through. Both would initially point to the same IP address of the same mail
server.

Moving mail servers would now be a two step process once the new server was
configured. Change "mx.example.com" to point to the new server. Now, wait two
days for DNS propagation (or, if you like, monitor the old server and wait
until it stops getting mail), and change "mail.example.com". As that
propagates, your mail clients will start downloading mail from the new server,
including any that may have been queued up from the day you changed
"mx.example.com".

But back to the original question: in all these cases I've used subdomains
like "mail" and "mx", but in reality they could be anything.
"fred.example.com", "example.example.com", "kwijibo.example.com" are all valid
names for mail servers. Using more meaningful names, however helps keep things
somewhat more understandable.

And for that matter, if you don't foresee the need for flexibility in the
future, then "example.com", without a subdomain, is just fine too.

(Just remember to replace "example.com" with your domain, ok?)

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

3 comments on “Must my mail server have a specific name?”

  1. I disagree. Naming is actually quite important, especially as it pertains to outbound email. If your mail server has a name that matches common PTR records for DSL and Cable for example, many mail servers and anti-spam gateways will either block you or label you as spam. Google S25R if you dont believe me. I block anything that fits the regex of a cable/dsl line.

    For inbound, it doesnt really matter, but the accepted standards are smtp and mx to avoid confusion and make whitelisting your butt easier. (Inbound mail servers send some mail outbound due to MDN and other notifications).

    This will become more and more important by 2009, but I will save that suprise for later.

    Reply
  2. No matter what I do, I cannot get Windows Mail to work. Why do they make it soooo difficult. I have Windows Vista Prem (I despise it) and want my XP back. But that’s another story.

    I have Hotmail – Gmail – and my cable provider is Time Warner. I use MSN and also have Firfox – I am totally confused and really want Windows Mail as it is the only e mail that has the option of getting a reply that an e mail has been read.

    Reply
  3. What’s the server name for pop3 email setup? is it just yahoo.com?
    i’m trying to set up my email on my new cell phone and it’s asking for the server name. i have yahoo mail plus (not the free yahoo), and i’m wondering if there’s a more specific name for the server i need to use, other than yahoo.com

    {spam link removed}

    Last I checked Yahoo did not support POP3. You need to check with Yahoo – presumably since you’re paying for it you have access to some real support.

    Leo
    22-Oct-2010

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.