Your message dated Mon, 22 Feb 2016 13:03:55 +0200
with message-id <[email protected]>
and subject line Re: dovecot: mount point check is broken at mailbox creation
has caused the Debian Bug report #697506,
regarding dovecot: mount point check is broken at mailbox creation
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
697506: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697506
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dovecot-core
Version: 1:2.1.7-6
Severity: important
Coin,
I just created a new account, and an informative mail was sent to the
new address. Unfortunately, it failed with the following message:
/var/log/mail.log:Jan 6 12:26:44 Orfeo dovecot: lda(alice): Error:
user alice: Initialization failed: Namespace '': Can't create mailbox
root dir /vmail/private/alice/Maildir: Mountpoint /vmail isn't mounted.
Mount it or remove it with doveadm mount remove
The "/vmail*" mount point was added by dovecot automatically at startup
and is listed as "online". The /vmail partition is properly mounted but
dovecot fails to see it. Delivery to existing mailboxes still works
correctly.
As a workaround, i added an ignore to this mount point.
Regards
-- Package-specific info:
dovecot configuration
---------------------
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.0
auth_cache_negative_ttl = 15 mins
auth_cache_size = 4 k
auth_mechanisms = plain login
auth_verbose = yes
auth_worker_max_count = 50
default_client_limit = 100
dict {
expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 5000
first_valid_uid = 5000
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_access_groups = vmail
mail_debug = yes
mail_gid = vmail
mail_location = maildir:~/Maildir
mail_plugins = " quota zlib fts fts_squat acl virtual expire"
mail_privileged_group = mail
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables body enotify
environment mailbox date ihave
namespace {
hidden = no
list = children
location = maildir:%%h/Maildir:INDEX=~/shared/%%u
prefix = "#Shared.%%u."
separator = .
subscriptions = no
type = shared
}
namespace {
hidden = no
list = children
location = maildir:/vmail/public/milkypond:INDEX=~/public/milkypond
prefix = "#MilkyPond."
separator = .
subscriptions = no
type = public
}
namespace {
hidden = no
list = children
location = virtual:~/virtual/:LAYOUT=maildir++
prefix = "#Virtual."
separator = .
subscriptions = no
type = private
}
namespace inbox {
hidden = no
inbox = yes
list = yes
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 =
separator = .
subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
plugin {
acl = vfile::cache_secs=300
acl_shared_dict = file:/vmail/db/shared-mailboxes.db
antispam_backend = spool2dir
antispam_signature = X-DSPAM-Signature
antispam_signature_missing = move
antispam_spam = Junk
antispam_spool2dir_notspam =
/var/spool/dovecot-antispam/%%020lu-%u-%%05lu.ham
antispam_spool2dir_spam =
/var/spool/dovecot-antispam/%%020lu-%u-%%05lu.spam
autocreate = Junk
expire = Junk
expire_dict = proxy::expire
fts = squat
fts_index_timeout = 120
fts_squat = partial=4 full=10
quota = maildir:User quota
quota_rule = *:storage=512M
recipient_delimiter = +
sieve = ~/sieve/active.sieve
sieve_default = /etc/dovecot/global-sieve/default.sieve
sieve_dir = ~/sieve/scripts
sieve_global_dir = /etc/dovecot/global-sieve/scripts
sieve_max_actions = 32
sieve_max_redirects = 4
sieve_max_script_size = 1M
sieve_quota_max_scripts = 64
sieve_quota_max_storage = 30M
}
postmaster_address = [email protected]
protocols = " imap sieve pop3"
quota_full_tempfail = yes
service anvil {
client_limit = 500
}
service auth-worker {
user = $default_internal_user
}
service auth {
client_limit = 300
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-userdb {
group = mail
mode = 0660
user = vmail
}
user = $default_internal_user
}
service dict {
unix_listener dict {
mode = 0600
user = vmail
}
}
service imap-login {
process_min_avail = 12
service_count = 1
vsz_limit = 64 M
}
service imap-postlogin {
executable = script-login /usr/local/sbin/srv_imap_post_login
}
service imap {
executable = imap imap-postlogin
process_limit = 128
vsz_limit = 512 M
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
service_count = 1
vsz_limit = 64 M
}
service managesieve {
process_limit = 32
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service pop3 {
process_limit = 32
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
ssl_parameters_regenerate = 1 days
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
driver = ldap
}
valid_chroot_dirs = /vmail
verbose_proctitle = yes
protocol lda {
mail_plugins = " quota zlib fts fts_squat acl virtual expire sieve"
}
protocol imap {
mail_max_userip_connections = 10
mail_plugins = " quota zlib fts fts_squat acl virtual expire
imap_quota imap_zlib imap_acl antispam autocreate"
}
protocol sieve {
mail_max_userip_connections = 10
}
protocol pop3 {
mail_max_userip_connections = 10
pop3_uidl_format = %08Xu%08Xv
}
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dovecot-core depends on:
ii adduser 3.113+nmu3
ii libbz2-1.0 1.0.6-4
ii libc6 2.13-37
ii libpam-runtime 1.1.3-7.1
ii libpam0g 1.1.3-7.1
ii libssl1.0.0 1.0.1c-4
ii openssl 1.0.1c-4
ii ucf 3.0025+nmu3
ii zlib1g 1:1.2.7.dfsg-13
dovecot-core recommends no packages.
Versions of packages dovecot-core suggests:
pn dovecot-gssapi <none>
ii dovecot-imapd 1:2.1.7-6
ii dovecot-ldap 1:2.1.7-6
pn dovecot-lmtpd <none>
ii dovecot-managesieved 1:2.1.7-6
pn dovecot-mysql <none>
pn dovecot-pgsql <none>
ii dovecot-pop3d 1:2.1.7-6
ii dovecot-sieve 1:2.1.7-6
pn dovecot-solr <none>
ii dovecot-sqlite 1:2.1.7-6
ii ntp 1:4.2.6.p5+dfsg-2
Versions of packages dovecot-core is related to:
pn dovecot-common <none>
pn dovecot-core <none>
pn dovecot-dbg <none>
pn dovecot-dev <none>
pn dovecot-gssapi <none>
ii dovecot-imapd 1:2.1.7-6
ii dovecot-ldap 1:2.1.7-6
pn dovecot-lmtpd <none>
ii dovecot-managesieved 1:2.1.7-6
pn dovecot-mysql <none>
pn dovecot-pgsql <none>
ii dovecot-pop3d 1:2.1.7-6
ii dovecot-sieve 1:2.1.7-6
ii dovecot-sqlite 1:2.1.7-6
-- no debconf information
--
Marc Dequènes
--- End Message ---
--- Begin Message ---
Version: 1:2.2.17-1
Hi,
On Sun, 06 Jan 2013 12:41:13 +0100 =?UTF-8?Q?Marc_Dequ=C3=A8nes_=28duck=29?=
<[email protected]> wrote:
> I just created a new account, and an informative mail was sent to the
> new address. Unfortunately, it failed with the following message:
> /var/log/mail.log:Jan 6 12:26:44 Orfeo dovecot: lda(alice): Error:
> user alice: Initialization failed: Namespace '': Can't create mailbox
> root dir /vmail/private/alice/Maildir: Mountpoint /vmail isn't mounted.
> Mount it or remove it with doveadm mount remove
>
> The "/vmail*" mount point was added by dovecot automatically at startup
> and is listed as "online". The /vmail partition is properly mounted but
> dovecot fails to see it. Delivery to existing mailboxes still works
> correctly.
>
> As a workaround, i added an ignore to this mount point.
The mountpoint checking code has been removed in 2.2.17, with the
following upstream commit:
commit 4a14ae55292476bc0b8eb314d602a262ab094a52
Author: Timo Sirainen <[email protected]>
Date: Fri Mar 20 13:27:00 2015 +0200
Removed mountpoint checking and updating code.
After a few years it seems like it has just caused more problems than it
has
actually fixed. The only thing it's been used for is to make sure that
Dovecot can't create empty user directories when the user's mail filesystem
isn't mounted. But that's supposed to be normally prevented already if the
mount root directory permissions are only writable by root.
For now the mountpoint listing code and doveadm mount code still exists
just
in case people have some scripts using those. Those could be removed in
v2.3.
If we somehow figured out which mountpoints existed (not so easy because
they could be only visible in userdb lookups for different users), we could
maybe create some kind of a script that checks the permissions at startup.
This would work with Linux at least:
mkdir test
mount / -o bind test
ls -ld test/var/mail # assuming /var/mail mountpoint
umount test
Regards,
Apollon
--- End Message ---