stdevPavelmc / mailad

Software to provision a mail server with users from a Windows or Samba 4 Active Directory
GNU General Public License v3.0
33 stars 11 forks source link

[FEAT] Multiple ADDC from config, improves redundancy #152

Closed Joe1962 closed 2 years ago

Joe1962 commented 2 years ago

Feature Support multiple ADDC for HA.

Solution Using something like this in /etc/mailad/mailad.conf: HOSTAD=192.168.1.237 192.168.1.238 192.168.1.239

Should result in this in /etc/dovecot/dovecot-ldap.conf.ext: uris = ldap://192.168.1.237:389/ ldap://192.168.1.238:389/ ldap://192.168.1.239:389/

And this in all 6 config files within /etc/postfix/ldap: server_host = ldap://192.168.1.237:389 ldap://192.168.1.238:389 ldap://192.168.1.239:389

stdevPavelmc commented 2 years ago

Yep, confirmed

On postfix and dovecot it's possible to specify multiple ADDC servers by means of a simple space separated list.

Working on this first.