[Dovecot] User another userdb to sasl
Timo Sirainen
tss at iki.fi
Sat Mar 8 01:14:26 EET 2008
On Fri, 2008-03-07 at 18:35 +0100, Nicolas Letellier wrote:
> I use Dovecot 1.0.12 with Postfix on FreeBSD. It works perfectly, but I
> have a question. My users are virtual (stocked in a MySQL database).
> I use SASL Dovecot authentification, and SASL uses my userdb (for
> POP/IMAP access).
>
> However, I would like my users have an other login/password to send
> email with SMTP/SASL. Or, I don't want my users use the same
> login/password for POP/IMAP than SMTP. More, I don't want some users
> could send emails with their login/password, but I want they can fetch
> their mails.
>
> I'm looking for an option in my dovecot.conf to specifie a table SQL for
> SASL authentification (and don't use same table SQL than IMAP/POP access).
Your use of word "SASL" is confusing. See http://wiki.dovecot.org/Sasl
But I guess you want your password_query to do different things based on
%s. For example:
select password from users where username = '%u' and service = '%Ls'
%Ls expands to imap, pop3 or smtp. http://wiki.dovecot.org/Variables
tells more about the variables.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080308/bdb3f60b/attachment.bin
More information about the dovecot
mailing list