Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently we've had quite a few requests where clients are changing their domain names and want to keep the same email addresses and have the new domain be the main site. The old domain will then forward to the new one.

What I'm wondering is, what is the best way to approach this? We changed the name of the site in the various locations of the hosting account to the new name ( and it changed all appropriate names in the zone file to the new name and seems to work fine. The old email accounts are now under How do we set up the zone files(s) so that the email goes to the email? Telling the domain to forward in domain management doesn't forward the email, just the website.

share|improve this question

What mail system? In an example with Exchange, you can have as many domains as you like pointed to your Exchange server. You setup the recipient policy for each domain, and simply add the desired email address to each users AD profile.

share|improve this answer

That depends a lot on what you're using for a mail system. So long as they still own the old domain, that is. Most mailers can be configured to redirect mail. is quietly internally redirected to The exact methods of this are mailer dependent. It can't be done in DNS that I know of.

share|improve this answer

Apparently the correct way to do this is simply use a DOMAIN ALIAS

share|improve this answer

I do this in sendmail by configuring multiple domains to be handled by the relay.



and add the domains you wish to handle. For example:

# local-host-names - include all aliases for your machine here.

After making your changes, and presuming DNS is setup properly, restart sendmail.

Note: this means that user@domain is equivalent to user@otherdomain, because /etc/passwd and /etc/aliases is hit for both for user verification.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.