Hi Jukka,
At 17:19 28-03-2008, Jukka Salmi wrote:
since upgrading dkim-milter from 2.5.0 to 2.5.1 dkim-stats fails to
read and write the statistics file:

[snip]

dkim-milter[21776]: D808824C7D DKIM verification successful
dkim-milter[21776]: /var/dkfilter/stats: db->open(): Inappropriate file type or format
[...]
dkim-milter[21776]: B678F24C7D failed to parse Authentication-Results: header
dkim-milter[21776]: /var/dkfilter/stats: db->open(): Invalid argument
[...]


This is on a NetBSD/i386 3.1 system using db(3) from the base system
(BDB 1.85?).

See attached patch.  This is applicable for version 2.5.2 as well.

This is a quick fix. If it doesn't work for other operating systems, please post to the list.

Regards,
-sm

Eland Systems
http://www.elandsys.com
408-627-4149 
--- dkim-filter/dkim-db.c.orig  2008-03-11 14:17:25.000000000 -0700
+++ dkim-filter/dkim-db.c       2008-03-28 18:16:26.000000000 -0700
@@ -79,7 +79,7 @@
        status = db_open(file, dbtype, flags, DB_MODE, NULL, NULL, db);
 #else /* DB_VERSION_MAJOR < 2 */
        *db = dbopen(file, (ro ? O_RDONLY :(O_CREAT|O_RDWR)), DB_MODE,
-                    dbtype, NULL);
+                    DB_HASH, NULL);
        if (*db == NULL)
                status = errno;
 #endif /* DB_VERSION_CHECK */
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
dkim-milter-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dkim-milter-discuss

Reply via email to