Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new to website management including DNS and MX records.

Here's my scenario. My company has an official domain: reallylongandcomplicatedname.com.

They bought a shorter name: easyname.com.

They want emails such as john@easyname.com to be delivered to john@reallylongandcomplicatedname.com.

Is this possible? What do I need to do? I've tried googling but I'm not really sure what I'm looking for, and am not sure what to do from here.

share|improve this question

migrated from superuser.com Jan 3 '12 at 5:17

This question came from our site for computer enthusiasts and power users.

1  
The first step is to point the short domain's MX records to your mail server. The second step depends very much on what mail server you are using, and in which configuration. (For example, postfix or exim or Exchange? "Local" or "virtual" accounts?) –  grawity Sep 1 '11 at 22:52
add comment

1 Answer

up vote 4 down vote accepted
  1. Set your DNS MX record for the new short domain to be the same as for your full long name.
  2. Configure your mail server to host both
  3. Create rewrite rule to rewrite @shortname as @longname
share|improve this answer
    
It doesn't even need to be a rewrite rule (and indeed is probably better not being, as you'll find out the first time that people complain that customers are getting surprise replies from the wrong domain). You just need to tell your MTS that both domains share the same single set of mailboxes/accounts. –  JdeBP Sep 1 '11 at 23:31
2  
Your steps are in the wrong order. First configure the mail server, THEN change the MX records. The stated order has emails being delivered to a mail server that isn't configured to accept them, which could mean dropped emails under some circumstances. –  Slartibartfast Sep 2 '11 at 6:00
add comment

Your Answer

 
discard

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