[Dovecot] v2.2.beta2 released

Michael Grimm trashcan at odo.in-berlin.de
Fri Feb 22 09:28:47 EET 2013


Hi --

On 2013-02-21 Michescu Andrei wrote:

> Can you post to the list your working configurations for dovecot?


(This is based on 
http://dovecot.org/list/dovecot/2012-March/064513.html)

My design:

         single user "vmail" to run dsync over ssh
         (one may use root instead)


Thus, my prerequisites are:

         create "vmail" user accounts at both servers (example: mx1 and 
mx2)
         exchange ssh-keys for ssh authentication between both servers 
involved


My relevant parts from dovecot.conf, identical for both servers:

         ## --- DSYNC REPLICATION 
----------------------------------------

         # ssh command line used in dsync replication
         # added:
         #       -p xxx                  (ssh port)
         #       -o mail_plugins=        (omit mail_log plugins for 
dsync)
         #
         dsync_remote_cmd = ssh -p 44488 -l%{login} %{host} doveadm 
-omail_plugins= dsync-server -u%u -n%{namespace}

         # aggregator, replicator, doveadm, and config needed, and 
dsync_remote_cmd (see above)
         #
         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
         }
         service doveadm {
                 # if you're using a single virtual user, set this to 
start ssh as vmail (not root)
                 #
                 user = vmail
         }
         service config {
                 # needed to grant access to /var/run/dovecot/config for 
service doveadm
                 #
                 unix_listener config {
                         user = vmail
                 }
         }



The following part is for server mx1, only:
-------------------------------------------

         # dsync replication plugin
         #
         plugin {
                 # this host replicates to remote host
                 #
                 mail_replica = remote:vmail at mx2.FQDN

                 # run full synchronization mode every other hour
                 #
                 replication_full_sync_interval = 1 hours
         }


The following part is for server mx2, only:
-------------------------------------------

         # dsync replication plugin
         #
         plugin {
                 # this host replicates to remote host
                 #
                 mail_replica = remote:vmail at mx1.FQDN

                 # run full synchronization mode every other hour
                 #
                 replication_full_sync_interval = 1 hours
         }

HTH,
Michael




More information about the dovecot mailing list