Dsync FAQ

Discussion in 'Tips/Tricks/Mods' started by Th0m, Mar 6, 2021.

Thread Status:
Not open for further replies.
  1. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Some commands that are good to know:
    Output the state of replication:
    Code:
    doveadm replicator status
    Show all users that are replicated with their status:
    Code:
    doveadm replicator status '*'
    Do a manual sync:
    Code:
    doveadm -D sync -A -d
    Initiate the replication of one mailbox manually:
    Code:
    doveadm -D sync -u [email protected] -d
    If your system is not syncing, make sure:
    - The correct settings (noted in the perfect multiserver guide) for Dovecot are placed in /etc/dovecot/conf.d/99-ispconfig-custom-config.conf and in /usr/local/ispconfig/server/conf-custom/install/dovecot_custom.conf.master.
    - The servers can reach each other

    When using SSH for replication:
    - Both servers have each others public key in ~/.ssh/authorized_keys

    When using TCPS for replication:
    - Both servers have a valid SSL certificate for the hostname.
    - The doveadm_password (set in the earlier mentioned config file) is the same on both servers.
    - The doveadm_port is opened in the firewall of both servers (but only for traffic from each other - don't open this port publicly).

    You can find errors regarding the synchronization in the mail logs (mail.log, mail.warn, mail.err). When there are errors, you can usually find more context here.

    Man page for doveadm sync: https://wiki.dovecot.org/Tools/Doveadm/Sync
    Dsync error codes: https://doc.dovecot.org/admin_manual/error_codes/
     
    Last edited: May 4, 2022
    Fire Fox and till like this.
Thread Status:
Not open for further replies.

Share This Page