On Tue, Aug 31, 2010 at 02:22:02PM +0200, Jasper Jongmans wrote:
> Detailed information:
http://pastie.org/private/w93tv2bb7yrb8suyjqkqmq> Tested on: Postfix 2.6.5 on FreeBSD 7.2p7
>
> I had configured mydestination to contain both domain.tld and
> .domain.tld notations, expecting that would accept mail for domains and
> their subdomains as local mail.
Typically, sub-domains are "relay" domains (or not accepted at all),
rather than "local". So Postfix does not perform sub-domain matching
on mydestination. You can use a regexp table if you need sub-domains
to be local:
main.cf:
mydestination = pcre:${config_directory}/mydest.pcre
mydest.pcre:
/(^|\.)example\.com$/ LOCAL
Do you really want to receive mail for arbitrary sub-domains:
rue-de-remarque.example.com
at the very least, avoid wild-card MX records that make such-domains
appear to exist.
In the long run, you are better off knowing which domains are valid,
and listing them all explicitly in a suitable table. Wildcards are
are a short term win and often cause long-term pain.
--
Viktor.