[milters] Archive

Lists Index Date Thread Search

Article: 266
From: Brian Rankin
Date: 2004-11-29 12:59:48 -0500
Subject: milter-spamc and Berkeley DB

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

I'm trying to use milter-spamc with sendmail's access file.  I've
successfully compiled the milter with db, but when I start the milter,
syslog says that the milter was built w/o Berkeley db support. OS is
Solaris 2.8.

Following find: a) the message from syslog; b) output from configure
showing that the Berkeley db was found; c) part of a truss showing that,
as the milter executes, it finds the db libraries.

I'm at a loss as to why the milter thinks is isn't db-aware, when all
indications are that it is. When I execute the milter with debug
logging and send in an SMTP message, it doesn't show any attempts to use
the sendmail access file. Any suggestions greatly appreciated.

--Brian

a) syslog message

Nov 29 09:49:01 lumina milter-spamc[13715]: [ID 748625 mail.info]
milter-spamc/0.25.321 Copyright 2003, 2004 by Anthony Howe. All rights
reserved.
Nov 29 09:49:01 lumina milter-spamc[13715]: [ID 874929 mail.info]
LibSnert/1.40.622 Copyright 1996, 2004 by Anthony Howe. All rights
reserved.
Nov 29 09:49:01 lumina milter-spamc[13715]: [ID 976946 mail.info] Sendmail
libmilter Protocol version 2
Nov 29 09:49:01 lumina milter-spamc[13715]: [ID 630354 mail.info] Built
without Berkeley DB support


b) Configure summary

milter-spamc/0.25.321
Copyright 2003, 2004 by Anthony Howe. All rights reserved.

  LibSnert....................: yes
  libmilter...................: yes
  ..Has reject & deliver patch: no
  Berkeley DB.................: yes
  Run As User.................: smmsp
  Run As Group................: smmsp
  State directory root........: /var/spool
  Startup script directory....: /etc/init.d
  CFLAGS......................: -I/opt/mail/include -D_REENTRANT
-D_THREAD_SAFE -I../../include -I/usr/local/include
  LDFLAGS.....................: -L/opt/mail/lib -R/opt/mail/lib
-L../../lib -L/usr/local/lib
  LIBS........................: -ldb-3.3 -lsnert -lmilter -lnsl -lresolv
-lsocket -lpthread -lrt


c) truss output

execve("/opt/mail/sbin/milter-spamc", 0xFFBEFBA4, 0xFFBEFBAC)  argc = 1
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
stat("/usr/local/lib/libdb-3.3.so", 0xFFBEF2C4) Err#2 ENOENT
stat("/opt/SUNWits/Graphics-sw/xil/lib/libdb-3.3.so", 0xFFBEF2C4) Err#2
ENOENT
stat("/usr/local/ssl/lib/libdb-3.3.so", 0xFFBEF2C4) Err#2 ENOENT
stat("/opt/mail/lib/libdb-3.3.so", 0xFFBEF2C4)  = 0
open("/opt/mail/lib/libdb-3.3.so", O_RDONLY)    = 3
fstat(3, 0xFFBEF2C4)                            = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xFF3A0000
mmap(0x00000000, 671744, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON,
-1, 0) =
 0xFF280000
mmap(0xFF280000, 587102, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xF
F280000
mmap(0xFF31E000, 19548, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 3
, 581632) = 0xFF31E000
munmap(0xFF310000, 57344)                       = 0
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1,
 0) = 0xFF390000
memcntl(0xFF280000, 59600, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0



Lists Index Date Thread Search