<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello guys, <br>
</p>
<p>I'm needing help with something you surely have already
done/helped.. it is like this:</p>
<p>We used to run Cyrus with a single domain. "virtdomains" and even
"defaultdomain" commented out. The authentication method is
"saslauthd" and it retrieved the "account" by UID only from our
ldap. <i>(ldap_filter:
(&(objectClass=inetOrgPerson)(uid=%u)))</i><br>
</p>
<p>Every user is a single username, like mine is "heiler.bemerguy".
Then my mailbox is located at "<i>/var/spool/cyrus/mail/h/user/heiler^bemerguy</i>".</p>
<p>Everything is OK with that config. But now, my manager wants to
use other domains for receiving and sending emails. I THINK the
best way to set up each user domain would be by creating new
accounts on LDAP with the "mail" field pointing to those new
domains. Right now, everyone already have a "mail" field set to
<a class="moz-txt-link-rfc2396E" href="mailto:UID@ourcompany.com.br">"UID@ourcompany.com.br"</a>. <br>
</p>
<p>I managed to change the way it would authenticate the account,
using "mail" instead of "uid" field, with this: "<i>ldap_filter:
(&(objectClass=inetOrgPerson)(mail=%U@%d))</i>". I've tested
with POP3 and it authenticates successfully whenever I use only
"uid" or <a class="moz-txt-link-rfc2396E" href="mailto:uid@ourcompany.com.br">"uid@ourcompany.com.br"</a> as login.</p>
<p><br>
</p>
<p><b> The problem is:</b> When I authenticate with
@ourcompany.com.br, it auto-creates <b>another </b>mailbox (<i>/var/spool/cyrus/mail/domain/o/ourcompany.com.br/h/user/heiler^bemerguy/</i>).</p>
<p>As the "ourcompany.com.br" is the default domain, it would be
better (and a lot less troublesome) if it continued to use the old
"<i>/var/spool/cyrus/mail/h/user/heiler^bemerguy" </i>mailbox<i>.</i>
<b>Is it possible</b>?<br>
</p>
<p>And is it possible to use a smaller path for users from other
domains?! I thought it would just append a @newdomain at each
one..<br>
<i></i></p>
<p>The log says: Jul 3 18:00:10 localhost cyrus/pop3[122602]:
autocreateinbox: User <a class="moz-txt-link-abbreviated" href="mailto:heiler^bemerguy@ourcompany.com.br">heiler^bemerguy@ourcompany.com.br</a>, INBOX was
successfully created</p>
<p>PS.: is it a good practice to let it auto-create the mailbox ? I
thought it was disabled<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Atenciosamente,
Heiler Bensimon Bemerguy - CINBESA
Analista de Redes, Wi-Fi,
Virtualização e Serviços Internet
(55) 91 98151-4894</pre>
</body>
</html>