[Dovecot] 2nd postgresql server to connect when 1st fail
Krzysztof A. Adamski
mr_K at interia.pl
Wed Aug 17 11:57:17 EEST 2005
Dnia Wed, 17 Aug 2005 02:51:04 +0300, Timo Sirainen napisał(a):
> On 17.8.2005, at 02:39, Krzysztof A. Adamski wrote:
>
> > I need to have mail service working even when my postgresql server
> > will fail. In postfix i set 2 different servers and if 1st fail,
> > postfix try to use 2nd. Is there any way to do this in dovecot?
>
> Currently not. It works with mysql code though, so all that's
> needed is to implement similar connection pooling for Postgresql
> code. Although I guess that pooling code could be made common to
> all SQL driver implementations.. Anyway, it's pretty low priority
> for me currently.
Thanks for your answer, i have another if it's no problem for U.
What about MultipleAuth in Dovecot 1.0. Can i make something like
this?:
auth default {
mechanisms = plain
passdb sql {
args = /etc/dovecot-sql-1.conf
}
passdb sql {
args = /etc/dovecot-sql-2.conf
}
userdb sql {
args = /etc/dovecot-sql-1.conf
}
userdb sql {
args = /etc/dovecot-sql-2.conf
}
}
And in dovecot-sql-1.conf set
host = dbserver1,
in dovecot-sql-2.conf set
host = dbserver2
And when dovecot 1.0 (stable) is planed ?
----------------------------------------------------------------------
Zostan internetowa dziewczyna wakacji! > http://link.interia.pl/f18ac
More information about the dovecot
mailing list