[Dovecot] Replication Setup

springy dan at hart-house.com
Sat Nov 16 05:19:36 EET 2013


Hi,

I am attempting to setup replication between two hosts running Centos 6.4
and Dovecot 2.2.5.  My users are real unix users, so I am trying to run the
replication as root user, so that it has the appropriate permissions to run. 
I have two users at present syd1 and syd2, and the two hosts are called syd1
and syd2 as well.

When I start Dovecot with the settings below, nothing happens, and the two
mailboxes remain un-synced.  There are no errors in the log, just Dovecot
starting successfully.  I have attempted to run the dsync command manually
from syd1:

ssh -q -o StrictHostKeyChecking=no -i /home/vmail/.ssh/id_ecdsa root at syd2
doveadm dsync-server -usyd1

and I get the following in response, but this might be normal:

VERSION	dsync	3	1
Hhostname	sync_ns_prefix	sync_box	sync_box_guid	sync_type	debug
sync_visible_namespaces	exclude_mailboxes	send_mail_requests	backup_send
backup_recv	lock_timeouno_mail_sync	no_backup_overwrite
Smailbox_guid	last_uidvalidity	last_common_uid	last_common_modseq
last_common_pvt_modseq	changes_during_sync
Nname	existence	mailbox_guid	uid_validity	uid_next	last_renamed_or_created
subscribed	last_subscription_change
Dhierarchy_sep	mailboxes	dirs	unsubscribes
Bmailbox_guid	uid_validity	uid_next	messages_count	first_recent_uid
highest_modseq	highest_pvt_modseq	mailbox_lost	cache_fields	have_guids
have_save_guids
Atype	key	value	stream	deleted	last_change	modseq
Ctype	uid	guid	hdr_hash	modseq	pvt_modseq	save_timestamp	add_flags
remove_flags	final_flags	keywords_reset	keyword_changes
Rguid	uid
Mguid	uid	pop3_uidl	pop3_order	received_date	stream
cname	decision	last_used
.
Hsyd2

The prompt hangs, when I push enter I get:

dsync-remote(syd1): Error: dsync(local): Remote dsync doesn't use compatible
protocol

Please can someone help me diagnose?

Cheers, D



Here are my dovecot in outputs:

syd1:
# 2.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-358.23.2.el6.x86_64 x86_64 CentOS release 6.4 (Final) 
auth_mechanisms = plain login
disable_plaintext_auth = no
dsync_remote_cmd = ssh -q -o StrictHostKeyChecking=no -i
/home/vmail/.ssh/id_ecdsa  root@%{host} doveadm dsync-server -u%u
mail_location = maildir:~/Maildir
mail_plugins = " notify replication"
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
plugin {
  mail_replica = remote:root at syd2
}
protocols = imap pop3
service replicator {
  process_min_avail = 1
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = replication
}
protocol imap {
  mail_plugins = replication
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}


syd2:
# 2.2.5: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-358.23.2.el6.x86_64 x86_64 CentOS release 6.4 (Final) 
auth_debug = yes
auth_mechanisms = plain login
disable_plaintext_auth = no
dsync_remote_cmd = ssh -q -o StrictHostKeyChecking=no -i
/home/vmail/.ssh/id_ecdsa  root@%{host} doveadm dsync-server -u%u
mail_location = maildir:~/Maildir
mail_plugins = " notify replication"
mbox_write_locks = fcntl
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  driver = pam
}
plugin {
  mail_replica = remote:root at syd2
}
protocols = imap pop3
service replicator {
  process_min_avail = 1
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = replication
}
protocol imap {
  mail_plugins = replication
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}





--
View this message in context: http://dovecot.2317879.n4.nabble.com/Replication-Setup-tp45415.html
Sent from the Dovecot mailing list archive at Nabble.com.


More information about the dovecot mailing list