On Wed, 2012-06-27 at 17:30 +0300, Timo Sirainen wrote:
> On 27.6.2012, at 0.19, Jonathan Ryshpan wrote:
> 
> >> If you are working with 2.0 or later dovecot, you should be at
> >> http://wiki2.dovecot.org/Namespaces
> > 
> > I am using 2.1.7 .  I surmise from this Namespace page that the form:
> >     namespace <type> {
> > where <type> is one of "public", "private", or "shared" creates an
> > unnamed namespace of type <type> while the form:
> >     namespace <name> {
> > where <name> is none of "public", "private", or "shared", creates a
> > namespace with the name <name> and the default type (unspecified on this
> > page, but probably private).  
> 
> I don't see any of that in the wiki2 page. Maybe you were looking at wiki1 
> page.

Quite right; this comes from a reading of pages in both wiki1 and wiki2.
I now surmise that this isn't a good idea since wiki1 describes v1.x
and wiki2 describes v2.x, which have different syntaxes (syntaces?).  Is
all this correct?

> > The namespace can be given the type
> > desired by an (undocumented) namespace setting:
> >     namespace inbox (
> >             type = <type>
> > Is this correct?
> 
> It's mentioned in examples :) Yeah, could be more clearly mentioned in
> the wiki page too. Of course it's already in the
> example-config/conf.d/10-mail.conf file. The <name> part in namespace
> <name> { } should also be in the wiki page, although that's not
> namespace-specific thing at all, but works everywhere in dovecot.conf.
> It simply gives a (human-readable) name for the namespace within the
> configuration, it doesn't actually do anything.

It looks like it does *something*, since 15-mailboxes.conf contains the lines:
        # NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
        namespace inbox {

I am continuing to attempt to set up dovecot to keep its mail store in maildir
form while receiving it from an mbox, but without success.  Dovecot reports the
error that it can't create the file ~/mail/.imap/INBOX (and also that it can't
chown it to user mail, not surprising since it doesn't exist).  This seems 
reasonable, since jonrysh (that is me) is not a member of the group mail.  What
should be done next?  Should I join the group mail?  It seems that this should
not be necessary in general.  The mail store is in ~/maildir, so what is the 
function of the mbox ~/mail?  

Dovecot must be misconfigured, but it's not clear to a newbie like myself 
what's wrong.  Any advice would be appreciated.  I have attached an extract
from maillog showing the errors (dovecot.log) dovecot reports (dovecot.log),
and the output of dovecot -n (dovecot-n).

Thanks for your help - jon


Jun 27 16:05:26 amito dovecot: master: Dovecot v2.1.7 starting up (core dumps disabled)
Jun 27 16:05:50 amito dovecot: imap-login: Login: user=<jonrysh>, method=PLAIN, rip=::1, lip=::1, mpid=14464, TLS, session=<jF+WQXzDNgAAAAAAAAAAAAAAAAAAAAAB>
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Debug: Effective uid=1000, gid=1000, home=/home/jonrysh
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Debug: Namespace data: type=private, prefix=, sep=., inbox=no, hidden=no, list=yes, subscriptions=yes location=maildir:~/Dovecot
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Debug: maildir++: root=/home/jonrysh/Dovecot, index=, control=, inbox=, alt=
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Debug: Namespace inbox: type=private, prefix=#mbox., sep=., inbox=yes, hidden=yes, list=no, subscriptions=yes location=mbox:~/mail:INBOX=/var/spool/mail/jonrysh
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Debug: fs: root=/home/jonrysh/mail, index=, control=, inbox=/var/spool/mail/jonrysh, alt=
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Error: chown(/home/jonrysh/mail/.imap/INBOX, group=12(mail)) failed: Operation not permitted (egid=1000(jonrysh), group based on /var/spool/mail/jonrysh - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
Jun 27 16:05:50 amito dovecot: imap(jonrysh): Error: mkdir(/home/jonrysh/mail/.imap/INBOX) failed: Operation not permitted
Jun 27 16:05:57 amito dovecot: imap-login: Login: user=<jonrysh>, method=PLAIN, rip=::1, lip=::1, mpid=14477, TLS, session=<wb4GQnzDPwAAAAAAAAAAAAAAAAAAAAAB>
Jun 27 16:05:57 amito dovecot: imap(jonrysh): Debug: Effective uid=1000, gid=1000, home=/home/jonrysh
Jun 27 16:05:57 amito dovecot: imap(jonrysh): Debug: Namespace data: type=private, prefix=, sep=., inbox=no, hidden=no, list=yes, subscriptions=yes location=maildir:~/Dovecot
Jun 27 16:05:57 amito dovecot: imap(jonrysh): Debug: maildir++: root=/home/jonrysh/Dovecot, index=, control=, inbox=, alt=
Jun 27 16:05:57 amito dovecot: imap(jonrysh): Debug: Namespace inbox: type=private, prefix=#mbox., sep=., inbox=yes, hidden=yes, list=no, subscriptions=yes location=mbox:~/mail:INBOX=/var/spool/mail/jonrysh
Jun 27 16:05:57 amito dovecot: imap(jonrysh): Debug: fs: root=/home/jonrysh/mail, index=, control=, inbox=/var/spool/mail/jonrysh, alt=
Jun 27 16:06:07 amito dovecot: imap(jonrysh): Error: chown(/home/jonrysh/mail/.imap/INBOX, group=12(mail)) failed: Operation not permitted (egid=1000(jonrysh), group based on /var/spool/mail/jonrysh - see http://wiki2.dovecot.org/Errors/ChgrpNoPerm)
Jun 27 16:06:07 amito dovecot: imap(jonrysh): Error: mkdir(/home/jonrysh/mail/.imap/INBOX) failed: Operation not permitted
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.4.3-1.fc17.x86_64 x86_64 Fedora release 17 (Beefy Miracle) 
mail_debug = yes
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character 
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy 
include variables body enotify environment mailbox date ihave
mbox_write_locks = fcntl
namespace data {
  location = maildir:~/Dovecot
  prefix = 
  separator = .
}
namespace inbox {
  hidden = yes
  inbox = yes
  list = no
  location = mbox:~/mail:INBOX=/var/spool/mail/%u
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = "#mbox."
  separator = .
  type = private
}
passdb {
  driver = pam
}
plugin {
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}

Reply via email to