replication with plugin won´t work

Florian Schaal mailinglist at schaal-24.de
Wed Jun 11 07:56:46 UTC 2014


Hi all,

i try to setup a master-master replication with dovecot / dsync. I´m
using virtual-users.

When I call

doveadm sync -A remote:vmail at server2

new mails are copied to the second server, but new messages from server
2 not on Server 1. To fix this i run

doveadm sync -A remote:vmail at server

on the 2nd server

But I want that it works with dovecot / dsync (see my config at the end
- identical on bot servers, only mail_replica is different).

I added some services regarding http://wiki2.dovecot.org/Replication

If i send a local mail on one server it will not be replicated to the
other server until i run doveadm sync.

Maybe i just missed some steps in my setup?

doveadm user '*' displays the right users on both servers.

=== docecot.conf ===
# 2.2.13 (7b25994a8cb7): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-042stab076.8 x86_64 Debian 7.5
auth_mechanisms = plain login ntlm
disable_plaintext_auth = no
dsync_remote_cmd = ssh -p 4711 -l%{login} %{host} doveadm dsync -u%u
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_debug = yes
mail_plugins = " notify replication"
mail_privileged_group = vmail
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  mail_replica = remote:vmail at server2
  quota = dict:user::file:/var/vmail/%d/%n/.quotausage
  replication_full_sync_interval = 1 hours
  sieve = /var/vmail/%d/%n/.sieve
}
protocols = imap pop3
service aggregator {
  fifo_listener replication-notify-fifo {
    mode = 0666
    user = vmail
  }
  unix_listener replication-notify {
    mode = 0666
    user = vmail
  }
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    group = vmail
    mode = 0600
    user = vmail
  }
  user = root
}
service config {
  unix_listener config {
    user = vmail
  }
}
service doveadm {
  user = vmail
}
service imap-login {
  client_limit = 1000
  process_limit = 500
}
service replicator {
  process_min_avail = 1
}
ssl_cert = </etc/postfix/smtpd.cert
ssl_key = </etc/postfix/smtpd.key
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocol imap {
  mail_plugins = quota imap_quota
}
protocol pop3 {
  mail_plugins = quota
  pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  mail_plugins = sieve quota
}
=== docecot.conf ===

regards
Florian


More information about the dovecot mailing list