<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Christian,</p>
<p>if I try:<br>
</p>
<p><i><font size="2">user_attrs =<br>
sAMAccountName=user,=home=/mnt/mail-storage-lv0007/%$,=uid=501,=gid=501</font></i><br>
</p>
<p>then the result on node A is:<br>
</p>
<p><font size="2"><i># doveadm user its-test</i><i><br>
</i><i>field value</i><i><br>
</i><i>uid 501</i><i><br>
</i><i>gid 501</i><i><br>
</i><i>home /mnt/mail-storage-lv0007/</i><i><br>
</i><i>mail <a class="moz-txt-link-freetext" href="maildir:~/Maildir:INDEX=/var/indexes/its-test">maildir:~/Maildir:INDEX=/var/indexes/its-test</a></i></font></p>
<p>on node B where I didn't change anything the result is:</p>
<p><i><font size="2"># doveadm user its-test<br>
field value<br>
uid 501<br>
gid 501<br>
home /mnt/mail-storage-lv0007/its-test<br>
mail <a class="moz-txt-link-freetext" href="maildir:~/Maildir:INDEX=/var/indexes/its-test">maildir:~/Maildir:INDEX=/var/indexes/its-test</a></font></i><br>
</p>
<p>I think that the home is correct on node B, don't you?</p>
<p>Then when I do a search like this:<br>
<br>
<font size="2"><i>doveadm replicator status '*'</i></font><br>
</p>
<p>I have the same result on both nodes:<br>
</p>
<p><font size="2"><i># doveadm replicator status '*'</i><i><br>
</i><i>username
priority fast sync full sync success sync failed</i><i><br>
</i><i>its-test
low 00:04:05 19:57:52 19:58:47 - </i><i><br>
</i><i>its-test2
none 19:59:43 19:59:43 44:01:24 - </i></font><br>
</p>
<p>I have to specify that in these days I did some tests and removed
all the users with domain part in the name with the following
command:</p>
<p><font size="2"><i>doveadm replicator remove <a class="moz-txt-link-abbreviated" href="mailto:its-test2@domain.com">its-test2@domain.com</a></i></font></p>
<p><font size="2"><i>doveadm replicator remove <a class="moz-txt-link-abbreviated" href="mailto:its-test@domain.com">its-test@domain.com</a></i></font></p>
<p>But I don't know if this is useful, I have executed the same
command in production servers and all the users with the domain
part in the name reappeared after a few minutes; in test
environment anyway after <font size="2"><i>doveadm replicator
remove</i></font> command, these users are not reappearing ...
I don't know why.<br>
</p>
<p>Thanks for your help!</p>
<p>Kind Regards<br>
</p>
<div class="moz-cite-prefix">On 06/12/21 14:43, Christian Mack
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:66ae0fef-8a95-fe42-8889-1779e7413646@uni-konstanz.de">
<pre class="moz-quote-pre" wrap="">Hello
Am 02.12.21 um 17:54 schrieb Claudio Corvino:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi,
I have two IMAP/LMTP Dovecot server in replica (version 2.3.4.1), I use
LDAP/AD for /userdb, /replica is working.
When I do a search like:
/doveadm replicator status '*'/
I receive user duplicated, with and without the domain part, for example:
/test/
/test@domain.com/
but they are the same user; this lead the replicator doing twice the
work of replication.
I think this is related to //etc/dovecot/dovecot-ldap.conf/ that is
configured in this way:
/hosts = xxx/
/base = dc=xxx,dc=xxx
ldap_version=3
auth_bind = yes
dn = cn=xxx,cn=Users,dc=xxx,dc=xxx
dnpass = xxx
scope = subtree
user_attrs =
sAMAccountName=home=/mnt/mail-storage-lv0007/%$,=uid=501,=gid=501
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">[...]
This is for sure wrong.
Try:
user_attrs =
sAMAccountName=user,=home=/mnt/mail-storage-lv0007/%$,=uid=501,=gid=501
Kind regards,
Christian Mack
</pre>
</blockquote>
</body>
</html>