[afnog] exim cannot chdir to Maildir when with userdb

Fisayo Adeleke fisayo at exnesys.com
Sun Jul 16 15:25:51 EAT 2006


Hello Brian,

I got it sorted out by allowing permissions to the group for the folder.

thanks

-F

Quoting Brian Candler <B.Candler at pobox.com>:

> 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