Am Monday 02 January 2006 19:12 schrieb Holm Kapschitzki: > >>I think one method is saslauthd, but i want to use auxprop with the sql > >>plugin to authenticated the users. And at this way i need this line for > >>sql in my smtpd.conf > >> > >>sql_statement: SELECT password from mailbox where username='[EMAIL > >>PROTECTED]' > >> > >>cause i want to use cyrus to manage virtual domains > > > >Depends on your setup. Maybe %r is not, what you expect in this case. For > >Postfix %r is $smtpd_sasl_local_domain. The "@domain.part" if the User > > sends that as Username is included in %u. > > hm, i think i dont understand it. "%r" is the placeholder for the realm. > The realm is used for authentification. It should be the fqdn hostname > of the postfix server or the domain part for the virtual domain, i want > to manage with cyrus imap ? "%u" is the placeholder for the username for > cyrus sasl and the username could only be name.name ? > > You wrote that the virtual domain part is included in the username and > the realm is only! the fqdn from the mailserver. That means all the user > are stored in this form: > > [EMAIL PROTECTED] ? > > Then i dont need the realm for authentification for sasl and cyrus imap > cause the username differences all the user cause of the vitual domain > part ?
Create your Users and Mailboxes with "[EMAIL PROTECTED]", "[EMAIL PROTECTED]",.. in Cyrus-Imapd and in your DB. Let the Users authenticate with "[EMAIL PROTECTED]",.. as Username and fitting Password. Use in sql_statement "select cleartextpw from users where username = '%u'" and forget the Realm. -- Andreas ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html