https://bugs.contribs.org/show_bug.cgi?id=9033

--- Comment #16 from John Crisp <jcr...@safeandsoundit.co.uk> ---
Add the openfusion repo:

https://wiki.contribs.org/Openfusion

Or

https://wiki.contribs.org/Extrarepositories

yum --enablerepo=openfusion install perl-GeoIP2

Modify /etc/GeoIP.conf

[root@test etc]# cat /etc/GeoIP.conf
# The following AccountID and LicenseKey are required placeholders.
# For geoipupdate versions earlier than 2.5.0, use UserId here instead of
AccountID.
#AccountID 0
UserId 0
LicenseKey 000000000000

# Include one or more of the following edition IDs:
# * GeoLite2-City - GeoLite 2 City
# * GeoLite2-Country - GeoLite2 Country
# For geoipupdate versions earlier than 2.5.0, use ProductIds here instead of
EditionIDs.
#EditionIDs GeoLite2-City GeoLite2-Country
ProductIds GeoLite2-City GeoLite2-Country

/usr/bin/geoipupdate- v

Should show the new DBs being downloaded 

[root@esmith /]# geoipupdate -v
geoipupdate 2.2.1
Opened License file /etc/GeoIP.conf
UserId 0
LicenseKey 000000000000
Insert product_id GeoLite2-City
Insert product_id GeoLite2-Country
Read in license key /etc/GeoIP.conf
Number of product ids 2
url:
https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-City
md5hex_digest: 00000000000000000000000000000000
url: https://updates.maxmind.com/app/update_getipaddr
Client IP address: 1.2.3.4
md5hex_digest2: 6447a5fb402d6ae43dcd2b690194d2f6
url:
https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=6447a5fb402d6ae43dcd2b690194d2f6&user_id=0&edition_id=GeoLite2-City
Uncompress file /usr/share/GeoIP/GeoLite2-City.mmdb.gz to
/usr/share/GeoIP/GeoLite2-City.mmdb.test
Rename /usr/share/GeoIP/GeoLite2-City.mmdb.test to
/usr/share/GeoIP/GeoLite2-City.mmdb
url:
https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-Country
md5hex_digest: 00000000000000000000000000000000
url: https://updates.maxmind.com/app/update_getipaddr
Client IP address: 1.2.3.4
md5hex_digest2: 6447a5fb402d6ae43dcd2b690194d2f6
url:
https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=6447a5fb402d6ae43dcd2b690194d2f6&user_id=0&edition_id=GeoLite2-Country
Uncompress file /usr/share/GeoIP/GeoLite2-Country.mmdb.gz to
/usr/share/GeoIP/GeoLite2-Country.mmdb.test
Rename /usr/share/GeoIP/GeoLite2-Country.mmdb.test to
/usr/share/GeoIP/GeoLite2-Country.mmdb


So that seems to update the DBs

I wrote a couple of test scripts that suggest the DBs are working

The only thing I am not sure is how to test is if qpsmtpd is using the new
DBs....

Possibly remove the old GeoIP rpm

GeoIP-1.6.5-1.el6.x86_64
GeoIP-GeoLite-data-2017.01-1.el6.noarch
GeoIP-GeoLite-data-extra-2017.01-1.el6.noarch

If that's it then we bascially need a new conf file as outlined, and a change
of deps for the smeserver-geoip contrib ?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to