On Tue, 13 Nov 2012, Hilko Bengen wrote:

Package: dovecot
Version: 1:2.1.7-4
Severity: serious

Dear Maintainer,

After an update from 1:2.1.7-2 to 1:2.1.7-4, I could not access my
mailboxes at ~/Maildir any more.

(This may be related to #644121.)


No I don't think so.  This on the other hand:

I noticed the following line in conf.d/10-mail.conf:

,----
| mail_location = mbox:~/mail:INBOX=/var/mail/%u
`----


From /usr/share/doc/dovecot-core/README.Debian (and NEWS.Debian)


* In conf.d/10-mail.conf, the default mail_location is set to
    mbox:~/mail:INBOX=/var/mail/%u
    This has to be set because Dovecots auto-detection of mailboxes fails
    when a user has no mail.  I tried to provide a reasonable default
    but advanced users will certainly want to change this.

    Related to this, you might see an error in the logs about dovecot not
    being able to chgrp certain files.  This is because the default user
    mailboxes in Debian belong to group mail which dovecot is not part of
    (nor should be.)  The Debian package has been patched so that the error
    will not be fatal but for a more permanent solution, see here:
    http://wiki2.dovecot.org/Errors/ChgrpNoPerm  for some discussion.  Or
    you can set mail_location (and the equivalent settings in your MDA) so
    that mailboxes are in the users home directory.


My git (etckeeper) repository shows that previously, mail_location had
been commented out. Commenting it out again fixes the problem for me.
(Is ~/Maildir the default value set at compile time?)


No but auto-detection worked because you already had mail. If you hadn't you would have run into #623440

I'm really stuck as to how to handle this. Debian policy demands /var/mail be owned by group mail. If I had left the status quo, all new users would have had the same problem you've faced. But fixing it for them causes problems for you.

I'm leaving this bug open in case you (or anyone else) have some solution but I really don't think anything more can be done.

--
Jaldhar H. Vyas <jald...@debian.org>


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to