Le 10/09/2010 17:28, post...@corwyn.net a écrit :


Hi!

what I'd like to do is block all emails from individual contries based on sender email address (.au, .jp, etc)

In reading the docs, it looks like I can block particular domains with
 check_client_access and check_sender_access

When I read through the docs for those two fucntions, it looks like I can block with
domain.tld REJECT
or
.domain.tld REJECT

but what I want is to just block
.tld REJECT

but that doesn't appear to work that way (no surprise, as the docs don't indicate that will work).

you probably missed this:
http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains

if you don't need compatibility things, then go for:
# postconf -e parent_domain_matches_subdomains=


Reply via email to