Discussion:
Dovecot is looking for .dovecot.lda-dupes in the wrong place
Michael
2014-09-02 13:59:56 UTC
Permalink
Hi,
I just moved the dovecot maildir location for all virtual users to
another location.
I moved everything from
/var/mail/vhosts/%d/%n
to
/var/vmail/%d/%n/maildir

Everything seem to be fine except of one recurring error:

Sep 2 10:16:09 mx0 dovecot: lmtp(13226, sv_bogies at neurohr.at): Error:
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory
Sep 2 13:31:27 mx0 dovecot: lmtp(16248, sv_bogies at neurohr.at): Error:
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory


So Dovecot is looking in the old path. How can I fix that?

Thanks,
Michael





doveconf -n
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-35-generic x86_64 Ubuntu 14.04.1 LTS ext4
auth_mechanisms = plain login
mail_location = maildir:/var/vmail/%d/%n/maildir
mail_plugins = notify acl quota
mail_privileged_group = vmail
mail_shared_explicit_inbox = yes
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 imapflags
namespace {
list = children
location =
maildir:/var/vmail/%%d/%%n/maildir:INDEX=/var/vmail/%d/%n/maildir/shared/%%u
prefix = shared/%%u/
separator = /
subscriptions = no
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
acl = vfile
acl_shared_dict = file:/var/lib/dovecot/db/shared-mailboxes.db
antispam_allow_append_to_spam = yes
antispam_backend = pipe
antispam_pipe_program = /usr/sbin/sendmail
antispam_pipe_program_args = -i;-f;%u
antispam_pipe_program_notspam_arg = sh
antispam_pipe_program_spam_arg = sm
antispam_spam = Spam
antispam_trash = trash;Trash;Deleted Items;Deleted Messages
fts_autoindex = yes
quota = maildir:User quota
quota_rule = *:storage=9G
quota_rule2 = Trash:storage=+100M
sieve = /var/vmail/%d/%n/sieve-scripts/.dovecot.sieve
sieve_before = /var/vmail/sieve-scripts/before
sieve_dir = /var/vmail/%d/%n/sieve-scripts/sieve
sieve_extensions = +imapflags
}
postmaster_address = postmaster at neurohr.at
protocols = " imap lmtp sieve pop3"
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
mode = 0666
user = vmail
}
}
service dict {
unix_listener dict {
user = vmail
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0600
user = postfix
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
userdb {
driver = prefetch
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
protocol lmtp {
mail_plugins = sieve
}
protocol lda {
mail_plugins = sieve
}
protocol imap {
mail_max_userip_connections = 20
mail_plugins = notify acl quota imap_acl imap_quota antispam
}
Alex JOST
2014-09-03 11:17:42 UTC
Permalink
Post by Michael
Hi,
I just moved the dovecot maildir location for all virtual users to
another location.
I moved everything from
/var/mail/vhosts/%d/%n
to
/var/vmail/%d/%n/maildir
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory
So Dovecot is looking in the old path. How can I fix that?
mail_location = maildir:/var/vmail/%d/%n/maildir
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
Check the SQL query if it is overwriting your configuration.
--
Alex JOST
Michael
2014-09-03 11:23:07 UTC
Permalink
Post by Alex JOST
Post by Michael
Hi,
I just moved the dovecot maildir location for all virtual users to
another location.
I moved everything from
/var/mail/vhosts/%d/%n
to
/var/vmail/%d/%n/maildir
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory
file_dotlock_open(/var/mail/vhosts/domain.at/michael/.dovecot.lda-dupes)
failed: No such file or directory
So Dovecot is looking in the old path. How can I fix that?
mail_location = maildir:/var/vmail/%d/%n/maildir
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
Check the SQL query if it is overwriting your configuration.
Exactly that was the case. Thanks for your help.

Michael

Loading...