Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:LAY OUT=maildir++
[3] May 13 22:41:32 mail04 dovecot: imap-login: Login: user=<test>, method=PLAIN, rip=192.168.10.219, lip=192.168.10.44, mpid=1138, TLS, session=<Gk4K8cqIkdHAqArb> May 13 22:41:32 mail04 dovecot: imap(test): Debug: Loading modules from directory: /usr/lib64/dovecot May 13 22:41:32 mail04 dovecot: imap(test): Debug: Module loaded: /usr/lib64/dovecot/lib15_notify_plugin.so May 13 22:41:32 mail04 dovecot: imap(test): Debug: Module loaded: /usr/lib64/dovecot/lib20_listescape_plugin.so May 13 22:41:32 mail04 dovecot: imap(test): Debug: Added userdb setting: mail=mdbox:~/mdbox:INBOX=/var/spool/mail/test:CONTROL=~/mail/control:IND EX=/var/dovecot/test/index:LAYOUT=maildir++ May 13 22:41:32 mail04 dovecot: imap(test): Debug: Effective uid=8267, gid=231, home=/home/popusers/test May 13 22:41:32 mail04 dovecot: imap(test): Debug: Namespace inbox: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mdbox:INBOX=/var/spool/mail/test:CONTROL=~/mail/control :INDEX=/var/dovecot/test/index:LAYOUT=maildir++ May 13 22:41:32 mail04 dovecot: imap(test): Error: Namespace '': Mailbox list driver maildir++: maildir_name not supported by this driver May 13 22:41:32 mail04 dovecot: imap(test): Namespace '': Mailbox list driver maildir++: maildir_name not supported by this driver in=0 out=378
On 14 May 2019 00:05 Marc Roos via dovecot <dovecot@dovecot.org> wrote:
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:LAY OUT=maildir++
Are you intentionally mixing mbox and mdbox? You see that [0] has mbox, and [2] has mdbox.
Aki
Yes, I have still inbox mbox format because I have sendmail delivering there. I trying to migrate/convert step by step, with least possible impact for users.
-----Original Message-----
From: Aki Tuomi
Sent: dinsdag 14 mei 2019 6:19
To: Marc Roos; Marc Roos via dovecot
Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++:
maildir_name not supported by this driver
On 14 May 2019 00:05 Marc Roos via dovecot <dovecot@dovecot.org> wrote:
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var /d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX =/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:L AY OUT=maildir++
Are you intentionally mixing mbox and mdbox? You see that [0] has mbox, and [2] has mdbox.
Aki
mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:LAYOUT=maildir++
You can't use LAYOUT=maildir++ here.
Aki
On 14.5.2019 10.38, Marc Roos wrote:
Yes, I have still inbox mbox format because I have sendmail delivering there. I trying to migrate/convert step by step, with least possible impact for users.
-----Original Message----- From: Aki Tuomi
Sent: dinsdag 14 mei 2019 6:19 To: Marc Roos; Marc Roos via dovecot Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driverOn 14 May 2019 00:05 Marc Roos via dovecot <dovecot@dovecot.org> wrote:
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var /d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX =/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:L AY OUT=maildir++
Are you intentionally mixing mbox and mdbox? You see that [0] has mbox, and [2] has mdbox.
Aki
With this setting, all folders are empty, I guess understandable, because the mdbox has its own indexes stored locally with it. Does not explain though why inbox is empty.
[@ dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:INDEX=/var/dovecot/%u/index
With this setting (withouth the INDEX set), mdbox folders are accessible and not empty, but I get of course the error on the index of mbox
[@ dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u
May 14 12:40:41 mail04 dovecot: imap(test): Debug: INBOX: Mailbox opened because: SELECT May 14 12:40:41 mail04 dovecot: imap(test): Error: open() failed with file /var/spool/mail/test/dovecot.index.log: Not a directory May 14 12:40:41 mail04 dovecot: imap(test): Debug: INBOX/test2: Mailbox opened because: SELECT
Is there a possibility of specifying only a index location for the inbox? It looks like if you add INDEX it is being used for everything.
-----Original Message----- From: Aki Tuomi Sent: dinsdag 14 mei 2019 9:43 To: Marc Roos; dovecot Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:LAY OUT=maildir++
You can't use LAYOUT=maildir++ here.
Aki
On 14.5.2019 10.38, Marc Roos wrote:
Yes, I have still inbox mbox format because I have sendmail delivering
there. I trying to migrate/convert step by step, with least possible impact for users.
-----Original Message----- From: Aki Tuomi Sent: dinsdag 14 mei 2019 6:19 To: Marc Roos; Marc Roos via dovecot Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++:
maildir_name not supported by this driver
On 14 May 2019 00:05 Marc Roos via dovecot <dovecot@dovecot.org> wrote:
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in
a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location =
mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var
/d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for
dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX
=/
var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:L
AY OUT=maildir++
Are you intentionally mixing mbox and mdbox? You see that [0] has mbox, and [2] has mdbox.
Aki
Maybe you should consider migration instead of in-place upgrade to a system which uses e.g. dovecot-lda or lmtp to deliver mail so that INBOX can reside in same place with other folders?
Aki
On 14.5.2019 13.43, Marc Roos wrote:
With this setting, all folders are empty, I guess understandable, because the mdbox has its own indexes stored locally with it. Does not explain though why inbox is empty.
[@ dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:INDEX=/var/dovecot/%u/index
With this setting (withouth the INDEX set), mdbox folders are accessible and not empty, but I get of course the error on the index of mbox
[@ dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX=/ var/spool/mail/%u
May 14 12:40:41 mail04 dovecot: imap(test): Debug: INBOX: Mailbox opened because: SELECT May 14 12:40:41 mail04 dovecot: imap(test): Error: open() failed with file /var/spool/mail/test/dovecot.index.log: Not a directory May 14 12:40:41 mail04 dovecot: imap(test): Debug: INBOX/test2: Mailbox opened because: SELECT
Is there a possibility of specifying only a index location for the inbox? It looks like if you add INDEX it is being used for everything.
-----Original Message----- From: Aki Tuomi Sent: dinsdag 14 mei 2019 9:43 To: Marc Roos; dovecot Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
mdbox:~/mdbox:INBOX=/ var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:LAY OUT=maildir++
You can't use LAYOUT=maildir++ here.
Aki
On 14.5.2019 10.38, Marc Roos wrote:
Yes, I have still inbox mbox format because I have sendmail delivering there. I trying to migrate/convert step by step, with least possible impact for users.
-----Original Message----- From: Aki Tuomi Sent: dinsdag 14 mei 2019 6:19 To: Marc Roos; Marc Roos via dovecot Subject: Re: Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
On 14 May 2019 00:05 Marc Roos via dovecot <dovecot@dovecot.org> wrote:
I have this default configuration [0], when use the userdb_mail to point to the mdbox location, the inbox subfolders show differently in a firebird client. So I decided to copy the whole default mail_location into the userdb_mail configuration [2]. But then I get errors [3]. Should I change the namespace configuration here, how? My default namespaces are inbox and 4archives
[0] [@ ]# doveconf | grep mail_loc mail_location =
mbox:~/mail:INBOX=/var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var
/d ovecot/%u/index:LAYOUT=maildir++
[1] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox
[2] [@dovecot]# cat special-userdb test:x:8267:231:Account with special settings for
dovecot:/home/popusers/test:/bin/false:userdb_mail=mdbox:~/mdbox:INBOX
=/
var/spool/mail/%u:CONTROL=~/mail/control:INDEX=/var/dovecot/%u/index:L
AY OUT=maildir++
Are you intentionally mixing mbox and mdbox? You see that [0] has mbox, and [2] has mdbox.
Aki
participants (2)
-
Aki Tuomi
-
Marc Roos