Filter incoming emails by IP
How could I filter incoming emails by IP so that emails from a certain IP address are always blocked .
I have previously used the Firewall system ( ConfigServer Security & Firewall - csf v14.17 ) to manually list and block emails from this address but reviewing this I suspect this doesn't work as the firewall blocks server access rather than any message delivery.
WHM already has "block email by Country" and "block email by domain" filters but there doesn't appear to be a way I can find of doing this on a per IP basis?
Would this be something that can be done with Spam assassin on a server wide (Rather than account) level? And how can server wide Spam Assassin be implemented with this? I can read only documentation on SpamAssassin on the account level rather than the server wide level.
Also, to extend this while I write -- Ideally I'd like Spam assassin to do a blacklist lookup on a received mail from IP, and if the IP appears in multiple (say 3) blacklists then the message is not delivered. Any ideas how I could do this?
Cheers
PS I have read this post:
-
Typical, now I've written this I have found in Exim Manager --> blacklist search that there is an option of manually blacklisting IPs here (Access List) . I think this is what I'm looking for; stating "IP addresses from which SMTP connections are dropped unconditionally ". Any comments on adding nuance to droppping only IPs that appear in x number of blacklists would be appreciated. 0 -
The Exim tool you found is definitely the way to go. I don't have any more advanced tools, such as integrating Exim with the blacklists like you mentioned. 0
Please sign in to leave a comment.
Comments
2 comments