[Dovecot] replication howto

Matteo Cazzador mcazzador at gmail.com
Thu Mar 15 18:42:03 EET 2012


Hello, excuse me but there is some documentation about replication now?
I dont' understand where i must put the lines below (dovecot.conf? , 20-imap?)
Excuse but it's not so clear for me cause i'm a new dovecot user.
Another question, i use virtual users on mysql backend , so for
replication i need to give ssh at every virtual users?
Or i can use a only use a system ssh user?
Thank's



service aggregator {
   # give enough permissions for mail processes
   fifo_listener replication-notify-fifo {
     user = vmail
     mode = 0600
   }
   unix_listener replication-notify {
     user = vmail
     mode = 0600
   }
}

service replicator {
   # start replication at startup
   process_min_avail = 1
}

plugin {
   # host1 replicates to host2
   mail_replica = remote:vmail at host2.example.com
   # host2 replicates to host1
   #mail_replica = remote:vmail at host1.example.com
}

#dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
-l%{lock_timeout} -n%{namespace}

service doveadm {
   # if you're using a single virtual user, set this to
   # start ssh as vmail (not root)
   user = vmail
}

-- 
Rispetta l'ambiente: se non ti è necessario, non stampare questa mail.
******************************************
Ing. Matteo Cazzador
Email: mcazzador at gmail.com
******************************************


More information about the dovecot mailing list