<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Just a prcision... maybe I misunderstood point</p>
<p>I saw in different posts, that an RSYNC may corrupt the database
and cause trouble... therefore, we need a replication system.</p>
<p>1) I have 2 different servers, running (email server with
dovecot) .. Server 1 and Server 2 ( backup system) . if they are
running together in parallel, I need a replication in order NOT to
corrupt files... correct ? RSYNC MY corrupt files..<br>
</p>
<p>2) now I have only <u>one system</u> ( in fact a VM with
sendmail and dovceot ) and I want to backup every 20min, the
emails.. normally a simple RSYNC of the email folder should be
enough ? even without stopping Dovecot service.. just on the fly
...correct ? ?</p>
<p>Then, in case of crash.. I can reinstall my VM and mount the new
NFS folder... that should be OK ? <br>
</p>
<p>What do you think ?</p>
<p>Thanks...<br>
</p>
<div class="moz-cite-prefix">On 3/27/22 08:12, Stephane Magnier
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f3f79871-a329-5cd1-0d3a-6ee499180c15@netcourrier.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi,</p>
<p>I am trying using a replication. Here is my config :
10-mail.conf. Before going " on real life " I try to make a very
basic example... but without any success :-( bad start<br>
</p>
<p>I took the config example on dovecot wiki</p>
<p>The idea is to replicate the user: "user1" on a different
server IP 177.28.1.120 at the location /home/SERVER/test and to
get at the end the folder "/home/SERVER/test/user1"</p>
<p>On the top, I wish to replication with the user / group :
vmail. For the transfer, I use the root login on the backup
server to avoid other rights problems at the moment</p>
<p>2) how to synchronized specific users ? apparently it's trying
to sync other things.. :-)<br>
</p>
<p><font color="#e41212"><br>
</font></p>
<blockquote>
<p><font color="#e41212"># mbox_very_dirty_syncs = yes</font><br>
<font color="#e41212">mail_plugins=$mail_plugins quota notify
replication</font><br>
<font color="#e41212">service replicator {</font><br>
<font color="#e41212"> process_min_avail = 1</font><br>
<font color="#e41212">}</font><br>
<br>
<font color="#e41212">dsync_remote_cmd = ssh -l root
177.28.1.120 doveadm dsync-server -u user1</font><br>
<font color="#e41212">plugin {</font><br>
<font color="#e41212"> mail_replica
=remote:root@177.28.1.120:/home/SERVER/test/</font><br>
<font color="#e41212"> }</font><br>
<font color="#e41212"> </font><br>
<font color="#e41212">service aggregator {</font><br>
<font color="#e41212">fifo_listener replication-notify-fifo {</font><br>
<font color="#e41212">user = vmail</font><br>
<font color="#e41212">}</font><br>
<font color="#e41212">unix_listener replication-notify {</font><br>
<font color="#e41212">user = vmail</font><br>
<font color="#e41212">}</font><br>
<font color="#e41212">} </font><br>
<br>
<font color="#e41212">service replicator {</font><br>
<font color="#e41212">unix_listener replicator-doveadm {</font><br>
<font color="#e41212">mode = 0600</font><br>
<font color="#e41212">user = vmail</font><br>
<font color="#e41212">}</font><br>
<font color="#e41212">}</font><br>
<br>
<font color="#e41212">replication_max_conns = 10</font><br>
</p>
</blockquote>
<br>
<p><br>
</p>
<p>But apparently nothing is happening....<br>
</p>
<blockquote><font color="#e41212">[root@xxx xenia]# doveadm
replicator status<br>
Queued 'sync' requests
0 <br>
Queued 'high' requests
0 <br>
Queued 'low' requests
0 <br>
Queued 'failed' requests
0 <br>
Queued 'full resync' requests
24 <br>
Waiting 'failed' requests
10 <br>
Total number of known users 34 </font> <br>
</blockquote>
<p>and the folder test is empty<br>
</p>
<p>Any idea what is wrong ? maybe I should ask a start a cmd line
to start the process ? ( <br>
</p>
<p><br>
</p>
<blockquote><font color="#e41212">[root@mbox1 xenia]# doveadm
replicator status '*'</font><br>
<font color="#e41212">username
priority fast sync full sync success sync failed</font><br>
<font color="#e41212">rngd
none - - - - </font><br>
<b><font color="#e41212">user1
none
00:00:04 00:40:05 - y ( failed )</font></b><br>
<font color="#e41212">saslauth
none - - - - </font><br>
<font color="#e41212">sa-milt
none - - - - </font><br>
</blockquote>
</blockquote>
</body>
</html>