> If I wanted to block receiving of mail from the
> range 18.104.22.168 - 22.214.171.124 how would I do it?
> smtp :?: deny
Check `man hosts.deny`, in the "PATTERNS" secction (well, it's the same man page as "hosts.allow").
To block a range of IP addresses, you have to use networks and netmasks.
To designate IPs from 126.96.36.199 to 188.8.131.52, the network is 184.108.40.206, and the netmask is 255.240.0.0.
So you will have to use: `smtp : 220.127.116.11/18.104.22.168`, in your "/etc/hosts.deny" file.
If you want/need more informations about networks/netmasks, I don't have ultimate links, but you might try [en.wikipedia.org...] and the links given at the bottom of the article...
[edited by: Mathieu_Bonnet at 5:17 pm (utc) on Dec. 21, 2006]