Discussion:
GeoIP is not available
Ernesto Rapetti, Ing.
2008-03-26 14:54:39 UTC
Permalink
Please add a configuration option to disable GeoIP.

Fedora is packaging milter-greylist with GeoIP enabled at compile time, but
the user may not have a GeoIP account; in that case syslog gets lots of
"GeoIP is not available" messages.


Thanks a lot for your great milter!!,
Ernesto.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/milter-greylist/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/milter-greylist/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:milter-greylist-digest-***@public.gmane.org
mailto:milter-greylist-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
milter-greylist-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
chasd
2008-03-26 20:52:40 UTC
Permalink
Post by Ernesto Rapetti, Ing.
Fedora is packaging milter-greylist with GeoIP enabled at compile
time, but
the user may not have a GeoIP account; in that case syslog gets
lots of
"GeoIP is not available" messages.
You don't need a GeoIP account.
The problem is that the greylist.conf file from the RPM doesn't have
the correct path to the installed GeoIP database

You need :

geoipdb "/usr/share/GeoIP/GeoIP.dat"

in your /etc/mail/greylist.conf file

Using the provided "geoipupdate" to get a newer database will fail
with a "Invalid UserID" message, and the correct Requires aren't in
the GeoIP RPM to pull in the modules needed by the perl scripts
included, so they don't work either.

1)
You can go to the maxmind website and download a newer copy of the
database manually fairly easily.

2)
Install the modules for the perl script -

sudo yum install perl-libwww-perl

then

sudo perl /usr/share/doc/GeoIP-1.4.3/fetch-geoipdata.pl
Fetching GeoIP.dat from http://www.maxmind.com/download/geoip/
database/GeoIP.dat.gz
GeoIP database updated. Old copy is at GeoIP.dat.20080326

or add that to your monthly cron jobs.
The free database is updated monthly.


Charles Dostale
System Admin - Silver Oaks Communications
http://www.silveroaks.com/
824 17th Street, Moline IL 61265


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/milter-greylist/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/milter-greylist/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:milter-greylist-digest-***@public.gmane.org
mailto:milter-greylist-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
milter-greylist-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Ernesto Rapetti, Ing.
2008-03-26 21:09:03 UTC
Permalink
Thanks !

In Fedora 8 just adding the line in greylist.conf file did the trick, as the
database is included in the RPM package GeoIP.

Ernesto.


-----Mensaje original-----
De: milter-greylist-***@public.gmane.org
[mailto:milter-greylist-***@public.gmane.org]En nombre de chasd
Enviado el: Miercoles, 26 de Marzo de 2008 05:53 p.m.
Para: milter-greylist-***@public.gmane.org
Asunto: Re: [milter-greylist] GeoIP is not available
Post by Ernesto Rapetti, Ing.
Fedora is packaging milter-greylist with GeoIP enabled at compile
time, but
the user may not have a GeoIP account; in that case syslog gets
lots of
"GeoIP is not available" messages.
You don't need a GeoIP account.
The problem is that the greylist.conf file from the RPM doesn't have
the correct path to the installed GeoIP database

You need :

geoipdb "/usr/share/GeoIP/GeoIP.dat"

in your /etc/mail/greylist.conf file

Using the provided "geoipupdate" to get a newer database will fail
with a "Invalid UserID" message, and the correct Requires aren't in
the GeoIP RPM to pull in the modules needed by the perl scripts
included, so they don't work either.

1)
You can go to the maxmind website and download a newer copy of the
database manually fairly easily.

2)
Install the modules for the perl script -

sudo yum install perl-libwww-perl

then

sudo perl /usr/share/doc/GeoIP-1.4.3/fetch-geoipdata.pl
Fetching GeoIP.dat from http://www.maxmind.com/download/geoip/
database/GeoIP.dat.gz
GeoIP database updated. Old copy is at GeoIP.dat.20080326

or add that to your monthly cron jobs.
The free database is updated monthly.

Charles Dostale
System Admin - Silver Oaks Communications
http://www.silveroaks.com/
824 17th Street, Moline IL 61265
chasd
2008-03-27 19:23:10 UTC
Permalink
Post by Ernesto Rapetti, Ing.
In Fedora 8 just adding the line in greylist.conf file did the
trick, as the
database is included in the RPM package GeoIP.
Yes but it is from last year when F8 was released.
It is a good idea to update the database at least when you install
GeoIP.

When F9 is released in May, an updated database should be installed.
Any Fedora release will update the database as well, but those come
roughly every 6 months. If you want to keep your GeoIP database more
current, or you don't upgrade this OS consistently, you have to
initiate the database updates yourself.

I see you beat me to filling the milter-greylist bug

<https://bugzilla.redhat.com/show_bug.cgi?id=439087>

I filed a GeoIP bug -

<https://bugzilla.redhat.com/show_bug.cgi?id=439267>


Charles Dostale
System Admin - Silver Oaks Communications
http://www.silveroaks.com/
824 17th Street, Moline IL 61265


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/milter-greylist/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/milter-greylist/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:milter-greylist-digest-***@public.gmane.org
mailto:milter-greylist-fullfeatured-***@public.gmane.org

<*> To unsubscribe from this group, send an email to:
milter-greylist-unsubscribe-***@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...