[Dovecot] Help, problems with permissions
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@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@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@cornfield.org.uk Tel: 01454 617689 Mob: 07960 321599
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@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@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@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@cornfield.org.uk Tel: 01454 617689 Mob: 07960 321599
-- Amelia A. Lewis amyzing {at} talsever.com Songs and fame are vain endeavor-- only two things fail us never, only two things last forever-- sorrow and love, sorrow and love .... -- The Last Song of Sirit Byar
On Mon, 14 Feb 2005, Simon Windsor wrote:
The error message I am getting is
Feb 14 03:03:57 wpc1273 pop3(simonw@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@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?
You'll need to have your pop3 daemon running as uid dovecot.
-- Charlie
On Mon, 14 Feb 2005, Charlie Brady wrote:
On Mon, 14 Feb 2005, Simon Windsor wrote:
Can anyone provide advice on what I have to do to get POP, and eventually IMAP working?
You'll need to have your pop3 daemon running as uid dovecot.
Or have the maildir owned by the user that the pop3 daemon is running as. Which solution is correct for you will depend on whether you are using a virtual user setup or not.
-- Charlie
Hi
Thank you.
I have found the problem
/home/dovecot should be 755, and not 700
Thanks for all your help
Simon
On Mon, 2005-02-14 at 13:52 -0500, Charlie Brady wrote:
On Mon, 14 Feb 2005, Charlie Brady wrote:
On Mon, 14 Feb 2005, Simon Windsor wrote:
Can anyone provide advice on what I have to do to get POP, and eventually IMAP working?
You'll need to have your pop3 daemon running as uid dovecot.
Or have the maildir owned by the user that the pop3 daemon is running as. Which solution is correct for you will depend on whether you are using a virtual user setup or not.
-- Charlie
-- Simon Windsor
Eml: simon.windsor@cornfield.org.uk Tel: 01454 617689 Mob: 07960 321599
participants (3)
-
Amelia A Lewis
-
Charlie Brady
-
Simon Windsor