I want to host my website on EC2 and my mail servers on Google Apps. This would seem to be simple but I can't get the receiving of Mail to work due to a DNS issue. I have changed the MX records as required for my host but they aren't being picked up because my CNAME which is required for EC2 makes the DNS search for the MX on Amazon which is not what I want.
There are a couple of folks having similar mail issues which they solve by using A records not CNAMEs e.g. https://stackoverflow.com/questions/6493076/setting-up-cname-at-directnic-com-caused-gmail-in-google-apps-for-businesses-to-s "For compatibility reasons, you can't put a CNAME in the root domain; doing so will break email. Use an A record instead. "
But you can't use an A record with EC2 - you have to use a CNAME as the IP changes.
Are these services just incompatible and I have to move the sites web hosting to somewhere I can add an A record to an IP?
This is a bit of a pain so I thought I'd ask here if anyone has an alternative before I wade in.