FW: IP country block possible?
Scott Silva
ssilva at sgvwater.com
Wed Jan 3 19:03:47 CET 2007
mailscanner at aha4adsl.nl spake the following on 1/3/2007 9:01 AM:
> 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.
>
> There are several databases, like IP2location, available to find out from
> which country/network the email is coming from.
>
> 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?
>
> 3) can it be implemented in MailScanner directly?
> With options like
> Countries Allow = NL BE US
> Countries Blocked = JP TW
>
> We had scanned the lists.mailscanner.info but could not find any related
> topics.
>
> With kind regards,
>
> Ron Groen
>
>
There is a plugin in spamassassin, (at least 3.1.7 has it) called relaycountry.
It can score based on where the mail came from.
http://wiki.apache.org/spamassassin/RelayCountryPlugin
--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!
More information about the MailScanner
mailing list