Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two servers relavant here: ( - which is the nameserver and the mail server for ( - which is the www subdomain for (cname - an alias for www.

The zone file for lists as the MX server for is actually being served web pages as a virtual host. It's real hostname is

Mail for works pretty well, in general. However, if I attempt to send mail from (or its alias, I get "mail for loops back to myself" in the postfix logs.

On /etc/postfix/ has mydestination =, localhost.

How do I tell postfix on that mail for needs to be delivered to

share|improve this question
up vote 1 down vote accepted

What I ended up doing, for anyone interested, is to undo the cname ''. The result being that resolves to still points to Next, I set-up a virtual host on that only uses mod-rewrite to redirect requests to It isn't ideal since those going to '' will need to do 2 DNS lookups + a redirect, but at least mail works properly again.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .