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 need to a way for an incoming email such as example@domain.com to resolve to example@ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com 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
1  
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

1 Answer 1

This isn't how email delivery works.

If you truly need email sent to user@domain.com to land on that EC2 instance, then you need to set an MX record for domain.com that points to ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com, then configure your MTA on that EC2 instance to handle emails to domain.com. 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

 
discard

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.