Changes

From SME Server
Jump to navigationJump to search
3,085 bytes added ,  13:14, 21 January 2019
Line 1: Line 1:  +
Following to be added to wiki once GeoIP2 is released
 +
 +
===Installation===
 +
The openfusion repo is required for the updated Geoip V2 db
 +
 +
yum  install smeserver-extrarepositories-openfusion
 +
signal-event yum-modify
 +
config set UnsavedChanges no
 +
yum --enablerepo=openfusion install perl-GeoIP2
 +
 +
yum install smeserver-geoip --enablerepo=smecontribs,openfusion
 +
then
 +
geoipupdate -v
 +
 +
signal-event geoip-update
 +
 +
 
Blocking SPAM by country is IMHO not a very nice solution as you will also blocking legitimate users from these countries.  
 
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:
 
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:
Line 86: Line 103:     
---------------------------
 
---------------------------
 +
 +
== geoip2 for php ==
 +
 +
the following allows to install geoip2 support for php
 +
 +
of course you will need the db ...
 +
 +
yum install php*-php-maxmind* --enablerepo=epel
 +
 +
Installation:
 +
php54-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php55-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php56-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php70-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php71-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php72-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
php73-php-maxminddb                                      x86_64                                      1.4.1-1.el6.remi                                        remi-safe                                      16 k
 +
Installation pour dépendance:
 +
libmaxminddb                                            x86_64                                      1.1.1-5.el6                                            epel                                            17 k
 +
 +
 +
Then you need the db.
 +
(not required if you have installed smeserver-geoip2 because the new geoipupdate tool will download and update the databases)
 +
 +
# yum install geolite2-* --enablerepo=epel
 +
 +
Installation:
 +
geolite2-city                                            noarch                                        20181204-1.el6                                        epel                                          21 M
 +
geolite2-country                                        noarch                                        20181204-1.el6                                        epel                                        1.1 M
 +
 +
for base php , we would need to built it...
 +
[[User:Unnilennium|Unnilennium]] ([[User talk:Unnilennium|talk]]) 05:41, 21 January 2019 (CET)

Navigation menu