<div dir="ltr">Hi Gerald,<div><br></div><div>Thank you for the details. As per your suggestion, I have made the changes to dovecot.conf file. Still I don't see any replication is happening. Please see the dovecot.conf file.</div><div><br></div><div>I do not see "<span style="font-family:Calibri,sans-serif;font-size:11pt">/etc/dovecot/conf.d/12-replication.conf</span>" in my servers. So I had put everything in the dovecot.conf file only. Please see the complete data in it below. The below data is in server A. In other server (server B) Also I have the same configuration, except mail_replica line and it is pointing to the other server like, "
mail_replica = <a href="mailto:remote%3Avmail@bal3200dev001.testorg.com">remote:vmail@bal3200dev001.testorg.com</a>
". </div><div><br></div><div>I have generated/configured the ssh keys also for vmail user in both servers. Now When i manually ssh to the server, it is not asking for a password. </div><div><br></div><div>=====================</div><div><div>=====================</div><div></div></div><div>disable_plaintext_auth = no<br><br>listen = *<br>log_path = /var/log/dovecot.log<br>#mail_location = maildir:/z1nfs/mail/virtual/%d/%n/Maildir/<br>mail_location = maildir:/z1devenv/mail/virtual/%d/%n/Maildir/<br>passdb {<br> args = /etc/dovecot/passwd<br> driver = passwd-file<br> }<br> <br>pop3_uidl_format = %g<br>protocols = pop3 imap<br><br>#ssl = yes<br>#ssl_cert = </etc/pki/dovecot/certs/dovecot.pem<br>#ssl_key = </etc/pki/dovecot/private/dovecot.pem<br><br>userdb {<br># args = uid=vmail gid=vmail home=/z1nfs/mail/virtual/%d/%n<br> args = uid=vmail gid=vmail home=/z1devenv/mail/virtual/%d/%n<br> driver = static<br> }<br> <br>mail_debug = yes<br>verbose_ssl = no<br><br><br># Enable the replication plugin globally<br>mail_plugins = $mail_plugins notify replication<br><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 = <a href="mailto:remote%3Avmail@bal3200dev002.testorg.com">remote:vmail@bal3200dev002.testorg.com</a><br>}<br><br>service aggregator {<br> fifo_listener replication-notify-fifo {<br> user = vmail<br> }<br> unix_listener replication-notify {<br> user = vmail<br> }<br>}<br><br>service replicator {<br> unix_listener replicator-doveadm {<br> mode = 0600<br> user = vmail <br> }<br>}<br><br>replication_max_conns = 10<br></div><div>=====================</div><div><div>=====================</div><div><br></div><div>Am i missing anything here? Please guide me.</div><div><br></div><div>Thanks,</div><div>Kishore Potnuru</div><div><br></div><div><br></div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 17, 2020 at 12:36 AM Gerald Galster <<a href="mailto:list%2Bdovecot@gcore.biz">list+dovecot@gcore.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><br><blockquote type="cite"><div><div dir="ltr"><div>
I have done the sync manually with "doveadm sync" command. But, I have not configured the replication yet.</div></div></div></blockquote><div><br></div><div>If you don't tell dovecot where to replicate, nothing gets replicated.</div><br><blockquote type="cite"><div><div dir="ltr"><div>I am looking at the below webpage for the replication. </div><div><br></div><div><a href="https://wiki.dovecot.org/Replication" target="_blank">https://wiki.dovecot.org/Replication</a> </div><div><br></div><div>I am using the dovecot version "2.2.36". I am confused with what needs to be done after reading that page.</div><div><br></div><div>1. They are talking about v2.3.1 and v2.2+. Which one do I need to follow? Could you please give me more details on this? Providing some sample settings will be more helpful for me, please. </div></div></div></blockquote><div><br></div><div>I don't understand your confusion. You are using 2.2.36, which is v2.2+ (meaning a version greater than 2.2).</div><div>The documentation states you need at least 2.3.1 if you want to use the noreplicate feature.</div><div>So you can't use that with 2.2.36, but as your goal is to replicate everything you don't need "noreplicate".</div><div>Besides that I can't see any difference in configuring replication for 2.2/2.3.</div><div><br></div><div>If you want to replicate emails with ssh you just have to follow the first section, the sample settings are</div><div>right on that page. It's basically copying everything from "mail_plugins = $mail_plugins notify replication"</div><div>to "replication_max_conns = 10" into a config file like /etc/dovecot/conf.d/12-replication.conf</div><div><br></div><div>You only have to change the following line to match your server/ssh setup:</div><div>mail_replica = remote:<a href="mailto:vmail@anotherhost.example.com" target="_blank">vmail@anotherhost.example.com</a></div><div><br></div><div>Then generate and configure ssh keys for user vmail (passwordless authentication) on both servers.</div><div><br></div><blockquote type="cite"><div><div dir="ltr"><div>2. Also, do I need to set the replication on both of my servers the same and as it is?</div></div></div></blockquote></div><br><div>On server A) you should configure mail_replica = remote:vmail@server_B and</div><div>on server B) you should configure mail_replica = remote:vmail@server_A</div><div><br></div><div>If you skip B) and new mail arrives on B) it is not immediately synced to A)</div><div>In that case you would have to wait until a mail gets synced from A)</div><div>(you remember sync is bidirectional)</div><div><br></div><div>Best regards</div><div>Gerald</div></div></blockquote></div>