Dovecot Replication of Maildirs: Couldn't create lock file ... no such file or directory
Asai
asai at globalchangemusic.org
Wed Aug 27 18:47:39 UTC 2014
Greetings,
I'm setting up replication and am getting this error from the server
where the replicated mails are being initially created:
Aug 27 11:03:53 molecular dovecot: dsync-server(user at domain.org): Error:
Couldn't create lock /vmail/domain.org/user/home/.dovecot-sync.lock: No
such file or directory
Can anyone shed some light on this?
Here's the Replicator config of the server which is being replicated to
(initially), and it is identical basically with the "master" server:
mail_plugins = notify replication
service doveadm {
inet_listener {
port = 1234
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
mode = 0600
}
}
service aggregator {
fifo_listener replication-notify-fifo {
user = vmail
mode = 0600
}
unix_listener replication-notify {
user = vmail
mode = 0600
}
}
plugin {
mail_replica = tcp:sub.domain.org:1234
}
And doveconf -n:
[root at molecular dovecot]# doveconf -n
# 2.2.13.16 (94835dd63163): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.el6.x86_64 x86_64 Scientific Linux release 6.5 (Carbon) ext4
auth_mechanisms = plain login
auth_verbose = yes
auth_verbose_passwords = plain
deliver_log_format = msgid=%m: from=%f: %$
doveadm_password = secret
doveadm_port = 1234
mail_debug = yes
mail_home = /vmail/%d/%n/home
mail_location = maildir:/vmail/%d/%n
mail_plugins = notify replication
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 duplicate
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
passdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
plugin {
mail_log_fields = box msgid from flags
mail_replica = tcp:sub.domain.org:1234
sieve = /vmail/%d/%n/home/.dovecot.sieve
sieve_dir = /vmail/%d/%n/home/sieve
}
protocols = imap pop3 lmtp sieve
service aggregator {
fifo_listener replication-notify-fifo {
mode = 0600
user = vmail
}
unix_listener replication-notify {
mode = 0600
user = vmail
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0660
user = postfix
}
unix_listener auth-master {
group = vmail
mode = 0660
user = vmail
}
unix_listener auth-userdb {
mode = 0660
user = vmail
}
user = root
}
service doveadm {
inet_listener {
port = 1234
}
}
service imap-login {
process_min_avail = 3
service_count = 0
vsz_limit = 0
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 0
service_count = 1
vsz_limit = 64 M
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
mode = 0600
}
}
ssl_cert = </etc/postfix/ssl/sub.domain.org.pem
ssl_key = </etc/postfix/ssl/domain.key
userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = sql
}
protocol lda {
hostname = sub.domain2.org
mail_plugin_dir = /usr/lib64/dovecot/
mail_plugins = sieve
postmaster_address = postmaster at domain2.org
}
protocol imap {
imap_idle_notify_interval = 24 mins
mail_max_userip_connections = 60
}
protocol sieve {
mail_max_userip_connections = 10
managesieve_implementation_string = Dovecot Pigeonhole
managesieve_logout_format = bytes=%i/%o
managesieve_max_line_length = 65536
}
Not sure if this helps but here's the ls -la output of /var/run/dovecot:
[root at molecular dovecot]# ls /var/run/dovecot/ -la
total 32
drwxr-xr-x. 5 root dovecot 4096 Aug 27 11:42 .
drwxr-xr-x. 11 root root 4096 Aug 27 10:12 ..
srw------- 1 root root 0 Aug 26 16:50 anvil
srw------- 1 root root 0 Aug 26 16:50 anvil-auth-penalty
srw------- 1 dovecot root 0 Aug 27 11:42 auth-client
srw------- 1 dovecot root 0 Aug 27 11:42 auth-login
srw-rw---- 1 vmail vmail 0 Aug 27 11:42 auth-master
-rw------- 1 root root 32 Aug 26 16:50 auth-token-secret.dat
srw-rw---- 1 vmail root 0 Aug 27 11:42 auth-userdb
srw------- 1 dovecot root 0 Aug 27 11:42 auth-worker
srw------- 1 root root 0 Aug 27 11:42 config
srw------- 1 root root 0 Aug 27 11:42 dict
srw------- 1 root root 0 Aug 27 11:42 director-admin
srw-rw-rw- 1 root root 0 Aug 27 11:42 dns-client
srw------- 1 root root 0 Aug 27 11:42 doveadm-server
lrwxrwxrwx 1 root root 25 Aug 26 16:50 dovecot.conf -> /etc/dovecot/dovecot.conf
drwxr-xr-x. 2 root root 4096 Aug 22 09:39 empty
srw-rw-rw- 1 root root 0 Aug 27 11:42 imap-urlauth
srw------- 1 dovecot root 0 Aug 27 11:42 imap-urlauth-worker
srw-rw-rw- 1 root root 0 Aug 27 11:42 indexer
srw------- 1 dovecot root 0 Aug 27 11:42 indexer-worker
srw------- 1 root root 0 Aug 27 11:42 ipc
srw-rw-rw- 1 root root 0 Aug 27 11:42 lmtp
srw------- 1 root root 0 Aug 27 11:42 log-errors
drwxr-x---. 2 root dovenull 4096 Aug 27 11:42 login
-rw------- 1 root root 5 Aug 26 16:50 master.pid
-rw-r--r-- 1 root root 22 Aug 26 16:50 mounts
srw------- 1 vmail root 0 Aug 27 11:42 replication-notify
prw------- 1 vmail root 0 Aug 27 11:42 replication-notify-fifo
srw------- 1 dovecot root 0 Aug 27 11:42 replicator
srw------- 1 dovecot root 0 Aug 27 11:42 replicator-doveadm
srw-rw-rw- 1 root root 0 Aug 27 11:42 ssl-params
srw------- 1 root root 0 Aug 27 11:42 stats
prw------- 1 root root 0 Aug 27 11:42 stats-mail
drwxr-x---. 2 root dovenull 4096 Aug 27 11:42 token-login
--
--Asai
More information about the dovecot
mailing list