<div dir="ltr"><div>Hi all,</div><div><br></div><div>I am still struggling with this issue.</div><div>I scraped my previous configuration and started from beginning. </div><div>Thanks to Aki Tuomi and his suggestion I changed the users in my configurations from vmail --> root and that helped.</div><div>Now I have a working replication but with some problems and strange behavior.</div><div>Replication works only when I manually execute a command:</div><div><br></div><div>"doveadm sync -A tcp:secundary:server:12345"</div><div><br></div><div>Automatic fast and full sync do not work:</div><div><br></div><div>doveadm replicator status "*"<br>username                                                                priority fast sync full sync success sync failed<br>zdokman                                                                 none     01:46:14  01:46:14  01:46:14     -<br></div><div><br></div><div>doveadm replicator status</div><div>Queued 'sync' requests        0<br>Queued 'high' requests        0<br>Queued 'low' requests         0<br>Queued 'failed' requests      0<br>Queued 'full resync' requests 0<br>Waiting 'failed' requests     0<br>Total number of known users   1<br></div><div><br></div><div>doveadm replicator dsync-status<br>username                                                                             type status<br>                                                                                     -    Not connected<br></div><div><br></div><div>maillog has no error entries.</div><div>my conf files are attached. </div><div><br></div><div>I don't understand why is this happening and how to fix it, any help is much appreciated.</div><div><br></div><div>Best regards,    </div><div><br></div><div><br></div><div>  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 13 May 2019 at 15:23, Zeljko Dokman <<a href="mailto:zdokman@gmail.com">zdokman@gmail.com</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 dir="ltr">Hi,<div>Thank you for your reply Aki.</div><div>I changed my configuration and substituted vmail user with root user.</div><div><br></div><div>Now I have no error massages in maillog but replication is not working, mails are not visible on second server.</div><div><br></div><div>BR </div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 13 May 2019 at 10:50, Aki Tuomi <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</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 bgcolor="#FFFFFF">
    <p>Your problem is that you are running service doveadm as vmail,
      but you are using real uids. You need to start doveadm server as
      root to be able to switch into the correct target user.</p>
    <p>Aki</p>
    <p><br>
    </p>
    <div class="gmail-m_8626488784713751820gmail-m_-7063288536140753092moz-cite-prefix">On 13.5.2019 11.26, Zeljko Dokman via
      dovecot wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">Hi all,
          <div><br>
          </div>
          <div>Any suggestion?</div>
          <div><br>
          </div>
          <div>BR</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, 6 May 2019 at 14:22,
          Zeljko Dokman <<a href="mailto:zdokman@gmail.com" target="_blank">zdokman@gmail.com</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 dir="ltr">
            <div dir="ltr" class="gmail-m_8626488784713751820gmail-m_-7063288536140753092gmail-m_4667388816981838gmail_signature">
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hi
                all,</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I
                am in need of some help.</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Straggling
                to make something work, trying to configure
                postfix and dovecote imap server with dovecote
                replication.</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Can’t
                figure out what is wrong with my configuration.</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Replication
                is working only for vmail user account, I am
                getting this error on my secondary server  for all other
                users…</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">dovecot:
                doveadm: Fatal: setgid(4015(zdokman) from userdb
                lookup) failed with euid=5000(vmail), gid=5000(vmail),
                egid=5000(vmail):
                Operation not permitted (This binary should probably be
                called with process
                group set to 4015(zdokman) instead of 5000(vmail))</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">primary
                server reports this error:</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">dovecot:
                doveadm(zdokman): Error: doveadm server
                disconnected before handshake: EOF</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">dovecot:
                doveadm(zdokman): Error: sync: Disconnected from
                remote: EOF</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">doveadm
                replicator status '*'</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">username                                          
                                     priority
                fast sync full sync success sync failed</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">vmail                                                                 
                        none    
                01:58:13  02:05:25  01:58:13     -</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">zdokman                                                            
                     none     00:00:25 
                02:55:26  -           
                y</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">test                                                                  
                          none    
                00:01:00  21:48:13 
                -            y</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">doveadm
                sync *</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">doveadm(root):
                Fatal: execvp(Maildir) failed: Permission
                denied</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">dsync-local(root):
                Error: read(remote) failed: EOF (version
                not received)</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I
                am attaching my dovecot.conf <a href="http://main.cf" target="_blank">main.cf</a> and
                <a href="http://master.cf" target="_blank">master.cf</a>.</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I
                think my problem is with permissions  but I can
                figure out how to workaround it.</p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              <p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Best
                regards </p>
            </div>
          </div>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail-m_8626488784713751820gmail-m_-7063288536140753092gmail_signature"><br>
                                                                                                            
        <br>
           <img src="http://qrcode.kaywa.com/img.php?s=5&d=Zeljko%20Dokman%0D%0A%0D%0Azdokman%40gmail.com" width="96" height="96"><br>
      </div>
    </blockquote>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_8626488784713751820gmail_signature"><br>                                                                                                             <br>   <img src="http://qrcode.kaywa.com/img.php?s=5&d=Zeljko%20Dokman%0D%0A%0D%0Azdokman%40gmail.com" height="96" width="96"><br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br>                                                                                                             <br>   <img src="http://qrcode.kaywa.com/img.php?s=5&d=Zeljko%20Dokman%0D%0A%0D%0Azdokman%40gmail.com" height="96" width="96"><br></div>