Re: [Exim] strange errors with permissions

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Ingvarr Zhmakin
Datum:  
To: exim-users
CC: Philip Hazel
Betreff: Re: [Exim] strange errors with permissions
> > Everything is working fine, no problems are observed.
> > But. The log contains lines like this:
> > ===
> > <date> <msgid> failed to open database lock file /var/spool/exim/db/wait-remote_smtp.lockfile: Permission denied (euid=8 egid=8)
> > ===
> Is this error repeatable? Does it show many times for the same message?
> For different messages? What are the permissions on

I seems to occur once per each message which is delivered to remote --
when only local deliveries happen, no errors appear.
For messages with remote targets this is repeateble.

> /var
> /var/spool
> /var/spool/exim
> /var/spool/exim/db
> /var/spool/exim/db/wait-remote_smtp.lockfile

drwxr-xr-x   21 root     root         4096 Dec 14 17:35 var
drwxr-xr-x   11 root     root         4096 Dec 16 11:46 spool
drwxr-x---    5 mail     mail         4096 Nov  3 23:02 exim
drwxr-x---    2 mail     mail         4096 Nov 24 21:16 db
=== !
-rw-r-----    1 root     root         4096 Nov  8 06:25 wait-remote_smtp
-rw-r-----    1 root     root            0 Nov  8 06:25 wait-remote_smtp.lockfil
=== !
Bullshit!!! Someone made these files root-owned. Who, I wonder.
When I killed them, new ones appeared:
===
-rw-r-----    1 mail     mail         4096 Dec 21 13:10 wait-remote_smtp
-rw-r-----    1 mail     mail            0 Dec 21 13:10 wait-remote_smtp.lockfil
===


And errors are gone!

But where have they appeared from?...
Maybe it helps: at about November 8 the distribution (most likely) was
Debian popato, so exim version was about 3.12.

It seems that there was some bug with uid/gid changing...
Perhaps this is the same thing people get with "-qff".

> ? From what you said, I presume that the message does get successfully
> delivered.

Yep.

                   Ingvarr.