Error: User initialization failed
OK, I obviously forgot something when setting up new user accounts (which I did via postfix admin to add them to the MySQL database):
dovecot: lda(chance@example.com): Error: User initialization failed: Namespace '': Ambiguous mail location setting, don't know what to do with it: /usr/local/virtual/chance@ example.com (try prefixing it with mbox: or milder:)
I have lots of mysql users defined and working, but do I need to manually create the mail store for new ones?
(Sorry, it’s been quite a long time since I had to add accounts).
-- You start a conversation you can't even finish it You're talkin' a lot, but you're not sayin' anything When I have nothing to say, my lips are sealed Say something once, why say it again?
On Aug 14, 2015, at 8:51 AM, @lbutlr kremels@kreme.com wrote:
dovecot: lda(chance@example.com): Error: User initialization failed: Namespace '': Ambiguous mail location setting, don't know what to do with it: /usr/local/virtual/chance@ example.com (try prefixing it with mbox: or milder:)
Here’s the dovecot -n output
$ dovecot -n
# 2.2.18: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.2-RELEASE-p3 i386
auth_failure_delay = 5 secs
auth_mechanisms = PLAIN LOGIN
default_process_limit = 200
disable_plaintext_auth = no
first_valid_uid = 89
login_log_format_elements = user=<%u> %r %m %c
mail_location = maildir:~/Maildir
mail_max_userip_connections = 90
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox NotJunk {
auto = subscribe
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = imap
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
}
service imap-login {
inet_listener imaps {
port = 993
ssl = yes
}
}
ssl_cert =
-- You start a conversation you can't even finish it You're talkin' a lot, but you're not sayin' anything When I have nothing to say, my lips are sealed Say something once, why say it again?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 14 Aug 2015, @lbutlr wrote:
On Aug 14, 2015, at 8:51 AM, @lbutlr kremels@kreme.com wrote:
dovecot: lda(chance@example.com): Error: User initialization failed: Namespace '': Ambiguous mail location setting, don't know what to do with it: /usr/local/virtual/chance@ example.com (try prefixing it with mbox: or milder:)
Here’s the dovecot -n output
$ dovecot -n # 2.2.18: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 9.2-RELEASE-p3 i386 auth_failure_delay = 5 secs auth_mechanisms = PLAIN LOGIN default_process_limit = 200 disable_plaintext_auth = no first_valid_uid = 89 login_log_format_elements = user=<%u> %r %m %c mail_location = maildir:~/Maildir
userdb { args = /etc/dovecot/dovecot-sql.conf.ext default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u mail=maildir:/usr/local/virtual/%u
looks like this mail_location is confusing Dovecot. If you wanted to specify "home" here, be aware that home and mail location should (aka must) be separate directories.
driver = sql }
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVdGFG3z1H7kL/d9rAQKL3ggAiRRLG51ri5yRZdhRW+gW3A4Q9vnxH5Pp pOQV/VAI2gh/T0giNfUJ/K2OnMbEPJHBySFCBgcAYdKxJiSb30RO9alnu18/5q/3 XdpXAvpR9obzXaWTb6rGF8SII7VV5tmG953EEnzuqLOyQG6I/LbFznP+U9Wmenw0 +lDYbYbavcyeQBAz5IkRs20AeK6a6nK0JVClR2yvMwmm8YuYjG7UiUmk95p4rgme qKdypCaDPsq5xJjWEYtodAVimVTEjhsbdtSGruBPycIwSP501QpGJMGlGvJMhfd6 ObafIqfyWUeVelTC9NU89e+V9PwB/i5E6ZZE2xjrzMgCgnkQWpgcAA== =vvM8 -----END PGP SIGNATURE-----
On 17 Aug 2015, at 00:54, Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
userdb { args = /etc/dovecot/dovecot-sql.conf.ext default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u mail=maildir:/usr/local/virtual/%u
looks like this mail_location is confusing Dovecot. If you wanted to specify "home" here, be aware that home and mail location should (aka must) be separate directories.
No, the problem is that dovecot does not create the root directory for virtual users.
Virtual users do not have a “home” directory.
So, when adding a virtual user I have to remember to go to /usr/local/virtual and maildirmake user@domain.tld for each user.
-- I listen to the wind, to the wind of my soul
participants (2)
-
@lbutlr
-
Steffen Kaiser