On 2/26/13 12:56 AM, Michael Grimm wrote:
On 2013-02-25 22:57, list@airstreamcomm.net wrote:
Trying the dsync replication for the first time, and I am confused as to the intended purpose of the replication service. Is the dsync replication meant to replicate mails immediately upon submission to lmtp/lda and on change via IMAP/POP3,
Yes.
or is the replication_full_sync_interval the only configurable for determining when the replication will occur?
No.
Timo, correct me if I am mistaken, but that keyword will tell the replication system when to apply a "dsync -f" aka running in "full sync mode" at latest.
Maybe a better question is there any documentation on dsync replication (could not find any)?
http://blog.dovecot.org/2012/02/dovecot-clustering-with-dsync-based.html http://www.dovecot.org/img/dsync-director-replication-ssh.png http://www.dovecot.org/img/dsync-director-replication.png
(Sorry for the long link)
HTH, Michael
Thanks for the information Michael. I must be configuring this incorrectly as the replication is not occurring when messages are being delivered via LMTP in my setup. When I restart dovecot the messages are synced immediately, but not on delivery.
Here is my config:
# 2.2.rc2: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-279.22.1.el6.x86_64 x86_64 CentOS release 6.3 (Final) auth_debug = yes auth_verbose = yes mail_debug = yes mail_location = maildir:~/Maildir 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 { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = passwd-file } plugin { mail_replica = remote:vmail@mail2.clustertest.air replication_full_sync_interval = 1 hours } postmaster_address = root@clustertest.air service aggregator { fifo_listener replication-notify-fifo { mode = 0600 user = vmail } unix_listener replication-notify { mode = 0600 user = vmail } } service auth { unix_listener auth-userdb { mode = 0777 } } service config { unix_listener config { user = vmail } } service doveadm { user = vmail } service lmtp { process_min_avail = 20 unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service replicator { process_min_avail = 1 } ssl_cert =