Page 1 of 1

MaxMind GeoLite

Posted: 02 Feb 2020 03:42
by gdardick
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?

Re: MaxMind GeoLite

Posted: 02 Feb 2020 16:20
by shawniverson
File not used in eFa, eFa has its own config built-in.

Add the license key using eFa-Configure

Re: MaxMind GeoLite

Posted: 03 Feb 2020 08:57
by gdardick
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

Re: MaxMind GeoLite

Posted: 03 Feb 2020 09:49
by shawniverson
Take a look in the following location.

Code: Select all

ls -l /var/www/html/mailscanner/temp

Re: MaxMind GeoLite

Posted: 05 Feb 2020 16:57
by gdardick
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?

Re: MaxMind GeoLite

Posted: 05 Feb 2020 23:17
by shawniverson

Code: Select all

sudo rm /var/www/html/mailscanner/temp/GeoLite2-Country.tar.gz
Give it another try.

Re: MaxMind GeoLite

Posted: 07 Feb 2020 09:51
by gdardick
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 ~]#

Re: MaxMind GeoLite

Posted: 07 Feb 2020 10:32
by shawniverson
I suspect something is wrong with your Maxmind key. Can you double check it?

Re: MaxMind GeoLite

Posted: 07 Feb 2020 12:37
by gdardick
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)

Re: MaxMind GeoLite

Posted: 07 Feb 2020 12:42
by gdardick
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 ~]#

Re: MaxMind GeoLite

Posted: 07 Feb 2020 12:44
by gdardick
hmmmm ... and then I did the following

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

Re: MaxMind GeoLite

Posted: 07 Feb 2020 12:52
by gdardick
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)