Tuesday 28th July 2020
Fedora Project
Updated milter-greylist to 4.6.3 in Rawhide:
- Add support for GeoIP2
Build fixes for conflicting ns_type in SPF and NSupdate code
- Quiet build warnings
Missing bits to make rawfrom usable
- Fix crash when GeoIP for IPv6 is not configured
Report queueId for maxpeek overflow warnings
Sendmail access.db usage documentation
I added libmaxminddb support for builds on F-32/EL-8 onwards, using this patch to stop the milter crashing if the GeoIP2 database is not properly configured:
--- geoip2.c +++ geoip2.c @@ -59,7 +59,7 @@ __RCSID("$Id"); #include <maxminddb.h> static MMDB_s mmdb; -static MMDB_s *geoip2_handle = &mmdb; +static MMDB_s *geoip2_handle = NULL; static char geoip2_database[MAXPATHLEN + 1]; static pthread_rwlock_t geoip2_lock; @@ -88,11 +88,13 @@ geoip2_set_db(name) strncpy(geoip2_database, name, MAXPATHLEN); geoip2_database[MAXPATHLEN] = '\0'; + geoip2_handle = &mmdb; int status = MMDB_open(geoip2_database, MMDB_MODE_MMAP, geoip2_handle); if (status != MMDB_SUCCESS) { mg_log(LOG_WARNING, "Geoip2 database \"%s\" cannot be used", geoip2_database); + geoip2_handle = NULL; return; } } @@ -123,6 +125,12 @@ geoip2_set_ccode(priv) int gai_error, mmdb_error; MMDB_lookup_result_s result; + if (geoip2_handle == NULL) { + mg_log(LOG_DEBUG, "GeoIP2 is not available"); + priv->priv_ccode = NULL; + return; + } + if (iptostring(SA(&priv->priv_addr), priv->priv_addrlen, ipstr, sizeof(ipstr)) == NULL) { mg_log(LOG_DEBUG, "Geoip2 iptostring failed");
Cleaned up and rebuilt perl-Class-DBI-Plugin (0.03) in Rawhide
Local Packages
Cleaned up and rebuilt c-ares (1.16.1)
Cleaned up and rebuilt libmetalink (0.1.3)
Updated davfs2 (1.5.6) to fix FTBFS with neon 0.31 (https://savannah.nongnu.org/bugs/?58101)
Rebuilt geoipupdate (4.3.0), gtkwave (3.3.105), libnet (1.1.6), libssh2 (1.9.0), libxml2 (2.9.10) and mod_fcgid (2.3.9) for the Fedora_33_Mass_Rebuild