From: Bob Eastbrook on
I use wildcard MX records for mail, and a wildcard CNAME for web
traffic. For example:

*.example.com = MX record for mail.example.com
*.example.com = CNAME myapp.appspot.com

Email to bob(a)foo.example.com gets delivered to mail.example.com, and
web traffic to http://foo.example.com goes to myapp.appspot.com. I
use instructions from Wietse from a post I made on Dec 31, 2009:
http://www.pubbs.net/200912/postfix/75444-virtual-domains-for-wildcard-mx-records.html.

This works for all mailers I've found except for Yahoo Mail. Mail
sent from Yahoo is rejected with:

<bob(a)foo.example.com>:
[ip.number.of.mailserver] does not like recipient.
Remote host said: 554 5.7.1 <bob(a)myapp.appspot.com>: Relay access denied
Giving up on [ip.number.of.mailserver].

At first glance, it appears that Yahoo Mail ignores the wildcard MX
record and tries delivering to the CNAME. This is puzzling because my
mail server also handles *.example.org in the same fashion as
*.example.com, and example.org addresses work fine from Yahoo. Note
that my mailserver is mail.example.com, not mail.example.org.

Here's what I have for mydestination:

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

I run postfix 2.3.3 on CentOS 5.4.

Any ideas?

Bob

From: Bob Eastbrook on
On Tue, Apr 13, 2010 at 1:01 AM, Simon Waters <simonw(a)zynet.net> wrote:
>
> Your post appears mangled beyond hope of direct assistance.


Are you saying that the message was improperly formatted?


>> Remote host said: 554 5.7.1 <bob(a)myapp.appspot.com>: Relay access denied
>
> This implies that your server rejected it. So where is the log from your
> server?


NOQUEUE: reject: RCPT from
web81307.mail.mud.yahoo.com[68.142.199.123]: 554 5.7.1
<bob(a)myapp.appspot.com>: Relay access denied;
from=<a-yahoo-user(a)yahoo.com> to=<bob(a)myapp.appspot.com> proto=SMTP
helo=<web81307.mail.mud.yahoo.com>


> The DNS config you give appears to be a case "CNAME and other" which is a
> violation of RFC1034. So fix your DNS and see if things work correctly.

Thanks for the pointer. I'll have to read up on this. I remain
puzzled as to why the exact same DNS settings for example.org work
just fine on mail.example.com. I suspect that if I had
mail.example.org, then the server wouldn't work with Yahoo Mail
addressed to bob(a)foo.example.org but would work with
bob(a)foo.example.com.

Bob

From: Bob Eastbrook on
Summary: Thanks for all of the responses. I originally thought this
was a Postfix issue, but now I see that I was doing something invalid
in DNS. I'm surprised that my otherwise excellent nameserver provider
allowed me to do this.