This has been going on for two days now and it's really bugging me.
I've owned a domain name for a few years now. Let's call it
example.com. I've had Google Apps free edition set up there for a few years and all is good.
example.com has an A record pointing at a VPS that I own and MX records pointing at Google. I also have all email from
example.com forwarded to my personal gmail account.
Just recently I registered a domain name for my friend's business that he is starting and set him up with Google Apps free edition. Let's called it
example.net. This domain has MX records pointing at Google and a CNAME pointing at
example.com -- I am using virtual hosts on my VPS to determine which page to serve -- basic stuff.
Here's the problem. All email sent to
example.net ends up at
example.com. Would the CNAME cause this? And why would it? I didn't think that CNAME records affect email. There are no filters set up for any email at
In the email headers I see
To: firstname.lastname@example.org. Moving up the header I see this out of nowhere:
X-Forwarded-To: email@example.com X-Forwarded-For: firstname.lastname@example.org email@example.com
The only explanation I can think of is the CNAME record pointing from
example.com. Can anybody verify this for me or possibly name another reason for this to happen?