Centralize LDAP database between SMTP Artica servers

In multiple servers mode you can centralize members/organizations between several Artica servers.
This to create a real messaging structure.

Architecture example:

On our example, we use several SMTP servers on multiple MX with a load balancer in order to accept messages.
Each SMTP service require authentication for all members who want to send email trough Internet using the SMTP architecture.
The central LDAP database is a Zarafa server that stores mailboxes, domains and members.
SMTP relay servers are in charge to perfom anti-spam/antivirus tasks.

centralize-ldap-db.png

A) Force the LDAP service to bind a real IP address on the central server.

By default, when installing Artica, the LDAP database listen only the loopback interface.
In order to allow SMTP servers to query the LDAP database on the central cerver, you need to force the LDAP service to bin a real IP address.

  • On the system informations menu, click on General settings tab.
  • Click on LDAP Database parameters icon.

 06-09-2012_21-21-33.png

  • Select your IP address on the listen Address drop-down field and click on Add button.

06-09-2012_21-33-09.png

B) Retreive main LDAP credentials on the central server.

  • Click on Account icon on the left side.

06-09-2012_21-36-01.png

  • Memorize the user name, password and suffix of the central server.

06-09-2012_21-38-25.png

C) Connect SMTP servers to the central LDAP database

  • On the SMTP servers, click on System information.
  • Click on Account icon.

06-09-2012_23-27-22.png

  • Add the Central LDAP server credentials, inluding the right suffix and the correct IP address of the Central LDAP server

06-09-2012_23-35-18.png

  •  On the SMTP server verify in organizations section that you see organizations created on the LDAP central database server.

06-09-2012_23-57-17.png

D) Force SMTP servers to understand that local domains stored on LDAP server must be forwarded to a remote server.

usually when SMTP servers queries the remote LDAP database, they will understand that messages for local domains must be saved locally.
In our configuration, this is not the case, in fact, SMTP servers must understand that all local domains must be forwarded to the central LDAP database server.
The central LDAP server act as mail server that store all mailboxes.

07-09-2012_00-20-59.png

On the SMTP routing table, under organizations tab, click on Parameters icon.

07-09-2012_09-07-54.png

  • Enable the checkbox "Local domains to remote server"
  • Define the remote server address eg 192.168.1.161 or 192.168.1.161:4544 if you you need to specify the remote port.

07-09-2012_09-09-55.png

Then all local domains will be forced to forward messages to the central LDAP server.

07-09-2012_09-14-49.png

In this mode, you need to schedule a Postfix compilation parameters in order to refresh changes on the SMTP server.