[milters] Archive

Lists Index Date Thread Search

Article: 789
From: Skip Hayes
Date: 2006-01-10 19:43:33 -0500
Subject: Re: milter-limit: failed to open "/etc/mail/access.db":

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Anthony, thanks for the reply.

> If you build the milter/libsnert with DB4, then so too must sendmail and 
> its tools and the .db files they use. I don't support DB1. The The 
> Berkeley DB4 and DB3 code do not read DB1 files and access.db would have 
> been built by default using DB1 on OpenBSD.

Yah cool I guessed right. I guess then I'd make a feature request
that you enable Berkeley DB1 read only support for your milters,
even when DB3 or DB4 is compiled in.


> What does /var/log/maillog say when you start the milter?

mx1 milter-limit: failed to open "/etc/mail/access.db": Invalid argument
mx1 milter-limit: access database support disabled
mx1 milter-limit: milter-limit: smfi_register: version mismatch
application: 4 != milter: 2
mx1 milter-limit: milter-limit: smfi_register: version mismatch
application: 3 != milter: 2
mx1 milter-limit: milter-limit/0.7.64 Copyright 2004, 2005 by
Anthony Howe. All rights reserved.
mx1 milter-limit: LibSnert/1.56.769 Copyright 1996, 2005 by Anthony
Howe. All rights reserved.
mx1 milter-limit: libmilter version 2 (4)
mx1 milter-limit: Sleepycat Software: Berkeley DB 4.2.52: (December
 3, 2003)


> What did the ./configure summary for LibSnert report?

If you want the whole thing just let me know... on OpenBSD 3.8 I had
to "./configure --with-db=/usr/local" in order for my ports
installation of Berkeley DB4 to be found.

Check for Berkeley DB support...

checking for library containing db_create_4003... no
checking for library containing db_create_4002... no
checking for library containing db_create_4001... no
checking for library containing db_create_3003... no
checking for library containing db_create_3002... no
checking for library containing db_create... -ldb
checking for db4/db.h... yes
checking for library containing db_create... -ldb
checking for db3/db.h... no
checking for db.h... yes
checking for library containing dbopen... none required
checking for db.h... (cached) yes
checking for db_create... yes
checking for dbopen... yes
checking which Berkeley DB library to use... yes -ldb
...
LibSnert/1.56.769
Copyright 1996, 2005 by Anthony Howe. All rights reserved.

  Platform..........: OpenBSD gcc
  pthread & mutex...: yes yes
  Semaphore.........: SYSTEMV_API
  Shared Memory.....: SYSTEMV_API
  Time..............: POSIX_API
  Berkeley DB.......: yes
  libmilter.........: yes
  CFLAGS............: -I/usr/local/include -D_THREAD_SAFE -pthread
-D_REENTRANT -g -I${top_srcdir}/../../include
  LDFLAGS...........: -L/usr/local/lib -L${top_srcdir}/../../lib
  LIBS..............: -ldb -lmilter -lpthread


>>> milter-limit: failed to open "/etc/mail/access.db": Invalid
argument
> 
> Sounds like mismatched BDB libraries between sendmail, makemap, and the 
> milter.
> 
> Add the following to /etc/magic
> 
> 	http://www.sleepycat.com/docs/ref/install/magic.txt
> 
> then do
> 
> 	file /etc/mail/access.db
> 
> If it say 1.85 or 1.86, your sendmail/makemap are using DB1 and are not 
> in sync with the milter using DB4. BTW if you rebuild sendmail, remember 
> to rebuild and install libmilter for that version of sendmail too.


Cool yah I'll probably not be changing sendmail to db4 anytime
soon... oh well it's cool I'll just use your milters in flat file or
hash mode. Which would you recommend? I've got a ramdisk running as
/dev/ram just for files like this...

Thanks for the help!  -s




Lists Index Date Thread Search