I have two servers relavant here:
mail.domain.com (22.214.171.124) - which is the nameserver and the mail server for domain.com. www.domain.com (126.96.36.199) - which is the www subdomain for domain.com domain.com (cname www.domain.com) - an alias for www.
The zone file for domain.com lists mail.domain.com as the MX server for domain.com.
188.8.131.52 is actually being served web pages as a virtual host. It's real hostname is www.anotherdomain.com.
Mail for domain.com works pretty well, in general. However, if I attempt to send mail from www.domain.com (or its alias domain.com), I get "mail for domain.com loops back to myself" in the postfix logs.
On 184.108.40.206 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost.
How do I tell postfix on 220.127.116.11 that mail for domain.com needs to be delivered to mail.domain.com?