[Exim] exim -bd crashes (Version 4.20, with openldap2 and na…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: dominik schramm
Dátum:  
Címzett: exim-users
Tárgy: [Exim] exim -bd crashes (Version 4.20, with openldap2 and native bdb)
Hi,

I'm using exim 4.20 freshly compiled with ldap (openldap2)
and native Berkeley-DB (4.1.25) under Debian/Woody (testing)
on a
Pentium II.

When I try to run it in daemon mode without queue runs (for
use as
incoming daemon with MailScanner), it crashes.

What could be wrong here? I'm grateful for any hints.

Regards,
Dominik

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

-d+all yields the following output:

root:/usr/local/exim# /usr/local/exim/bin/exim -d+all -bd
22:39:25  7504 Exim version 4.20 uid=0 gid=0 pid=7504 D=ffffffff
Berkeley DB: Sleepycat Software: Berkeley DB 4.1.25:
(December 19, 2002)
Support for:
Authenticators:
Routers: accept dnslookup ipliteral manualroute queryprogram
redirect
Transports: appendfile/maildir/mbx autoreply pipe smtp
22:39:25  7504 changed uid/gid: forcing real = effective
22:39:25  7504   uid=0 gid=0 pid=7504
22:39:25  7504   auxiliary group list: <none>
22:39:25  7504 --Malloc 135044000  8200        store.c  139
8200 4265
22:39:25  7504 ---1 Get 135044008    32       string.c  349
22:39:25  7504 ---1 Get 135044040    16     readconf.c 2272
22:39:25  7504 ---1 Get 135044056    32     readconf.c 2284
22:39:25  7504 ---1 Get 135044088    16       string.c  349
22:39:25  7504 ---1 Get 135044104    16     readconf.c 2272
22:39:25  7504 ---1 Get 135044120    32     readconf.c 2284
22:39:25  7504 ---1 Get 135044152     8       string.c  349
22:39:25  7504 ---1 Get 135044160    16     readconf.c 2272
22:39:25  7504 ---1 Get 135044176    32     readconf.c 2284
22:39:25  7504 ---1 Get 135044208    16       string.c  349
22:39:25  7504 ---1 Get 135044224     8       string.c  349
22:39:25  7504 --Malloc 135042528    16     readconf.c 1449
8200 4281
22:39:25  7504 ---1 Rst 135044224    **     readconf.c 1508 8200
22:39:25  7504 ---1 Get 135044224     8       string.c  349
22:39:25  7504 ---1 Get 135044232    16       string.c  349
22:39:25  7504 ---1 Get 135044248    24       string.c  349
22:39:25  7504 ---1 Get 135044272     8       string.c  349
22:39:25  7504 ---1 Get 135044280     8       string.c  387
22:39:25  7504 --Malloc 135056776   224         exim.c   41
8200 4505
22:39:25  7504 configuration file is /usr/local/exim/configure
22:39:25  7504 log selector = 020d99d8
22:39:25  7504 trusted user
22:39:25  7504 admin user
22:39:25  7504 ---1 Get 135044288    32     readconf.c 3399
22:39:25  7504 ---1 Get 135044320    16          acl.c  282
22:39:25  7504 ---1 Get 135044336    16          acl.c  328
22:39:25  7504 ---1 Get 135044352    24       string.c  349
22:39:25  7504 ---1 Get 135044376   248     readconf.c 2991
22:39:25  7504 ---1 Get 135044624    16       string.c  349
22:39:25  7504 ---1 Get 135044640    16       string.c  349
22:39:25  7504 ---1 Get 135044656   112     readconf.c 2893
22:39:25  7504 ---1 Get 135044768    40       string.c  349
22:39:25  7504 --Malloc 135058040  8200        store.c  139
16400 4505
22:39:25  7504 ---0 Get 135058048     8       string.c  349
22:39:25  7504 ---0 Get 135058056     8       string.c  349
22:39:25  7504 ---0 Get 135058064     8       string.c  349
22:39:25  7504 ---0 Get 135058072     8       string.c  349
22:39:25  7504 originator: uid=0 gid=0 login=root name=root
Illegal instruction


However, if I start it as
exim -oX 25 -bd
it runs without problems.
I also noticed that when running with -oX and trying to send
a mail as a
non-privileged user,
the error message
2003-07-27 22:25:07 19gs4p-0001vE-KK Failed to create
spool file
/var/spool/exim4/input//19gs4p-0001vE-KK-D: Permission denied
is logged to the console.

Both exim processes run as uid/gid mail, and the directory
   /var/spool/exim4
looks like this:
root:~# ls -la /var/spool/exim4
   total 20
   drwxr-x---    5 mail     mail         4096 Jul 27 18:49 .
   drwxr-xr-x   18 root     root         4096 Jul 27 20:41 ..
   drwxr-x---    2 mail     mail         4096 Jul 27 22:18 db
   drwxr-x---    2 mail     mail         4096 Jul 27 22:18 input
   drwxr-x---    2 mail     mail         4096 Jul 27 22:18
msglog


I read something about the daemon crashing if it has been
"incorrectly built with a muddled combination of an /ndbm.h/
include
file and a non-matching DBM library". (FAQ A9601)
But this should not be the case here since both the incoming
and
outgoing processes share the same binary, and one is
running, the other one not.

Here's the global configuration part of the crashing daemon:
domainlist local_domains = @ : localhost
domainlist relay_to_domains =
hostlist relay_from_hosts = @ : 127.0.0.1
never_users = root
# host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
acl_smtp_rcpt = accept_all
queue_only = true
spool_directory = /var/spool/exim4