Talk:GeoIP

From SME Server
Revision as of 19:19, 23 March 2013 by Unnilennium (talk | contribs)
Jump to navigation Jump to search

Blocking SPAM by country is IMHO not a very nice solution as you will also blocking legitimate users from these countries. I think you might be far better of by using blacklists and bayes filtering in combination with the auto-learn feature. This way mail is checked based on their contents and flagged as SPAM. More information on the bayes filtering and autolearn features can be found here:

  1. http://www.sonoracomm.com/index.php?option=com_content&task=view&id=49&Itemid=32
  2. http://wiki.contribs.org/Email#Setup_Blacklists_.26_Bayesian_Autolearning

- Cactus 09:03, 12 December 2007 (MST)

==================================

This has more implication other than blocking. It's also tracking & plotting on map. Only the last part has to do with blocking.

Even so, the reality is that not all countries have friendly intentions or have quality standards in their communication law.

Here are my stats for the last month:

#                                 Most Recent Logfile      Cumulative Totals
# Disposition (plugin)            Total       Avg/Day      Total       Avg/Day
# ----------------------------------------------------------------------------
# check_badcountries               1414  44%    21665     275083  41%    11943

So, I've been blocking 21665 messages a day. This is a big chunk of messages that never even have to be scanned on a daily basis. The number of complaints I have received are zero.

- kruhm

Nobody complaints if he can't !


your users are not aware of messages they can't read, and the one that send a message from a banned country can only be reject when he tries to mail the admin of the server !


- unnilennium


be aware that some versions of geoip will expect databases at another place, here is a modified version of cron part to avoid this :

# Updating the GeoIP database monthly on the 5th at 0:00h.
 0 0 5 * * root /usr/bin/wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O /var/lib/GeoIP/GeoIP.dat.gz; /bin/gunzip -f /var/lib/GeoIP/GeoIP.dat.gz; cp /var/lib/GeoIP/*.dat /usr/share/GeoIP/
 0 0 5 * * root /usr/bin/wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -O /var/lib/GeoIP/GeoIPCity.dat.gz; /bin/gunzip -f /var/lib/GeoIP/GeoIPCity.dat.gz; cp /var/lib/GeoIP/*.dat /usr/share/GeoIP/

- unnilennium