[Dovecot] New admin, not much success

Chuck McManis chuck.mcmanis at gmail.com
Wed Jun 16 18:28:01 EEST 2010


On Wed, Jun 16, 2010 at 6:35 AM, Pascal Volk <
user+dovecot at localhost.localdomain.org<user%2Bdovecot at localhost.localdomain.org>
> wrote:

> On 06/16/2010 07:26 AM Chuck McManis wrote:
> > …
> > I've got qmail delivering into a file named 'Mailbox' in user's home
> > directories.
>                                                ^^^^^^^
> > …
> > So, I can't get dovecot to work at all. In an unusual turn about I got
> the
> > SSL stuff working but not the mailbox handling. I'm running 2.0beta6
> >
> > Output from dovecot -n
> >
> ------------------------------------------------------------------------------------
> > # 2.0.beta6: /usr/local/etc/dovecot/dovecot.conf
> > # OS: FreeBSD 8.0-RELEASE-p2 i386  nfs
> > auth_debug = yes
> > auth_verbose = yes
> > default_internal_user = nobody
> > default_login_user = nobody
> > listen = *
> > mail_full_filesystem_access = yes
> > mail_location = mbox:/home/%u/:INBOX=/home/%u/
>                             ^^^^^             ^^^^^^?
> > passdb {
> >   driver = pam
> > }
> > protocols = pop3
> > service pop3-login {
> >   inet_listener pop3s {
> >     port = 995
> >     ssl = yes
> >   }
> > }
> > service pop3 {
> >   process_limit = 1024
> > }
> > ssl_cert = </etc/ssl/certs/dovecot.pem
> > ssl_key = </etc/ssl/private/dovecot.pem
> > userdb {
> >   driver = passwd
> > }
> > -----------------------------------------------------------------------
> >
> > A typical failure looks like this in maillog:
> > Jun 15 22:19:20 eeebox dovecot: master: Dovecot v2.0.beta6 starting up
> > Jun 15 22:20:29 eeebox dovecot: pop3-login: Login: user=<cmcmanis>,
> > method=PLAIN, rip=66.125.189.27, lip=66.125.189.30, mpid=78871, TLS
> > Jun 15 22:20:29 eeebox dovecot: pop3(cmcmanis): Error: Opening INBOX
> failed:
> > Mailbox isn't selectable
> > Jun 15 22:20:29 eeebox dovecot: pop3(cmcmanis): Error: Couldn't open
> INBOX:
> > Mailbox isn't selectable
> > Jun 15 22:20:29 eeebox dovecot: pop3(cmcmanis): Couldn't open INBOX
> top=0/0,
> > retr=0/0, del=0/0, size=0
> >
> > --------------------------------------------------------------
> >
> > Home directories are mounted via NFS and root doesn't have access, but if
> > dovecot accesses the Mailbox as the user it should work fine.
> >
> > I'm about ready to start hacking in additional logging into
> mail-storage.c
> > to figure out what "mailbox isn't selectable" means.
>
>
> what happens when you set:
>    mail_location = mbox:/home/%u/Mailbox:INBOX=/home/%u/Mailbox
> or:
>    mail_location = mbox:~/Mailbox:INBOX=~/Mailbox
>

If I set the mailbox location to point to the file, I get another error
about how the root directory can't be a file. The exact error is:
Jun 16 08:21:57 eeebox dovecot: master: Dovecot v2.0.beta6 starting up
Jun 16 08:22:07 eeebox dovecot: pop3-login: Login: user=<cmcmanis>,
method=PLAIN, rip=66.125.189.27, lip=66.125.189.30, mpid=80225, TLS
Jun 16 08:22:07 eeebox dovecot: pop3(cmcmanis): Error: user cmcmanis:
Initialization failed: Initializing mail storage from mail_location setting
failed: mbox: mbox root directory can't be a file: /home/cmcmanis/Mailbox (
http://wiki.dovecot.org/MailLocation/Mbox)
Jun 16 08:22:07 eeebox dovecot: pop3(cmcmanis): Error: Invalid user
settings. Refer to server log for more information.

Now it strikes me that this message indicates that Dovecot is confused about
how mail is delivered on my system and is looking for a Maildir
implementation when I"m using single files. And yet I can't find a variable
in any of the various configuration files which can set for sure the mbox
"mode".

Dovecot should have logged, where it is looking for mails. If you can't
> find such information in your logs, set also mail_debug = yes in your
> conf.d/10-logging.conf
>

I have logging-conf set to both

auth_debug = yes
auth_verbose = yes

But it doesn't say anything else than what you see above.
--Chuck


>
> Regards,
> Pascal
> --
> The trapper recommends today: deadbeef.1016715 at localdomain.org
>


More information about the dovecot mailing list