I use DB_File for my Perl bulletin boards and not knowing that it was already embedded in the server, let alone in use by Exim, I installed module DB_File through the control panel. Now I find that I have messed up /var/spool/exim/db even though my DB_File bulletin boards run really great.

My /var/log/exim_mainlog is filled with:
2004-01-26 08:57:38 1Al7FB-0008RO-LU failed to open DB file /var/spool/exim/db/wait-remote_smtp: Permission denied (euid=47 egid=12)

User 47 is mailnull and user 12 is mail.
Exim is in fact running as mailnull.
[/etc]# cat passwd |grep 47
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
[/etc]# cat passwd |grep 12
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
[/etc]# cat group |grep 12
mail:x:12:mail,postfix
[/etc]# cat group |grep 47
mailnull:x:47:

The other files in in /var/spool/exim/db do the same. All permissions have been checked and rechecked. I have removed all the /var/spool/exim/DB files and Exim has rebuilt them.

drwxr-xr-x 2 mailnull mail 4096 Jan 27 13:33 ./
drwxrwxr-x 5 mailnull mail 4096 Jan 20 17:25 ../
-rw-r----- 1 mailnull mail 4096 Jan 27 19:53 retry
-rw-r----- 1 mailnull mail 0 Jan 27 12:54 retry.lockfile
-rw-r----- 1 mailnull mail 4096 Jan 27 19:53 wait-remote_smtp
-rw-r----- 1 mailnull mail 0 Jan 27 12:54 wait-remote_smtp.lockfile

I have run /scripts/exim4 and /scripts/fixeverything and service exim restart.

I had previously run /scripts/securetmp if /tmp has anything to do with this.

The errors persist, with each outgoing message dropping a new error into the log, but at least the mails do in fact go through after a short delay.

I went so far as to test it with the directories as chmod 777 and the files as chmod 666 and still the error came through.

I ran Exim tidy scripts:
/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry
/usr/sbin/exim_tidydb -t 1d /var/spool/exim reject
/usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp
No deal.

Ev1 support has dumped it back to me and Cpanel support is not responding. Is this really that unique?

UPDATE:

Install Sleepycat.com db-4.2.52
#../dist/configure
#make
#make install
#perl -MCPAN -eshell
install DB_File

#/scripts/exim4

No more errors!