[Dovecot] Authentification on 2 databases

Lorens dovecot.fdop at tagged.lorens.org
Sun Sep 11 22:09:25 EEST 2005


On Sun, Sep 11, 2005 at 04:02:52PM +0300, Timo Sirainen wrote:
> On Fri, 2005-09-09 at 13:06 +0200, LeeJaY wrote:
> > I have 2 databases MySQL. I would like to do that:
> > 
> > If the user does not existe in the first base, it goes in the second
> > database.
> 
> Unfortunately this isn't possible currently. I just thought about fixing
> it, but looks like it'd need some larger changes to the code. Maybe
> later..

What is it then that is described at

	http://wiki.dovecot.org/moin.cgi/MultipleAuth

?

Is the difference that users have to exist in both databases? That is
certainly the way *I* use it, and it is the way that is suggested by the
sentence "if password doesn't match in the first database, it checks the
next one".

However, the sentence "This can be useful if you want to easily support
having both local system users in /etc/passwd but also virtual users"
seems to say that the userbases are different, and the example given
certainly implies that?

For the original poster, I suggest configuring two instances of dovecot,
with different configurations, listening on different IPs, and telling
users to use the IP corresponding to their database.

Or, much better, unify the databases :-0 Either put all the
users into one system, which should have lots of other
advantages, or maybe replicate the databases between the servers
so that one statement can query the two datasources.

HTH.



More information about the dovecot mailing list