Hi,
I'm running two Dovecot 2.2.9 Servers running replication. Users are the
same.
My Replication is very slow. Mails from Server one appear on Server two
after 1-3 hours. Rarely i can see duplicated mails (Log message "Expunged
message reappeared. Setting new UID").
This is my doveconf -n output:
> # 2.2.9: /etc/dovecot/dovecot.conf
> # OS: Linux 3.13.0-44-generic x86_64 Ubuntu 14.04.1 LTS
> auth_cache_size = 10 M
> auth_mechanisms = plain login
> debug_log_path = /var/log/dovecot-debug.log
> doveadm_password = ABC012456789ABC
> doveadm_port = 12345
> imap_idle_notify_interval = 30 mins
> info_log_path = /var/log/dovecot-info.log
> listen = *,[::]
> log_timestamp = "%Y-%m-%d %H:%M:%S "
> login_greeting = Dovecot (Ubuntu) ready.
> mail_fsync = always
> mail_gid = vmail
> mail_location = mbox:~/mail:INBOX=/var/mail/%u
> mail_plugins = " notify replication zlib mail_log"
> mail_privileged_group = vmail
> mail_uid = vmail
> mailbox_idle_check_interval = 1 mins
> mbox_lazy_writes = no
> namespace inbox {
> inbox = yes
> location > prefix > }
> passdb {
> args = /etc/dovecot/dovecot-sql.conf
> driver = sql
> }
> passdb {
> args = /etc/dovecot/dovecot-sql.conf
> driver = sql
> }
> plugin {
> mail_log_events = delete undelete expunge copy mailbox_delete
> mailbox_rename
> mail_log_fields = uid box msgid size
> mail_replica = tcp:server2.mydomain.de:12345
> quota = dict:user::file:/var/vmail/%d/%n/.quotausage
> replication_full_sync_interval = 1 hour
> sieve = /var/vmail/%d/%n/.sieve
> zlib_save = gz
> zlib_save_level = 9
> }
> postmaster_address = postmaster at mydomain.tld
> protocols = imap pop3
> replication_max_conns = 30
> 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 {
> inet_listener {
> port = 12345
> ssl = no
> }
> user = vmail
> }
> service imap-login {
> client_limit = 1000
> inet_listener imap {
> port = 143
> }
> inet_listener imaps {
> port = 993
> ssl = yes
> }
> process_limit = 500
> process_min_avail = 5
> service_count = 1
> }
> service lmtp {
> executable = lmtp -L
> process_min_avail = 5
> unix_listener lmtp {
> group = postfix
> mode = 0666
> user = postfix
> }
> user = vmail
> }
> service pop3-login {
> inet_listener pop3 {
> port = 110
> }
> inet_listener pop3s {
> port = 995
> ssl = yes
> }
> }
> service replicator {
> process_min_avail = 1
> unix_listener replicator-doveadm {
> group = vmail
> mode = 0666
> user = vmail
> }
> unix_listener replicator {
> group = vmail
> mode = 0666
> user = vmail
> }
> }
> ssl_ca = </etc/ssl/certs/startcom-bundle.pem
> ssl_cert = </etc/ssl/certs/server2.pem
> ssl_cipher_list >
EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH:EDH:HIGH:+RSA:+SHA:
> MEDIUM:+RC4:RC4:!aNULL:!MD5:!eNULL:!LOW:!EXP:!DSS:!PSK:!SRP
> ssl_dh_parameters_length = 2048
> ssl_key = </etc/ssl/private/server2.key
> ssl_prefer_server_ciphers = yes
> ssl_protocols = !SSLv2 !SSLv3
> ssl_require_crl = no
> userdb {
> args = /etc/dovecot/dovecot-sql.conf
> driver = sql
> }
> userdb {
> args = /etc/dovecot/dovecot-sql.conf
> driver = sql
> }
> protocol imap {
> imap_client_workarounds = delay-newmail
> mail_max_userip_connections = 15
> mail_plugins = " notify replication zlib mail_log quota imap_quota
> imap_zlib"
> ssl_ca = </etc/ssl/certs/startcom-bundle.pem
> ssl_cert = </etc/ssl/certs/imap-domain-de.crt
> ssl_key = </etc/ssl/private/imap-domain-de.key
> }
> protocol pop3 {
> mail_max_userip_connections = 10
> mail_plugins = " notify replication zlib mail_log quota"
> pop3_uidl_format = %08Xu%08Xv
> ssl_ca = </etc/ssl/certs/startcom-bundle.pem
> ssl_cert = </etc/ssl/certs/server1.pem
> ssl_key = </etc/ssl/private/server1.key
> }
> protocol lda {
> info_log_path = /var/log/dovecot-lda.log
> mail_plugins = " notify replication zlib mail_log"
> }
>
Aditionally, I forced a "doveadm sync -f" using crontab twice a day.
Can anybody give me a hint, please?
--
regards,
Jonas