[Dovecot] selection correct auth with multiple auth methods
How do you control which socket or authentication process dovecot's pop3 daemon chooses to use? I've got a user database with two flags one to allow pop3 access and the other to allow the use of auth smtp. There are two authentication instances configed, thus,
auth default { .... passdb sql { args = /etc/dovecot-sql-postfix.conf } .... socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = group = } }
auth postfix { ..... passdb sql { args = /etc/dovecot-sql-postfix.conf } ....
socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }
From the logs and testing pop3 is using the postfix authentication instance and not the default as expected. Does anyone out there know how control dovecot's pops daemon authentication choice? This infomation seems to be lacking in the documentation I can find.
Jeff.
On Mon, 2009-03-23 at 14:27 +1100, jm wrote:
How do you control which socket or authentication process dovecot's pop3 daemon chooses to use? I've got a user database with two flags one to allow pop3 access and the other to allow the use of auth smtp. There are two authentication instances configed, thus,
auth default { .. auth postfix {
Although this seems logical, unfortunately it's not how the feature was originally built. So you can't choose which auth block Dovecot uses, it'll use both of them somewhat randomly. Hopefully v2.0 will finally do this right.
Currently if you want this you need to run two Dovecot instances.
Much thanks for clearing that up. The documentation wasn't very heplful on that point. I'll change it to a single instance and rely on a more complex SQL query. I look forward to version 2.
thanks again,
Jeff.
Timo Sirainen wrote:
On Mon, 2009-03-23 at 14:27 +1100, jm wrote:
How do you control which socket or authentication process dovecot's pop3 daemon chooses to use? I've got a user database with two flags one to allow pop3 access and the other to allow the use of auth smtp. There are two authentication instances configed, thus,
auth default {
..
auth postfix {
Although this seems logical, unfortunately it's not how the feature was originally built. So you can't choose which auth block Dovecot uses, it'll use both of them somewhat randomly. Hopefully v2.0 will finally do this right.
Currently if you want this you need to run two Dovecot instances.
participants (2)
-
jm
-
Timo Sirainen