Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I need to a way for an incoming email such as to resolve to since we are using amazon ec2.

Our DNS is on godaddy - can anyone help me with the syntax. I tried setting up a CNAME record but it doesn't work since I have an A record that resolves the domain to an IP.

Thanks for your help.

share|improve this question
Say what? What exactly are you doing? Are you trying to host your domain's email service on EC2? – Michael Hampton Oct 22 '12 at 22:13

This isn't how email delivery works.

If you truly need email sent to to land on that EC2 instance, then you need to set an MX record for that points to, then configure your MTA on that EC2 instance to handle emails to If you just need email to eventually get to that box, I'd host email elsewhere and then poll that remote mailbox from the EC2 instance using fetchmail, getmail, or the like.

Caveat: for receiving mail, this should work fine. If you're going to be sending mail from this host, you're going to run into a bunch of problems, as many major mail providers have blacklisted all of the EC2 netblocks. For outbound, I'd recommend using Amazon's SES service or another third-party mail relay.

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.