Changes

Jump to navigation Jump to search
27 bytes added ,  21:28, 16 February 2009
m
Minor text changes: amongst, but not limited to, proper capitalisation and removing shorthands
Line 7: Line 7:     
=== GeoIP plugin===
 
=== GeoIP plugin===
We need the GEOIP package and the perl interface to the program but this isn't installed on SME. We'll have to grab the packages from yum. Yum has access to different public repositories where packages are available. GEOIP is in the EXTRAS repo. We'll enable the repo and install them.  
+
We need the GeoIP package and the perl interface to the program but this isn't installed on SME Server. We'll have to grab the packages from yum. Yum has access to different public repositories where packages are available. GeoIP is in the extras repository. We'll enable the repository and install them.  
    
  yum --enablerepo=extras install perl-Geo-IP  
 
  yum --enablerepo=extras install perl-Geo-IP  
Line 30: Line 30:  
=== GeoIP qpstmpd plugin ===
 
=== GeoIP qpstmpd plugin ===
   −
The email receiving component of SME is called QPSMTPD. It's great because it allows us to turn plugins on or off or create our own
+
The email receiving component of SME Server is called qpsmtpd. It's great because it allows us to turn plugins on or off or create our own when we need. The GeoIP plugin is already in SME Server but it's turned off. I've created a RPM but it's not in any of the repoitories, it'attached to a [[bugzilla: 1866]] ([http://bugs.contribs.org/attachment.cgi?id=1149 direct download]).
when we need. The GEOIP plugin is already in SME but it's turned off. I've created a RPM but it's not in any of the repos, it'attached to a bug in the bug tracker here: http://bugs.contribs.org/attachment.cgi?id=1149
     −
You can download this with your desktop pc and transfer this onto your SME Server with WINSCP. If you don't know what WINSCP is, you can google it.
+
You can download this with your desktop pc and transfer this onto your SME Server with WinSCP.
    
Now you can install the rpm:
 
Now you can install the rpm:
   −
  rpm -Uvh smeserver-geoip-1.0.0-b1.noarch.rpm
+
  yum localinstall smeserver-geoip-1.0.0-b1.noarch.rpm
    
==Testing==
 
==Testing==
Line 53: Line 52:  
  geoiplookup contribs.org  
 
  geoiplookup contribs.org  
   −
Same result. So we know it works with IP ADDRESSES or DOMAIN NAMES. Let's test it again around the world.  
+
Same result. So we know it works with ip addresses or domain names. Let's test it again around the world.  
    
  geoiplookup gormand.com.au  
 
  geoiplookup gormand.com.au  
Line 106: Line 105:     
===Blocking email===
 
===Blocking email===
Add the values to the SME CADNHO db. In our case, Russia & Poland seem to causing issues. You can type in any country codes you wish.
+
Add the values to the SME CADNHO db. In our case, Russia and Poland seem to causing issues. You can type in any country codes you wish.
 
   
 
   
 
  config setprop qpsmtpd BadCountries RU,PL
 
  config setprop qpsmtpd BadCountries RU,PL
Line 114: Line 113:  
  signal-event email-update
 
  signal-event email-update
   −
No more mail from RU or PL. The beauty of this is that the SME Server lookups happen locally on the local database rather than looking up the IP address via dns. This results in very fast responses. In addition, the plugin happens before most other plugins. This means the mail is dropped before the SME Server even has to check to see if it's on a blacklist or if it's spam.
+
No more mail from domains ending on .ru or .pl. The beauty of this is that the SME Server lookups happen locally on the local database rather than looking up the IP address via dns. This results in very fast responses. In addition, the plugin happens before most other plugins. This means the mail is dropped before the SME Server even has to check to see if it's on a blacklist or if it's spam.
    
----
 
----
 
<noinclude>[[Category:Howto]]</noinclude>
 
<noinclude>[[Category:Howto]]</noinclude>

Navigation menu