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 forexample.com
to point to ELB - UPDATED
CNAME
record for@.example.com
to point to ELB
I kept the following records:
MX
record:*.example.com
to point to 10 mail.domain.comCNAME
record:mail.example.com
points to EC2
In this setup the load balancer is working, directing traffic to EC2.
However, if I send an email to user@example.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.