Obviously I am being thick but can someone explain why this does not
work as I would expect. Basically email addresses are not matching
against domain names in a hashed database:
$ postconf|grep "^parent_domain_matches_subdomains.*smtpd_access_maps"
>/dev/null && echo "domain.tld should match as the domain part of an
email address"
domain.tld should match as the domain part of an email address
$ # Do a lookup against a full mail address
$ echo j...@mydomain.org REJECT >/tmp/test; postmap /tmp/test
$ postmap -q j...@mydomain.org /tmp/test >/dev/null && echo Success ||
echo Failure
Success
$ # Do a lookup against a domain address
$ echo mydomain.org REJECT >/tmp/test; postmap /tmp/test
$ postmap -q j...@mydomain.org /tmp/test >/dev/null && echo Success ||
echo Failure
Failure