Jim Flanagan wrote:
/etc/postfix/client_blacklist: 1.2.3.4 554 rejected host due to amount of spam!
This example does not work if the sending client is in $mynetworks. Execute "postmap hash:/etc/postfix/client_blacklist" each time you edit the source file /etc/postfix/client_blacklist. Execute "postfix reload" each time you edit main.cf or master.cf.
I did as you indicated above, and that seems to be working fine. Would it also be correct to reject a block of IP numbers in the format of 1.2.3.4-5.6.7.8?? It this correct?
No, you can't do that in Postfix. Postfix can handle ip address ranges only in certain ways. hash: Hash tables can only match the whole string regexp/pcre: Lots of ways to match string parts, but not ip specific cidr Match against address classes in cidr notation So either use a pcre map like: /1\.2\.3/ 554 blacklisted ip range or use a cidr map like: 1.2.3.0/24 554 blacklisted ip range With a cidr map you need to describe the address ranges in cidr notation, in neccessary, break down the desired ip range into several cidr notations. Sandy -- List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com