In my postfix setup I want to "disable" all incoming mail from a specific TLD domain (in my case, all domains ending with ".info"). My usual way to block domains is using a hashed file in
/etc/postfix/rejected_domains, that looks like this
[...] bla.info REJECT Spam blubb.info REJECT More Spam! [...]
and having this piece of configuration in my
# domains to be restricted smtpd_sender_restrictions = hash:/etc/postfix/rejected_domains reject_unauth_destinations = hash:/etc/postfix/rejected_domains
My idea to block all of info was adding these rules into the above file:
*.info REJECT Toooo much spam .info REJECT Toooo much spam
Unluckily this does not seem to work.
2.8.5-2~build0.10.04 on Ubuntu LTS 10 here.