[Dovecot] How to set multi backends (with same type)

maximatt azamax at gmail.com
Wed Nov 7 14:12:25 EET 2007


hi.....

i don't know if its posible.
i have two ldap directories, and i want use them to use as my dovecot users
backend... so i have two configurations files... "dovecot-ldap1.conf" and "
dovecot-ldap2.conf" and
i try setting like:

Test 1: (simil postfix ) :D  This dont work

auth default {
     :
     :
    passdb ldap {
         args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf,
/etc/dovecot/etc/ldap/dovecot-ldap2.conf
    }

    userdb ldap {
        args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf,
/etc/dovecot/etc/ldap/dovecot-ldap2.conf
    }
}

Test 2:  This dont work

auth default {
     :
     :
    passdb ldap {
         args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf/etc/dovecot/etc/ldap/dovecot-
ldap2.conf
    }

    userdb ldap {
        args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf/etc/dovecot/etc/ldap/dovecot-
ldap2.conf
    }
}


Test 3: (looking "passbd ldap" as a set) :)

this work, but dovecot-ldap2.conf override dovecot-ldap1.conf (the set
vision, none)

auth default {
     :
     :
    passdb ldap {
       args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf
       args= /etc/dovecot/etc/ldap/dovecot-ldap2.conf
    }

userdb ldap {
      args= /etc/dovecot/etc/ldap/dovecot-ldap1.conf
      args= /etc/dovecot/etc/ldap/dovecot-ldap2.conf
 }
}


¿How could i do this? :(

Thanks in advance :)

-- 
Salu2 ;)


More information about the dovecot mailing list