On Wednesday, October 21, 2009 at 18:49 CEST,
MySQL Student <[email protected]> wrote:
> > This syntax requires that smtpd_access_maps IS NOT listed in
> > parent_domain_matches_subdomains. If you stick to the default
> > value, drop the initial dot in .example.com to match example.com
> > and all subdomains.
>
> Thank you everyone for all of your help. These are the instructions
> that got it to work for me. Although I'm not sure why.
>
> I don't have parent_domain_matches_subdomains anywhere in my postfix
> configuration, so I assumed the leading dot was necessary to match
> subdomains. Why is this not necessary?
>
> If you could direct me to where I should RTFM, that would be appreciated.
Quoting access(5):
HOST NAME/ADDRESS PATTERNS
With lookups from indexed files such as DB or DBM, or from
networked tables such as NIS, LDAP or SQL, the following
lookup patterns are examined in the order as listed:
domain.tld
Matches domain.tld.
The pattern domain.tld also matches subdomains, but only
when the string smtpd_access_maps is listed in the
Postfix parent_domain_matches_subdomains configuration setting.
Otherwise, specify .domain.tld (note the initial dot)
in order to match subdomains.
--
Magnus Bäck
[email protected]