Mail server replication with dovecot

The first step is to log into the podman. To enter, we use:

/usr/local/bin/runagent -m mail1

Further documentation:

# print the config values that differ from Dovecot defaults
# WARNING! changing one of them may be dangerous!
podman exec -ti dovecot doveconf -n
# start the editor
podman exec -ti dovecot vi /etc/dovecot/local.conf.d/myoverride.conf
systemctl --user reload dovecot

And at the end the config. Taken from here and finalized with a file.
Also the port must be opened on the firewall in the actual machine! I don’t know which protocol is needed, so I opened both. The instructions require port 4092.

firewall-cmd --add-port=4092/tcp
firewall-cmd --add-port=4092/udp

It is necessary to specify IP address for synchronization!!!

mail_replica = tcp:195.888.888.888:4092
# cat conf.d/10-replicator.conf 
mail_plugins = $mail_plugins notify replication

# Replicator process should be started at startup, so it can start replicating users immediately
service replicator {
  process_min_avail = 1
  # Enable doveadm replicator commands
  unix_listener replicator-doveadm {
    user = vmail
    group = vmail
    mode = 0660
  }
}

service aggregator {
  fifo_listener replication-notify-fifo {
    user = vmail
  }
  
  unix_listener replication-notify {
    user = vmail
  }
3 Likes

HEllo sir, Thank you for your inputs and this Howto,

SIcne its structured as a wiki, COuld you kindly add the missing parts, from the begining, untill the point where you need to begin modifying dovecot, tha way a newbie, could follow from Step A to Z, dont you think?