Theres this one goddamn ISP in Europe that is responsible for 95% of my spam. Some might say to block them in my firewall, but for many reasons, i'd rather REJECT them at the mailserver level and have them receive the failure notice from the server.
That's easy enough to do and I have blocked a few other hosts. But my PROBLEM is that it's not clear to me how you block specific ranges of IPs. You can do something like "24 REJECT" to block all of 24.x.x.x or "24.12 REJECT" to block all of 24.12.x.x. (to clarify, i'm talking about in the POSTFIX access file "/etc/postfix/access")
But I want to do things a little more complicated. Like blocking 24.150.0.0 through 24.150.128.0. But I can't figure out what format to use to do this, or even if it's possible.
This is what my file looks like now:
That's easy enough to do and I have blocked a few other hosts. But my PROBLEM is that it's not clear to me how you block specific ranges of IPs. You can do something like "24 REJECT" to block all of 24.x.x.x or "24.12 REJECT" to block all of 24.12.x.x. (to clarify, i'm talking about in the POSTFIX access file "/etc/postfix/access")
But I want to do things a little more complicated. Like blocking 24.150.0.0 through 24.150.128.0. But I can't figure out what format to use to do this, or even if it's possible.
This is what my file looks like now:
elekworld.com REJECT Knock-off Asian electronics suppliers are auto-rejected
elekworld.ltd REJECT Knock-off Asian electronics suppliers are auto-rejected
elekworld.cn REJECT Knock-off Asian electronics suppliers are auto-rejected
bizbee.com REJECT Knock-off Asian electronics suppliers are auto-rejected
bmsend.com REJECT SPAM Rejected
benchmarkemail.com REJECT SPAM Rejected
51.158 REJECT Scaleway blocked due to excessive SPAM
51.159 REJECT Scaleway blocked due to excessive SPAM