Dovecot doesn't see user home dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dovecot (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Dovecot errors in log:
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Error: chdir(/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: Effective uid=5000, gid=5000, home=/home/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: Home dir not found: /home/vmail/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=no, hidden=no, list=yes, subscriptions=yes location=
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: fs: root=/home/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: Namespace : /home/vmail/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Debug: Namespace : Using permissions from /home/vmail/
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Error: user <email address hidden>: Initialization failed: Namespace '': mkdir(/
00(<getgrgid() error>))
Feb 8 10:25:26 tesla dovecot: imap(<email address hidden>): Error: Invalid user settings. Refer to server log for more information.
Home dir /home/vmail/
Dovecot config below:
# 2.2.9: /etc/dovecot/
# OS: Linux 3.13.0-55-generic x86_64 Ubuntu 14.04.3 LTS
auth_debug = yes
auth_debug_
auth_mechanisms = login digest-md5 cram-md5
auth_verbose = yes
first_valid_gid = 5000
first_valid_uid = 5000
last_valid_gid = 5000
last_valid_uid = 5000
mail_chroot = /var/tmp/
mail_debug = yes
mail_home = /home/vmail/%d/%n
mail_location = maildir:
mailbox_list_index = yes
namespace inbox {
location =
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 =
}
passdb {
args = scheme=CRYPT username_format=%u /etc/dovecot/users
driver = passwd-file
}
plugin {
quota_rule = *:storage=100M
}
protocols = " imap lmtp pop3"
service auth-worker {
user = $default_
}
service auth {
unix_listener /var/spool/
group = postfix
mode = 0666
user = postfix
}
}
service imap-login {
inet_listener imap {
port = 0
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
unix_listener /var/spool/
group = postfix
mode = 0600
user = postfix
}
}
service pop3-login {
inet_listener pop3 {
port = 0
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
ssl_cert = </etc/ssl/
ssl_key = </etc/ssl/
ssl_protocols = !SSLv2 !SSLv3
userdb {
args = username_format=%u /etc/dovecot/users
driver = passwd-file
}
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: dovecot-imapd 1:2.2.9-1ubuntu2.1
ProcVersionSign
Uname: Linux 3.13.0-55-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Mon Feb 8 10:26:45 2016
SourcePackage: dovecot
UpgradeStatus: No upgrade log present (probably fresh install)
My mistake. Disabling mail_chroot option resolved problem.