Ask Leo! by Leo A. Notenboom

Must my mail server have a specific name?

Search First! Then browse: Categories | Full Archive | By Date | Newsletter

Home » Internet

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.

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?)

Related:

Article C2681 - June 7, 2006

Helpful? Get new articles weekly by email in my FREE newsletter!

Your Name:
Your Email:


Why Subscribe?

Recent Comments
2 Comments

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.

Posted by: Aaron at January 17, 2008 1:02 AM

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.

Posted by: Rosamund at November 22, 2008 10:45 AM

Post a comment on "Must my mail server have a specific name?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

  • Read the article at the top of this page. If your comment shows you didn't, it'll be deleted and ignored.

  • Comment only on this article. Use the Google search box at the top of the page if you have a question about something else.

  • Don't include personal information in the comment. No email addresses. No phone numbers. No physical addresses.

  • Don't spam. Excessive links to unrelated sites within a comment or across multiple comments will cause all such comments to be removed.

  • Don't ask me to recover lost passwords or hacked accounts. I can't, and those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...


Question? Ask Leo!