[Dovecot] @2.0, autocreate fails. "Permission lookup failed"?
i'm trying to setup autocreate in 2.0.
in mail.conf,
...
namespace private {
separator = /
prefix = ""
inbox = yes
hidden = no
list = yes
subscriptions = yes
}
namespace public {
separator = /
prefix = "Public/"
inbox = no
hidden = no
location = maildir:/data/mail/Domains/%d/Public
}
namespace shared {
separator = /
prefix = "Shared/"
inbox = no
hidden = no
location = maildir:/data/mail/Domains/%d/Shared
}
...
and in plugin.conf,
...
plugin {
...
autocreate = Trash
autocreate2 = Spam
autocreate3 = Drafts
autocreate4 = Templates
autosubscribe = Trash
autosubscribe2 = Spam
autosubscribe3 = Drafts
autosubscribe4 = Templates
autosubscribe5 = INBOX
...
...
with similar confs in v1.2, autocreate works as expected, creating all subdirs correctly.
in v2.0, @ imap login (with TBird, atm), only Trash folder is created, but nothing else,
ls -1
cur/
dovecot.index.log
dovecot.mailbox.log
dovecot-uidlist
dovecot-uidvalidity
dovecot-uidvalidity.4ad16699
new/
subscriptions
tmp/
--> Trash/
logs show,
Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Effective uid=1001, gid=1000, home=/data/mail/Domains/my.domain.com/Accounts/testuser Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: fs: root=/data/mail/Domains/my.domain.com/Accounts/testuser, index=, control=, inbox=/data/mail/Domains/my.domain.com/Accounts/testuser Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace: type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Public, index=, control=, inbox= Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace Public/: Permission lookup failed from /data/mail/Domains/my.domain.com/Public Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace Public/: Using permissions from /data/mail/Domains/my.domain.com/Public: mode=0700 gid=-1 Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace: type=shared, prefix=Shared/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Shared, index=, control=, inbox= Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Permission lookup failed from /data/mail/Domains/my.domain.com/Accounts/testuser/Trash Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testuser: mode=0700 gid=-1 Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Permission lookup failed from /data/mail/Domains/my.domain.com/Accounts/testuser/Trash Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testuser: mode=0700 gid=-1 Oct 10 22:01:20 imap-login: Info: Login: user=testuser@my.domain.com, method=PLAIN, rip=192.168.1.16, lip=192.168.1.22, TLS Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: Effective uid=1001, gid=1000, home=/data/mail/Domains/my.domain.com/Accounts/testuser Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: fs: root=/data/mail/Domains/my.domain.com/Accounts/testuser, index=, control=, inbox=/data/mail/Domains/my.domain.com/Accounts/testuser Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: Namespace: type=public, prefix=Public/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Public, index=, control=, inbox= Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: Namespace: type=shared, prefix=Shared/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes Oct 10 22:01:20 IMAP(testuser@my.domain.com): Info: maildir++: root=/data/mail/Domains/my.domain.com/Shared, index=, control=, inbox=
not clear what i've missed ...what's the "Permission lookup failed" about in 2.0, but not 1.2?
On Sat, 2009-10-10 at 22:06 -0700, PGNet Dev wrote:
with similar confs in v1.2, autocreate works as expected, creating all subdirs correctly.
in v2.0, @ imap login (with TBird, atm), only Trash folder is created, but nothing else,
I think you're missing autocreate from mail_plugins setting. And Trash is probably created by your client.
Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Permission lookup failed from /data/mail/Domains/my.domain.com/Accounts/testuser/Trash
This message could perhaps be improved.. It anyway means that Dovecot wanted to find out what permissions to use for Trash mailbox, but the Trash directory didn't yet exist so..
Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testuser: mode=0700 gid=-1
It fallbacked to using the default permissions from "testuser" directory.
hi,
On Mon, Oct 12, 2009 at 12:49 PM, Timo Sirainen tss@iki.fi wrote:
I think you're missing autocreate from mail_plugins setting.
Right place to look, it turns out.
Turns out that the encoding on imap.conf had been -- somoehow -- switched to Windows Latin. Odd, as I have no Win boxes around. Anyway, no errors were fired, but something in the line-endings difference caused either the mail_plugins setting, or the whole imap.conf file, to not parse correctly.
Switched back to UTF encoding, & all's well.
And Trash is probably created by your client.
You're correct. Didn't realize that it did so ...
Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Permission lookup failed from /data/mail/Domains/my.domain.com/Accounts/testuser/Trash
This message could perhaps be improved.. It anyway means that Dovecot wanted to find out what permissions to use for Trash mailbox, but the Trash directory didn't yet exist so..
Oct 10 22:01:11 IMAP(testuser@my.domain.com): Info: Namespace : Using permissions from /data/mail/Domains/my.domain.com/Accounts/testuser: mode=0700 gid=-1
It fallbacked to using the default permissions from "testuser" directory.
Thanks for clearing that up. Still, the Trash directory _did_ exist -- created, as you pointed out, by my client. Once I get stuff cleaned up here, I'll check all this again ...
Thanks.
participants (2)
-
PGNet Dev
-
Timo Sirainen