On Thursday, August 06, 2009 at 11:09 CEST, J Channel <jchann...@gmail.com> wrote:
> Trying to close access from one domain and it subdomains via access > file. > > ~# echo ".karpatik.cn REJECT" >> /etc/mail/access > ~# echo "karpatik.cn REJECT" >> /etc/mail/access > ~# postmap /etc/mail/access > > ~# postconf -n | grep parent > parent_domain_matches_subdomains = debug_peer_list, > fast_flush_domains, mynetworks, permit_mx_backup_networks, > qmqpd_authorized_clients, relay_domains, smtpd_access_maps > > ~ # postmap -c /etc/postfix -q "karpatik.cn" hash:/etc/mail/access > REJECT > ~# postmap -c /etc/postfix -q "mail.karpatik.cn" hash:/etc/mail/access > ~# > Why subdomain does not matched? postmap(1) only does "raw" lookups. It won't do subdomain matches. It doesn't even know that it's a hostname you're looking up -- the meaning of the special lookup keys is context-dependent. -- Magnus Bäck mag...@dsek.lth.se