I have two servers relavant here:
mail.domain.com (220.127.116.11) - which is the nameserver and the mail server for domain.com. www.domain.com (18.104.22.168) - 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.
22.214.171.124 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 126.96.36.199 /etc/postfix/mail.cf has mydestination = www.anotherdomain.com, localhost.
How do I tell postfix on 188.8.131.52 that mail for domain.com needs to be delivered to mail.domain.com?