[Dovecot] Permission lookup failed with imap
Hi all,
I'm still trying to troubleshoot my problem with dovecot-2.0.11 and creating "mail/mail" directories for a reason unknown to me, so I enabled mail_debug. It's now printing this:
May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using permissions from /home/gdadmin/mail: mode=0755 gid=-1 May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Permission lookup failed from /home/gdadmin/mail/mail/INBOX. Trash
That file (INBOX.Trash) does exist at that location and is readable. It prints that line three times for each of INBOX.Sent, INBOX.Trash, and INBOX.Drafts.
Also notice that it is creating /home/user/mail/mail. My mail_location is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really confused.
I really hope someone has some ideas! Thanks so much, Best, Alex
On Sun, 2011-05-15 at 21:47 -0400, Alex wrote:
I'm still trying to troubleshoot my problem with dovecot-2.0.11 and creating "mail/mail" directories for a reason unknown to me, so I enabled mail_debug. It's now printing this:
May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using permissions from /home/gdadmin/mail: mode=0755 gid=-1 May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Permission lookup failed from /home/gdadmin/mail/mail/INBOX. Trash
That file (INBOX.Trash) does exist at that location and is readable. It prints that line three times for each of INBOX.Sent, INBOX.Trash, and INBOX.Drafts.
Also notice that it is creating /home/user/mail/mail. My mail_location is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really confused.
Your client probably has set a "mail/" namespace prefix. Either remove that or add a namespace to make both work: http://wiki2.dovecot.org/Namespaces
Also I don't understand why you would have stuff like INBOX.Sent. Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent.
Hi,
I'm still trying to troubleshoot my problem with dovecot-2.0.11 and creating "mail/mail" directories for a reason unknown to me, so I enabled mail_debug. It's now printing this:
May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Using permissions from /home/gdadmin/mail: mode=0755 gid=-1 May 15 21:39:33 mail dovecot: imap(gdadmin): Debug: Namespace : Permission lookup failed from /home/gdadmin/mail/mail/INBOX. Trash
That file (INBOX.Trash) does exist at that location and is readable. It prints that line three times for each of INBOX.Sent, INBOX.Trash, and INBOX.Drafts.
Also notice that it is creating /home/user/mail/mail. My mail_location is set to "mbox:~/mail:INBOX=/var/spool/mail/%u", so I'm really confused.
Your client probably has set a "mail/" namespace prefix. Either remove that or add a namespace to make both work: http://wiki2.dovecot.org/Namespaces
Also I don't understand why you would have stuff like INBOX.Sent. Usually it would be called just "Sent", i.e. /home/gdadmin/mail/Sent.
Ah, yes, that must be it. This was using squirrelmail as the mail client, and apparently I didn't change the namespace there after the migration. I'll try and do that now.
For the INBOX.* files, I believe squirrelmail was also configured to adjust for that.
If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part?
Thanks, Alex
On Mon, 2011-05-16 at 10:24 -0400, Alex wrote:
If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part?
Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed..
Hi,
If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part?
Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed..
I think that might be a better option for my users. Is there a way to automatically subscribe to all folders?
Thanks again, Alex
On Mon, 2011-05-16 at 12:45 -0400, Alex wrote:
If I delete the .subscription files for all users, will dovecot automatically rebuild them, so I can create a sed script to rename all the INBOX.* files to remove the INBOX. part?
Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed..
I think that might be a better option for my users. Is there a way to automatically subscribe to all folders?
Not easily. You could write a script using "doveadm mailbox list" output and running "doveadm mailbox subscribe" to all of them.
Hi,
Subscriptions are managed by users. If you delete .subscriptions file, then all mailboxes are unsubscribed. There's not really any point in using subscriptions at all if all mailboxes are subscribed..
I think that might be a better option for my users. Is there a way to automatically subscribe to all folders?
Not easily. You could write a script using "doveadm mailbox list" output and running "doveadm mailbox subscribe" to all of them.
Thank you again for all your help.
Best, Alex
participants (2)
-
Alex
-
Timo Sirainen