| |||||||||||||||||||||||||||||||
|
> I want to block certain tld's and somehow it doesn't work. > > In main.cf I have > > smtpd_recipient_restrictions = > .... > permit_mynetworks, > permit_sasl_authenticated, > reject_unauth_destination, > .... > check_client_access hash:/postfix/tables/blacklist, > ... > > In /postfix/tables/blacklist > .biz REJECT > .gov REJECT > .pro REJECT > .cn REJECT > http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains > Still I receive a lot of chinese spam. > Can anyone give me some clues? you forgot the relevant logs. > > and how to do the opposite? > To receive mail from only three tld's like .net, .com and .org? smtpd_recipient_restrictions = ... reject_unauth_destination ... check_client_access pcre:/etc/postfix/tld_acl check_helo_access pcre:/etc/postfix/tld_acl == tld_acl # whitelist /\.(com|org|net|info)$/ DUNNO ... # blacklist /\.(arpa|lan|localdomain|localhost)$/ REJECT #/\.(aero|museum)$/ REJECT ... # whitelist"country" tld /\.[^.]{2}$/ DUNNO #others /\./ reject_unknown_client, reject_unknown_helo_hostname, greylist
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com