hash table not matching subdomains
\ Sahil Tandon (17 Nov 2007)
. \ (Wietse Venema) (17 Nov 2007)

18 msgNon-delivery problem
3 msgtracing mail
5 msgdifferent SMTP ip sender in one instance of pos...
18 msgThree Postfix Errors
10 msgConditional relay to a barracuda spam filter
2 msgPostfix as honeypot
3 msgpostqueue -p
17 msgPatch to pas all the recipients of a mail to th...
5 msgPostfix DBD Help
4 msgSend and receive mail on different ports?
3 msgpostfix behind a router
1 msgpostfix to access mail from external host.
4 msgThree installation/configuration issues
9 msgReject SMTP connection if two RBL match
3 msgHolding Large Emails
9 msgMonitor Relaying
7 msgSender address rejected when sending messages t...
1 msgProblem using Postfix with LDAP using STARTTLS
7 msgresources for 'only virtual domains'
Subject:hash table not matching subdomains
Group:Postfix-users
From:Sahil Tandon
Date:17 Nov 2007


 
I am running Postfix 2.4.6.

According to http://www.postfix.org/access.5.html, "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".

% postconf | 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

/usr/local/etc/postfix/client-restrictions:
volia.net REJECT You are a spammer; stay away.

% postmap -q volia.net hash:/usr/local/etc/postfix/client-restrictions
REJECT You are a spammer; stay away.

% postmap -q subdomain.volia.net hash:/usr/local/etc/postfix/client-
restrictions
%

Is there something wrong with my configuration or does postmap -q just
query the exact string and not match subdomains even though Postfix
will? I understand an actual attempt by the offending mail server
will eventually answer this question, but just curious about postmap
functionality.

Sahil





© 2004-2008 readlist.com