enable geoip from admin ui uses wrong geoip server

Issue #725 resolved
Eric created an issue

these logs come from docker when recreating the container, after you enabled geoip in the admin ui

docker run \
  --net=host \
  -v /etc/localtime:/etc/localtime:ro \
  -v /email/poste.io/data:/data \
  --name "mailserver" \
  -h "mail.it-cooking.com" \
  -e "HTTPS=OFF" \
  -e "HTTP_PORT=5080" \
  -e "HTTPS_PORT=5433" \
  -e "DISABLE_CLAMAV=TRUE" \
  -t analogic/poste.io

end of docker logs:

...
Poste.io administration available at https://myip:5433 or http://myip:5080


[services.d] done.
[06-Jan-2020 19:44:52] NOTICE: fpm is running, pid 670
[06-Jan-2020 19:44:52] NOTICE: ready to handle connections
[06-Jan-2020 19:44:52] NOTICE: systemd monitor interval set to 10000ms
Error: getaddrinfo ENOTFOUND geolite.maxmind.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) {
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'geolite.maxmind.com'
}
err: getaddrinfo ENOTFOUND geolite.maxmind.com

i believe they don't provide free databases anymore for quite some time

curl geolite.maxmind.com
curl: (6) Could not resolve host: geolite.maxmind.com

Comments (2)

  1. Log in to comment