Re: [Exim] problems compiling exim-4.12 on freebsd 4.7 STABL…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philipp Gaschuetz
Date:  
À: exim-users
CC: Philip Hazel
Sujet: Re: [Exim] problems compiling exim-4.12 on freebsd 4.7 STABLE
Am Donnerstag, 2. Januar 2003 10:55 schrieb Philip Hazel:
> On Tue, 31 Dec 2002, Philipp Gaschuetz wrote:
> > "failed to open DB file /var/spool/exim/db/retry: Inappropriate file type
> > or format"
>
> Discussed on this list a day or two ago. The suggestion was that there
> was an incompatibility between existing db files and the DBM library
> used for the new compilation. If so, simply removing all files in
> /var/spool/exim/db should fix things.


Hi,
sorry - I did forget to include this in my original email. I saw the comment
in the FAQ about removing the db files.
This did not help...

btw: the box is a 100% vanilla installation. The only thing compiled on there
before compiling exim, was openldap. nothing else...

However, I did try this again now:
As stated before, I was now running exim 4.10 without any problems. a retry db
had been created automatically which currently has 2 entries.
I downloaded, extracted and compiled 4.12 again. make install, and started
exim, sent a message and: hurray, it worked!
However, removing the retry db file, and restarting exim would end up with the
same "failed to open DB" error again....
when I copied the retry db created by 4.10 back into the db diretory
everything worked again...

exim 4.12 would only create 2 empty files: retry and retry.lockfile (both 0 in
size)

to me, it seems as if there is a problem in 4.12 creating new db files...

I have attached 2 outputs created with "exim -d+all-memory -M <msg id>" one
created while a retry db existed, another one without a db existing.

ldd returns:
bash-2.05b# ldd /usr/local/exim/bin/exim-4.12-1
/usr/local/exim/bin/exim-4.12-1:
        libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280de000)
        libldap.so.2 => /usr/local/lib/libldap.so.2 (0x280f7000)
        liblber.so.2 => /usr/local/lib/liblber.so.2 (0x2811b000)
        libc.so.4 => /usr/lib/libc.so.4 (0x28124000)
        libssl.so.2 => /usr/lib/libssl.so.2 (0x281bd000)
        libcrypto.so.2 => /usr/lib/libcrypto.so.2 (0x281ea000)


for 4-10 it returns the same.


don't know if this helps.

Regards,

Philipp

--
Philipp Gaschuetz - pg@???




WITH OLD retry DB created from exim-4.10
====================================
bash-2.05b# exim -d+all-memory -M 18UCXW-0001ad-00
22:21:56  6179 Exim version 4.12 uid=0 gid=0 pid=6179 D=fffeffff
Probably Berkeley DB version 1.8x (native mode)
Support for:
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mbx autoreply pipe smtp
22:21:56  6179 changed uid/gid: forcing real = effective
22:21:56  6179   uid=0 gid=0 pid=6179
22:21:56  6179   auxiliary group list: 0
22:21:56  6179 configuration file is /usr/local/exim/configure
22:21:56  6179 log selector = 0106ccd8
22:21:56  6179 trusted user
22:21:56  6179 admin user
22:21:56  6179 skipping ACL configuration - not needed
22:21:56  6179 set_process_info:  6179 delivering specified messages
22:21:56  6179 set_process_info:  6179 delivering 18UCXW-0001ad-00
22:21:56  6179 reading spool file 18UCXW-0001ad-00-H
22:21:56  6179 user=root uid=0 gid=0 sender=root@???
22:21:56  6179 sender_local=1 ident=root
22:21:56  6179 Non-recipients:
22:21:56  6179 Empty Tree
22:21:56  6179 ---- End of tree ----
22:21:56  6179 recipients_count=1
22:21:56  6179 body_linecount=2 message_linecount=8
22:21:56  6179 Delivery address list:
22:21:56  6179   someone@???
22:21:56  6179 locking /var/spool/exim/db/retry.lockfile
22:21:56  6179 locked /var/spool/exim/db/retry.lockfile
22:21:56  6179 opened hints database /var/spool/exim/db/retry: flags=0
22:21:56  6179 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:21:56  6179 Considering: someone@???
22:21:56  6179 search_open: ldapm "NULL"
22:21:56  6179 search_find: file="NULL"
[ deleted ]
22:21:56  6179 someone.com in percent_hack_domains? no (end of list)
22:21:56  6179 unique = someone@???
22:21:56  6179 dbfn_read: key=R:someone.com
22:21:56  6179 dbfn_read: key=R:someone@???
22:21:56  6179 no address retry record
22:21:56  6179 someone@???: queued for routing
22:21:56  6179 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:21:56  6179 routing someone@???
22:21:56  6179 --------> dnslookup router <--------
22:21:56  6179 local_part=someone domain=someone.com
22:21:56  6179 checking domains
22:21:56  6179 search_open: ldapm "NULL"
22:21:56  6179   cached open
22:21:56  6179 search_find: file="NULL"
[ deleted ]
22:21:56  6179 someone.com in "! +local_domains"? yes (end of list)
22:21:56  6179 calling dnslookup router
22:21:56  6179 dnslookup router called for someone@???
22:21:56  6179   domain = someone.com
22:21:56  6179 DNS lookup of someone.com (MX) gave TRY_AGAIN
22:21:56  6179 someone.com in dns_again_means_nonexist? no (option unset)
22:21:56  6179 returning DNS_AGAIN
22:21:56  6179 dnslookup router: defer for someone@???
22:21:56  6179   message: host lookup did not complete
22:21:56  6179 added retry item for R:someone.com: errno=-1 0 flags=0
22:21:56  6179 post-process someone@??? (1)
22:21:56  6179 LOG: MAIN
22:21:56  6179   == someone@??? R=dnslookup defer (-1): host lookup
did not complete
22:21:56  6179 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:21:56  6179 After routing:
22:21:56  6179   Local deliveries:
22:21:56  6179   Remote deliveries:
22:21:56  6179   Failed addresses:
22:21:56  6179   Deferred addresses:
22:21:56  6179     someone@???
22:21:56  6179 search_tidyup called
22:21:56  6179 unbind LDAP connection to multicomp.corpex-net.de:389
22:21:56  6179 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
22:21:56  6179 changed uid/gid: post-delivery tidying
22:21:56  6179   uid=500 gid=500 pid=6179
22:21:56  6179   auxiliary group list: 500
22:21:56  6179 set_process_info:  6179 tidying up after delivering
18UCXW-0001ad-00
22:21:56  6179 Processing retry items
22:21:56  6179 Succeeded addresses:
22:21:56  6179 Failed addresses:
22:21:56  6179 Deferred addresses:
22:21:56  6179 someone@???
22:21:56  6179 locking /var/spool/exim/db/retry.lockfile
22:21:56  6179 locked /var/spool/exim/db/retry.lockfile
22:21:56  6179 opened hints database /var/spool/exim/db/retry: flags=2
22:21:56  6179 address match: subject=*@someone.com pattern=*
22:21:56  6179 someone.com in "*"? yes (matched "*")
22:21:56  6179 *@someone.com in "*"? yes (matched "*")
22:21:56  6179 retry for R:someone.com = *
22:21:56  6179 dbfn_read: key=R:someone.com
22:21:56  6179 Writing retry data for R:someone.com
22:21:56  6179   first failed=1041541541 last try=1041542516 next
try=1041543416 expired=0
22:21:56  6179   error -1 0: host lookup did not complete
22:21:56  6179 dbfn_write: key=R:someone.com
22:21:56  6179 end of retry processing
22:21:56  6179 time on queue = 15m50s
22:21:56  6179 warning counts: required 0 done 0
22:21:56  6179 delivery deferred: update_spool=0 header_rewritten=0
22:21:56  6179 end delivery of 18UCXW-0001ad-00
22:21:56  6179 search_tidyup called
22:21:56  6179 search_tidyup called
22:21:56  6179 >>>>>>>>>>>>>>>> Exim pid=6179 terminating with rc=0

>>>>>>>>>>>>>>>>










WITH NO retry DB FILE
=======================
bash-2.05b# exim -d+all-memory -M 18UCXW-0001ad-00
22:27:07  6206 Exim version 4.12 uid=0 gid=0 pid=6206 D=fffeffff
Probably Berkeley DB version 1.8x (native mode)
Support for:
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mbx autoreply pipe smtp
22:27:07  6206 changed uid/gid: forcing real = effective
22:27:07  6206   uid=0 gid=0 pid=6206
22:27:07  6206   auxiliary group list: 0
22:27:07  6206 configuration file is /usr/local/exim/configure
22:27:07  6206 log selector = 0106ccd8
22:27:07  6206 trusted user
22:27:07  6206 admin user
22:27:07  6206 skipping ACL configuration - not needed
22:27:07  6206 set_process_info:  6206 delivering specified messages
22:27:07  6206 set_process_info:  6206 delivering 18UCXW-0001ad-00
22:27:07  6206 reading spool file 18UCXW-0001ad-00-H
22:27:07  6206 user=root uid=0 gid=0 sender=root@???
22:27:07  6206 sender_local=1 ident=root
22:27:07  6206 Non-recipients:
22:27:07  6206 Empty Tree
22:27:07  6206 ---- End of tree ----
22:27:07  6206 recipients_count=1
22:27:07  6206 body_linecount=2 message_linecount=8
22:27:07  6206 Delivery address list:
22:27:07  6206   someone@???
22:27:07  6206 locking /var/spool/exim/db/retry.lockfile
22:27:07  6206 locked /var/spool/exim/db/retry.lockfile
22:27:07  6206 /var/spool/exim/db/retry appears not to exist: trying to create
22:27:07  6206 ensuring /var/spool/exim/db/retry.lockfile is owned by exim
22:27:07  6206 ensuring /var/spool/exim/db/retry is owned by exim
22:27:07  6206 opened hints database /var/spool/exim/db/retry: flags=0
22:27:07  6206 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:27:07  6206 Considering: someone@???
22:27:07  6206 search_open: ldapm "NULL"
22:27:07  6206 search_find: file="NULL"
[ deleted ]
22:27:07  6206 someone.com in percent_hack_domains? no (end of list)
22:27:07  6206 unique = someone@???
22:27:07  6206 dbfn_read: key=R:someone.com
22:27:07  6206 dbfn_read: key=R:someone@???
22:27:07  6206 no domain retry record
22:27:07  6206 no address retry record
22:27:07  6206 someone@???: queued for routing
22:27:07  6206 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:27:07  6206 routing someone@???
22:27:07  6206 --------> dnslookup router <--------
22:27:07  6206 local_part=someone domain=someone.com
22:27:07  6206 checking domains
22:27:07  6206 search_open: ldapm "NULL"
22:27:07  6206   cached open
22:27:07  6206 search_find: file="NULL"
[ deleted ]
22:27:07  6206 someone.com in "! +local_domains"? yes (end of list)
22:27:07  6206 calling dnslookup router
22:27:07  6206 dnslookup router called for someone@???
22:27:07  6206   domain = someone.com
22:27:07  6206 DNS lookup of someone.com (MX) gave TRY_AGAIN
22:27:07  6206 someone.com in dns_again_means_nonexist? no (option unset)
22:27:07  6206 returning DNS_AGAIN
22:27:07  6206 dnslookup router: defer for someone@???
22:27:07  6206   message: host lookup did not complete
22:27:07  6206 added retry item for R:someone.com: errno=-1 0 flags=0
22:27:07  6206 post-process someone@??? (1)
22:27:07  6206 LOG: MAIN
22:27:07  6206   == someone@??? R=dnslookup defer (-1): host lookup
did not complete
22:27:07  6206 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
22:27:07  6206 After routing:
22:27:07  6206   Local deliveries:
22:27:07  6206   Remote deliveries:
22:27:07  6206   Failed addresses:
22:27:07  6206   Deferred addresses:
22:27:07  6206     someone@???
22:27:07  6206 search_tidyup called
22:27:07  6206 unbind LDAP connection to multicomp.corpex-net.de:389
22:27:07  6206 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
22:27:07  6206 changed uid/gid: post-delivery tidying
22:27:07  6206   uid=500 gid=500 pid=6206
22:27:07  6206   auxiliary group list: 500
22:27:07  6206 set_process_info:  6206 tidying up after delivering
18UCXW-0001ad-00
22:27:07  6206 Processing retry items
22:27:07  6206 Succeeded addresses:
22:27:07  6206 Failed addresses:
22:27:07  6206 Deferred addresses:
22:27:07  6206 someone@???
22:27:07  6206 locking /var/spool/exim/db/retry.lockfile
22:27:07  6206 locked /var/spool/exim/db/retry.lockfile
22:27:07  6206 LOG: MAIN
22:27:07  6206   failed to open DB file /var/spool/exim/db/retry:
Inappropriate file type or format
22:27:07  6206 retry database not available for updating
22:27:07  6206 time on queue = 21m1s
22:27:07  6206 warning counts: required 0 done 0
22:27:07  6206 delivery deferred: update_spool=0 header_rewritten=0
22:27:07  6206 end delivery of 18UCXW-0001ad-00
22:27:07  6206 search_tidyup called
22:27:07  6206 search_tidyup called
22:27:07  6206 >>>>>>>>>>>>>>>> Exim pid=6206 terminating with rc=0

>>>>>>>>>>>>>>>>