IP country block possible?

Michele Neylon :: Blacknight michele at blacknight.ie
Wed Jan 3 18:13:43 CET 2007


mailscanner at aha4adsl.nl wrote:
> Hello Developers,
> 
> Although MailScanner is doing a good job on our servers the number of
> false passes are rather high. 
> 
> We mainly have Dutch and Belgium contacts and therefore want to block
> non-Dutch IP-ranges. 

That sounds mental. I can understand blocking or restricting Korea etc., but
what about the rest of us?

What about AOL? Gmail? Yahoo?

This list!!


You might also want to review what you are using at present.. If you
implemented greylisting, greet pause etc., you'd probably see a lot of crap
being stopped


> 
> There are several databases, like IP2location, available to find out
> from which country/network the email is coming from. 

Read this:

http://www.mneylon.com/blog/archives/2005/01/15/geo-specific-scoring/

You can block at the SMTP level completely if you wish.. It's not that hard
:)

> 
> 1) Is there a way to implement these functions in MailScanner and/or
> SpamAssassin? We find the current blacklist possibilities rather
> limited (the ip2location database has 60000 records like:
> "62.4.75.0","62.4.75.31","1040468736","1040468767","NL","Netherlands"
> "62.4.75.32","62.4.75.79","1040468768","1040468815","DE","Germany"
> "62.4.75.80","62.4.75.95","1040468816","1040468831","NL","Netherlands")
> 
> 
> 2) an other option is to run your own blacklist server but in
> combination with a mysql/php/perl database. Is there any
> documentation at that point?  


Yes, but not here. There's info over on sourceforge and elsewhere if you go
poking

> 
> 3) can it be implemented in MailScanner directly?
> With options like
> Countries Allow = NL BE US
> Countries Blocked = JP TW

No.


> 
> We had scanned the lists.mailscanner.info but could not find any
> related topics. 
> 
> With kind regards,
> 
> Ron Groen



Mr Michele Neylon
Blacknight Solutions
Hosting & Colocation, Brand Protection
http://www.blacknight.ie/
http://blog.blacknight.ie/
Tel. 1850 927 280
Intl. +353 (0) 59  9183072
UK: 0870 163 0607
Direct Dial: +353 (0)59 9183090
Fax. +353 (0) 59  9164239



More information about the MailScanner mailing list