<div style="font-family: Verdana; font-size: 12px;">Yes, I thought about this as a possible way.<br>Thanks :)<br><div><br><br></div><tt><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Simon Matter &lt;simon.matter@invoca.ch&gt;<br>A: Gabriele Bulfon &lt;gbulfon@sonicle.com&gt; <br>Cc: info-cyrus@lists.andrew.cmu.edu <br>Data: 26 gennaio 2011 9.56.11 CET<br>Oggetto: Re: sql authentication<br><br></tt><blockquote style="border-left: 2px solid rgb(0, 0, 128); margin-left: 5px; padding-left: 5px;"><tt>&gt; Hi,<br>&gt; I&#39;ve been using cyrus imapd for years using saslauthd against unix<br>&gt; passwd/shadow.<br>&gt; This way it&#39;s easy to understand the relation between a user and its<br>&gt; mailbox.<br>&gt; Now I want to integrate authentication with a sql backend, forgetting<br>&gt; about unix users.<br>&gt; I have a postgres db containing users and passwords.<br>&gt; These are actually a complete email and a password.<br>&gt; I would like imapd to authenticate using my db, where login is an email.<br>&gt; I&#39;ve seen many ways to accomplish sql authentication, so I don&#39;t know<br>&gt; which is the right one.<br>&gt; At last, how do I map the complete email to a cyrus mailbox?<br>&gt; For example, if a user succesfully authenticate as<br>&gt; name.lastname@domain.com, how does<br>&gt; cyrus translate it into a user.mailbox?<br><br>Hi,<br><br>I could be wrong but I think cyrus doesn&#39;t handle this case the way you<br>want it. I think the @domain.com part will be stripped as configured but<br>you end up with name.lastname, which will also be used as mailbox name. To<br>do this, the usual hack seems to be to enable unixhierarchysep and then<br>use mailbox names in the form of user/name.lastname.<br><br>Of course, I may be completely wrong because I have never used such thing<br>and it&#39;s some years ago when I looked at this last time.<br><br>Simon<br><br><br><br><br></tt></blockquote></div>