[Dovecot] Help, problems with permissions

Simon Windsor simonw at orionwt.co.uk
Mon Feb 14 09:12:04 EET 2005


Hi

Thank you for the reply.

The documentation on the wiki/dovecot site clearly provides an example exim
transport statements showing mail writes as dovecot/dovecot with permisions of 600.

The mail system uses virtual users, and I have provided mail/group ids of 1001/1001.
The current directory tree is

/home                                   - owned by root
/home/dovecot                           - owned by root
/home/dovecot/users                     - owned by root, 777
/home/dovecot/users/DOMAIN              - owned by 1001:1001, 777
/home/dovecot/users/DOMAIN/USER         - owned by 1001:1001, 777
/home/dovecot/users/DOMAIN/USER/cur     - owned by dovecot:dovecot, 600
/home/dovecot/users/DOMAIN/USER/new     - owned by dovecot:dovecot, 600
/home/dovecot/users/DOMAIN/USER/tmp     - owned by dovecot:dovecot, 600

Can you confirm that all files should be owned by 1001/1001?

What permissions should should exist on these directories/files?

Thanks, once again

Simon

Amelia A Lewis (amyzing at talsever.com) wrote:
>
>It looks as though cur/new/tmp are owned by user dovecot, rather than
>the user whose mail it is.  In my (similar, prolly) setup, maildirs are
>owned by their owners.  Dovecot is executed as the user reading the
>mail.
>
>Amy!
>On Mon, 14 Feb 2005 02:19:09 +0000
>Simon Windsor <simon.windsor at cornfield.org.uk> wrote:
>
>> Hi
>>
>> I am replacing my current mail system, using Exim/Postgres/WU-IMAP to
>> another host using Dovecot.
>>
>> Everything has gone well, until I have tried to access some test mails
>> via POP.
>>
>> The error message I am getting is
>>
>> Feb 14 03:03:57 wpc1273 pop3(simonw at orion-w-t.co.uk): lstat
>> (/home/dovecot/users/orion-w-t.co.uk/simonw/cur) failed: Permission
>> denied
>> Feb 14 03:03:57 wpc1273 pop3(simonw at orion-w-t.co.uk): Couldn't open
>> INBOX: Internal error occured. Refer to server log for more
>> information. [2005-02-14 03:03:57]
>>
>> The file permissions are
>>
>>
>> drwx------  2 dovecot dovecot 4096 Feb 13 23:24 cur
>> drwx------  2 dovecot dovecot 4096 Feb 14 02:53 new
>> drwx------  2 dovecot dovecot 4096 Feb 14 02:53 tmp
>>
>> The UID/GID I am using is 1001, and the orion-w-t.co.uk/simonw
>> directories are owned by that uid/gid.
>>
>> Can anyone provide advice on what I have to do to get POP, and
>> eventually IMAP working?
>>
>> Many thanks
>>
>> Simon
>>
>>
>>
>> --
>> Simon Windsor
>>
>> Eml: simon.windsor at cornfield.org.uk
>> Tel: 01454 617689
>> Mob: 07960 321599
>>
>
>
>                -- The Last Song of Sirit Byar
>

--
Simon Windsor
Eml: simon.windsor at cornfield.org.uk
Tel: 01454 617689
Mob: 07960 321599




More information about the dovecot mailing list