Vitalij Satanivskij
2007-Mar-02 07:29 UTC
[Dovecot] Some question about "auth default", "auth default_with_listener" and others
Hello,
Trying to set in dovecot.conf more than one auth section found that imap and
pop3 auth process use bose of them.
Loooks like thay do in round-robin way or maybe another way.
Example of config:
auth default {
mechanisms = plain
passdb sql {
args = /usr/local/etc/dovecot-mysql.conf
}
userdb prefetch {
}
user = root
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = dovecot
group = dovecot
}
}
}
auth smtp_auth {
mechanisms = login plain
passdb sql {
args = /usr/local/etc/smtp_auth.conf
}
userdb prefetch {
}
socket listen {
client {
user = mailnull # User running Dovecot LDA
group = mail # Or alternatively mode 0660 + LDA user in this group
path = /var/run/auth-smtp-plain
mode = 0660
}
}
}
Main problem - dovecot-mysql.conf and smtp_auth.conf have doferent sql querys
inside, and if user try to auth via pop3 service
but thru the "auth smtp_auth", than it's failed in any way.
Quetion - Is exist any way to limit default doecot auth process to use just
"auth default" for authintification ?
maybe some options like "services= POP3 IMAP" inside?
Or maybe there is anather way to do this ?
Timo Sirainen
2007-Mar-06 21:17 UTC
[Dovecot] Some question about "auth default", "auth default_with_listener" and others
On 2.3.2007, at 9.29, Vitalij Satanivskij wrote:> Trying to set in dovecot.conf more than one auth section found that > imap and pop3 auth process use bose of them. > Loooks like thay do in round-robin way or maybe another way.Yes, unfortunately multiple auth sections don't work in any usable way. I'll try to make them more useful after v1.0.> Main problem - dovecot-mysql.conf and smtp_auth.conf have doferent > sql querys inside, and if user try to auth via pop3 service > but thru the "auth smtp_auth", than it's failed in any way.Maybe you could do this with one SQL query which uses %s? %s expands to IMAP, POP3, smtp or deliver. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070306/9228c2e4/attachment.bin>