<html><header></header><body><div style="font-family: Tahoma; font-size: 14px; color: #000000;">Hello,</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">we have Cyrus installations with virtual domains for years.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Users usually authenticate via imap as <a href="mailto:name.lastname@domain.com">name.lastname@domain.com</a> and get to their inboxes.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">I have now a situation where I need to let users authenticate just with name.lastname and let the system fill in the default domain.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Here is our saslauthd.conf:</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">ldap_servers: ldap://localhost/<br />ldap_default_domain: sonicle.com<br />ldap_search_base: ou=People,dc=%2,dc=%1<br />ldap_auth_method: bind<br />ldap_filter: uid=%u<br /><br /></div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">and this imapd.conf:<br /><br />allowusermoves: 1<br />lmtp_downcase_rcpt: 1<br />configdirectory: /sonicle/var/imap<br />partition-default: /sonicle/var/spool/imap<br />sievedir: /sonicle/var/sieve<br />sieve_extensions: fileinto reject vacation vacation-seconds imapflags imap4flags notify envelope relational regex subaddress copy date<br />sieve_utf8fileinto: 1<br />sieve_vacation_min_response: 0<br />admins: sonicle<br />sasl_pwcheck_method: saslauthd<br />allowplaintext: yes<br />sasl_mech_list: plain<br />tls_ca_file: /sonicle/ssl/certs/acme/fullchain.pem<br />tls_cert_file: /sonicle/ssl/certs/acme/cert.pem<br />tls_key_file: /sonicle/ssl/certs/acme/key.pem<br />altnamespace: yes<br />virtdomains: userid<br />unixhierarchysep: 1<br />duplicatesuppression: 0<br />sendmail: /sonicle/sbin/sendmail<br />xlist-archive: Archives<br />xlist-drafts: Drafts<br />xlist-sent: Sent<br />xlist-spam: Spam<br />xlist-trash: Trash<br /><br /></div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">If I try adding defaultdomain, what happens is that authentication works both with and without specifying domain, but then you're not on your normal inbox of user/name.lastname@domain.com but somewhere else strange, a SELECT INBOX returns mailbox not found.</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">What's wrong? How can I achieve my goal?</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"> </div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Thanks!</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;">Gabriele</div>
<div style="font-family: Tahoma; font-size: 14px; color: #000000;"><br />
<div id="wt-mailcard">
<div> </div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Sonicle S.r.l. </strong>: <a href="http://www.sonicle.com/" target="_new">http://www.sonicle.com</a></span></div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Music: </strong><a href="http://www.gabrielebulfon.com/" target="_new">http://www.gabrielebulfon.com</a></span></div>
<div><span style="font-size: 14px; font-family: Helvetica;"><strong>Quantum Mechanics : </strong><a href="http://www.cdbaby.com/cd/gabrielebulfon" target="_new">http://www.cdbaby.com/cd/gabrielebulfon</a></span></div>
</div>
</div></body></html>