MaxMind GeoLite

Questions and answers about how to do stuff
Post Reply
gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

MaxMind GeoLite

Post by gdardick » 02 Feb 2020 03:42

I have gotten MaxMind account info and a corresponding GeoIP.conf file for a new installation of eFA4.

Where does the GeoIP.conf file go?

User avatar
shawniverson
Posts: 2994
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: MaxMind GeoLite

Post by shawniverson » 02 Feb 2020 16:20

File not used in eFa, eFa has its own config built-in.

Add the license key using eFa-Configure
Version eFa 4.0.2 now available!

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 03 Feb 2020 08:57

Thanks.
I added the license key through eFa.
Tried to run update GeoIP Database from MailWatch and got the following...and then never finishes.

Downloading file, please wait...
Download complete, unpacking files...

Also - Software Version shows:
GeoIP Database Version: No database downloaded

User avatar
shawniverson
Posts: 2994
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: MaxMind GeoLite

Post by shawniverson » 03 Feb 2020 09:49

Take a look in the following location.

Code: Select all

ls -l /var/www/html/mailscanner/temp
Version eFa 4.0.2 now available!

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 05 Feb 2020 16:57

I did and got the following:

[root@dardickmailgw ~]# ls -l /var/www/html/mailscanner/temp
total 4
-rw-r--r--. 1 php-fpm php-fpm 20 Feb 3 04:04 GeoLite2-Country.tar.gz
-rwxrwxr-x. 1 root php-fpm 0 Dec 27 08:04 index.html
[root@dardickmailgw ~]#

any ideas?

User avatar
shawniverson
Posts: 2994
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: MaxMind GeoLite

Post by shawniverson » 05 Feb 2020 23:17

Code: Select all

sudo rm /var/www/html/mailscanner/temp/GeoLite2-Country.tar.gz
Give it another try.
Version eFa 4.0.2 now available!

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 07 Feb 2020 09:51

same result ... still hangs

Downloading file, please wait...
Download complete, unpacking files...

MailWatch Version: 1.2.14
Operating System Version: CentOS Linux 7 (Core)
Postfix Version: 3.3.0
MailScanner Version: 5.1.4
ClamAV Version: 0.101.5
SpamAssassin Version: 3.4.2
PHP Version: 7.2.26
MySQL Version: 10.1.41-MariaDB
GeoIP Database Version: No database downloaded

[root@dardickmailgw ~]# sudo rm /var/www/html/mailscanner/temp/GeoLite2-Country.tar.gz
[root@dardickmailgw ~]# ls -lah /var/www/html/mailscanner/temp/
total 16K
drwxrwxr-x. 2 root php-fpm 55 Feb 7 04:48 .
drwxr-xr-x. 7 root root 8.0K Feb 1 17:51 ..
-rw-r--r--. 1 php-fpm php-fpm 20 Feb 7 04:48 GeoLite2-Country.tar.gz
-rwxrwxr-x. 1 root php-fpm 0 Dec 27 08:04 index.html
[root@dardickmailgw ~]#

User avatar
shawniverson
Posts: 2994
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: MaxMind GeoLite

Post by shawniverson » 07 Feb 2020 10:32

I suspect something is wrong with your Maxmind key. Can you double check it?
Version eFa 4.0.2 now available!

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 07 Feb 2020 12:37

I did check and just in case regenerated a key.

FYI - there are 2 choices when generating the key. I chose the first one (latest version of MaxMind - >= 3.1.1)

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 07 Feb 2020 12:42

Just for grins, I did the following:

[root@dardickmailgw ~]# tar -tf /var/www/html/mailscanner/temp/GeoLite2-Country.tar.gz
tar: This does not look like a tar archive
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
[root@dardickmailgw ~]#

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 07 Feb 2020 12:44

hmmmm ... and then I did the following

[root@dardickmailgw ~]# cat /var/www/html/mailscanner/temp/GeoLite2-Country.tar.gz
Invalid license key
[root@dardickmailgw ~]#

gdardick
Posts: 8
Joined: 02 Feb 2020 03:37

Re: MaxMind GeoLite

Post by gdardick » 07 Feb 2020 12:52

so I tried version < 3.1.1 and that did work.

Thanks Shawn!

One last question..hopefully.

Now what? (where/how will the data be used/viewed)

Post Reply