Mobile app version of vmapp.org
Login or Join
Steve110

: AWS: pointing A record to load balancer on A record causes incoming email to stop functioning I have a webserver running on an EC2. On that EC2 I'm receiving email. I've created a load balancer

@Steve110

Posted in: #AmazonAws #AmazonEc2 #DnsServers #Route53

I have a webserver running on an EC2.
On that EC2 I'm receiving email.

I've created a load balancer (ELB) directing traffic to EC2

In route 53:
- UPDATED A record for domain.com to point to ELB
- UPDATED CNAME record for @ .domain.com to point to ELB

I kept the following records:
MX record: *.domain.com to point to 10 mail.domain.com
CNAME record: mail.domain.com points to EC2

In this setup the load balancer is working, directing traffic to EC2.

However, if I send an email to user@domain.com it doesn't reach EC2.

I'm pretty sure, I can set it up with a subdomain pointing to the loadbalancer, but I would prefer to have my main domain main point to the loadbalancer.

Hope somebody can help me out.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve110

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

MX record: *.domain.com matches everything but the naked (no subdomain) domain. So no MX for domain.com. Aparently a friendly MTA will try the A record, which used to work for me, since it pointed to the EC2 handling my email.

Long story short. Removed the *. from the MX record and it worked.

I hope this will save someone a couple of hours of trying stuff...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme