[afnog] exim cannot chdir to Maildir when with userdb

Brian Candler B.Candler at pobox.com
Sat Jul 15 10:56:54 EAT 2006


On Sat, Jul 15, 2006 at 08:25:59AM +0100, Fisayo Adeleke wrote:
> I did that and I have this:
...
> [root at spider root]# ls -ld /usr/exim/mailusersdb/s/domain.com/user/Maildir
> drwx------    5 root     exim         4096 Aug 11 17:37
> /usr/exim/mailusersdb/s/domain.com/user/Maildir

There's your problem. This directory is owned by root, and only accessible
by the owner (owner rwx, group ---, other ---)

All the others are also owned by root, but have r-x permissions for group
'exim' and other. This means that anyone can list and enter this directories
(although only root can create and delete files and subdirectories within
them)

> I checked this and there's only one exim user...well, exim was installed as a
> normal user called 'normal' which belongs to the exim group, in /etc/group,
> does this count as two different uids for exim?

Not quite sure what you mean by this. Do you have a user called 'exim' and
another called 'normal'? Did you build exim yourself from source? If so,
did you set EXIM_USER to 'exim' or 'normal' in the Local/Makefile?

It's normal to build exim as some random user, because when you do 'make
install' you are root anyway.

What concerns me is how your mail directories ended up being owned by root -
this is probably some sort of config issue.

Regards,

Brian.



More information about the afnog mailing list