<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I have an MTA configured with Postfix that deliver email to an
IMAP/LMTP Dovecot server version 2.3.4.1 configured to bind
LDAP/AD for users.</p>
<p>I would like to configure Dovecot to create another mailbox to
archive mails of users to a separated NFS mount.</p>
<p>Here is my <i>dovecot-ldap.conf</i>:</p>
<p>[...]</p>
<p><font size="-1"><i>ldap_version=3</i><i><br>
</i><i>auth_bind = yes</i><i><br>
</i><i>dn = XXX</i><i><br>
</i><i>dnpass = XXX</i><i><br>
</i><i>scope = subtree</i><i><br>
</i><i>user_attrs =
sAMAccountName=home=/mnt/mail-storage-dev/%$,=uid=501,=gid=501</i><i><br>
</i><i>pass_attrs = sAMAccountName=user</i><i><br>
</i><i>user_filter =
(&(objectclass=person)(samaccountname=%n))</i><i><br>
</i><i>pass_filter=
(&(objectclass=person)(samaccountname=%n))</i></font><br>
</p>
<p>[...]<br>
</p>
<p>I think I will add another conf file, let's say <i>dovecot-ldap-archive.conf
</i>using "url" as LDAP/AD filed to distinguish from normal users:</p>
<p>[...]</p>
<p><font size="-1"><i>ldap_version=3</i><i><br>
</i><i>auth_bind = yes</i><i><br>
</i><i>dn = XXX</i><i><br>
</i><i>dnpass = XXX</i><i><br>
</i><i>scope = subtree</i><i><br>
</i><i>user_attrs =
url=home=/mnt/mail-storage-archive/%$,=uid=501,=gid=501</i><i><br>
</i><i>pass_attrs = url=user</i><i><br>
</i><i>user_filter = (&(objectclass=person)(url=%n))</i><i><br>
</i><i>pass_filter= (&(objectclass=person)(url=%n))</i></font><br>
</p>
<p>[...]</p>
<p>I then added to "test" user a "url" filed into Active Directory
named <i>test-archive</i><i>, b</i>ut it's not working, when I
bind Dovecot with:</p>
<p><font size="-1"><i>doveadm user test-archive</i></font></p>
<p>I receive:</p>
<p><font size="-1"><i>field value</i><i><br>
</i><i>userdb lookup: user test-archive doesn't exist</i></font><br>
</p>
<p>With test user it works:</p>
<p><font size="-1"><i>doveadm user 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-dev/test</i><i><br>
</i><i>mail maildir:~/Maildir:INDEX=/var/indexes/test</i></font><br>
</p>
<p>What I'm doing wrong?<br>
</p>
<p>Thanks in advance!<br>
<i></i></p>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
.attacca {
margin-top: -15px;
}
</style>
<div>
<p style="line-height:normal"> <strong><span
style="font-size:11.0pt;font-family:Helvetica;color:black">Claudio
Corvino</span><br>
<span
style="font-size:9.0pt;font-family:Helvetica;color:gray;">IT
Systems Administrator</span></strong></p>
</div>
</div>
</body>
</html>