<div dir="ltr">Please tell me about Dsync replicator.<br><br>The following are set to enable the "replication" plug-in<br><br>/etc/dovecot/conf.d/10-mail.conf<br><b>---<br>mail_plugins = notify replication<br>---</b><br><br>And I made the following file<br><br>/etc/dovecot/conf.d/30-dsync.conf<br><br><b>---<br>service replicator {<br>Â process_min_avail = 1<br>}<br>Â <br>dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u<br>plugin {<br>Â mail_replica = remote:root@"ServerIP"<br>}<br>Â <br>service aggregator {<br>Â fifo_listener replication-notify-fifo {<br>Â Â user = mail<br>Â }<br>Â unix_listener replication-notify {<br>Â Â user = mail<br>Â }<br>}<br>Â <br>service replicator {<br>Â unix_listener replicator-doveadm {<br>Â Â mode = 0600<br>Â }<br>}<br>Â <br>replication_max_conns = 10<br>Â <br>plugin {<br>Â # When saving a new mail via IMAP or delivering a mail via LDA/LMTP,<br>Â # wait for the mail to be synced to the remote site. If it doesn't finish<br>Â # in 2 seconds, return success anyway.<br>Â # replication_sync_timeout = 2s<br>}<br>---</b><br><br>But replication gives an error<br>---<br><b>Error: open(/var/run/dovecot/replication-notify-fifo) failed: Permission denied</b><br>---<br><br>Why is this?<br><br>By the way, When 30-dsync.conf is changed as follows, it works only for one user<br><b>---<br>service aggregator {<br>Â fifo_listener replication-notify-fifo {<br>Â Â user = "one user name"<br>Â }<br>Â unix_listener replication-notify {<br>Â Â user = "one user name"<br>Â }<br>}<br>---</b><br><br>However, I want to work with all mail users.<br>Please help me what to do.<br><br><br>My configuration is as follows<br><b>---<br># 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf<br># OS: Linux 3.10.0-1062.9.1.el7.x86_64 x86_64 CentOS Linux release 7.7.1908 (Core) <br># Hostname: <a href="http://test1.s1.iwate-np.co.jp">test1.s1.iwate-np.co.jp</a><br>dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u<br>first_valid_uid = 1000<br>mail_location = maildir:~/Maildir<br>mail_plugins = notify replication<br>mbox_write_locks = fcntl<br>namespace inbox {<br>Â inbox = yes<br>Â location = <br>Â mailbox Drafts {<br>Â Â special_use = \Drafts<br>Â }<br>Â mailbox Junk {<br>Â Â special_use = \Junk<br>Â }<br>Â mailbox Sent {<br>Â Â special_use = \Sent<br>Â }<br>Â mailbox "Sent Messages" {<br>Â Â special_use = \Sent<br>Â }<br>Â mailbox Trash {<br>Â Â special_use = \Trash<br>Â }<br>Â prefix = <br>}<br>passdb {<br>Â driver = pam<br>}<br>plugin {<br>Â mail_replica = <a href="mailto:remote%3Aroot@192.168.4.2">remote:root@192.168.4.2</a><br>}<br>service aggregator {<br>Â fifo_listener replication-notify-fifo {<br>Â Â user = mail<br>Â }<br>Â unix_listener replication-notify {<br>Â Â user = mail<br>Â }<br>}<br>service replicator {<br>Â process_min_avail = 1<br>Â unix_listener replicator-doveadm {<br>Â Â mode = 0600<br>Â }<br>}<br>ssl = required<br>ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>ssl_key = Â # hidden, use -P to show it<br>userdb {<br>Â driver = passwd<br>}<br>---</b><br><br></div>