[Dovecot] Problem Deleting IMAP Folders
Hello, In my configuration I have
mail_location = maildir:/Mail/frank.gr/%n:INDEX=/Mail/frank.gr/ __Indexes/%u
I can create new folders in an IMAP session, but when I try to delete
I get permission denied.
From the LOG
Sep 10 13:20:06 IMAP(stuart): Error: unlink_directory(/Mail/frank.gr/ __Indexes/stuart/.TEST) failed: Permission denied
ls -ald /Mail/frank.gr/__Indexes/stuart/.TEST drwx------ 2 mail mem 4096 2009-09-10 13:20 /Mail/frank.gr/__Indexes/ stuart/.TEST/
ls -al /Mail/frank.gr/__Indexes/stuart/.TEST total 12 drwx------ 2 mail mem 4096 2009-09-10 13:20 ./ drwx------ 4 mail mem 4096 2009-09-10 13:20 ../ -rw------- 1 mail mem 156 2009-09-10 13:20 dovecot.index.log
It looks like dovecot is trying to unlink the INDEX directory without
first deleting the index log file.
Anyone else experienced this problem ?
-- Stuart Gall
All of your mail are belong to us
On Thu, 2009-09-10 at 13:45 +0300, Stuart Gall wrote:
Sep 10 13:20:06 IMAP(stuart): Error: unlink_directory(/Mail/frank.gr/ __Indexes/stuart/.TEST) failed: Permission denied
What Dovecot version? What OS do you use? Do you have SELinux or something similar enabled? See if this patch logs that unlinking .log file fails: http://hg.dovecot.org/dovecot-1.2/rev/58630516a9d4
Also are your imap processes really running as "mail" user?
Hello Timo, Ah Yes sorry for being a bit obtuse
On 10 Sep 2009, at 20:54, Timo Sirainen wrote:
On Thu, 2009-09-10 at 13:45 +0300, Stuart Gall wrote:
Sep 10 13:20:06 IMAP(stuart): Error: unlink_directory(/Mail/frank.gr/ __Indexes/stuart/.TEST) failed: Permission denied
What Dovecot version? 1.2.4
What OS do you use? Mandriva 2009.1
Do you have SELinux or something similar enabled?
No.
See if this patch logs that unlinking .log file fails: http://hg.dovecot.org/dovecot-1.2/rev/58630516a9d4
Also are your imap processes really running as "mail" user? Yes. Ill fix that. And now it works!!!!
So the problem only seems to exist when dovecot processes are running
as the mail user.
-- Stuart Gall
All of your mail are belong to us
-- Stuart Gall
All of your mail are belong to us
participants (2)
-
Stuart Gall
-
Timo Sirainen