Re: [Exim] retry db owned by root

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Kirill Miazine
CC: exim-users
Subject: Re: [Exim] retry db owned by root
On Tue, 26 Nov 2002, Friso Kuipers wrote:

> -----------------------
> Macro: int EFTYPE
>      Inappropriate file type or format. The file was the wrong type for
> the operation, or a data file had the wrong format.

>
> On some systems chmod returns this error if you try to set the sticky
> bit on a non-directory file; see section Assigning File Permissions.
> --------------------------


Aha! I wonder if that last sentence is relevant. Kirill, what value of
EXIMDB_MODE is set in the config.h file in Exim's build directory? (Or
in your Local/Makefile, which is where it comes from?)

> exim -bV says it's Berkeley DB version 1.8x (native mode).


Ancient! But it should still work, and 1.8x isn't as "clever" as 2, 3,
or 4, so I don't think it will be trying any fancy tricks with the file.

> Yes, thanks. In fact, the retry db is owned by root no matter what user
> invoked exim. I tried with 4.10 that I still have around (on another
> machine, OpenBSD 3.2) and the problem is there too.


That figures. It will most probably always be created by a root process
for the first delivery that occurs.

I suspect that the change I'm about to make will cover up the problem by
getting the ownership right, but it may still leave you with an unusable
db file if indeed it was a failure during the DBM opening process. We
may have to insert extra debugging into the code to track it down.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.