[Dovecot] Replication: long detalys

Lucas Rothamel - Eye Catching Webdesign info at eye-catching-webdesign.de
Mon Oct 7 13:35:10 EEST 2013


Hello everybody,

I am running dovecot 2.1.7 on Debian Wheezy on two servers with 
replication set up, MTA is postfix. The idea is to have a redundant mail 
system so that when one server fails, users can continue using the other 
server (failover of POP/IMAP through DNS redirection). Servers are 
called srv06 and srv07:

Below is the dovecot config, both servers have identical config, only 
the replica srv0x address is different. I read to put this line into 
10-mail.conf and I did:
mail_plugins = $mail_plugins notify replication

My Problem: When E-Mail arrives on one server, it is only available on 
the other server many hours later. Same behaviour in both directions. 
This means I see different mailboxes via IMAP depending on which server 
I connect to - in theory I want the client not to be able to tell which 
server it is connected to.

dovecot -n:
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.1 ext4
auth_mechanisms = plain login cram-md5
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/%d/%n/Maildir
mail_privileged_group = mail
passdb {
   args = /etc/dovecot/dovecot-sql.conf
   driver = sql
}
plugin {
   mail_replica = remote:vmail at srv07.xxx
   quota = maildir:User quota
   quota_rule = *:storage=1GB
   replication_full_sync_interval = 1 hours
}
protocols = imap pop3
service aggregator {
   fifo_listener replication-notify-fifo {
     mode = 0600
     user = vmail
   }
   unix_listener replication-notify {
     mode = 0600
     user = vmail
   }
}
service auth {
   unix_listener /var/spool/postfix/private/auth {
     group = postfix
     mode = 0660
     user = postfix
   }
   user = root
}
service config {
   unix_listener config {
     user = vmail
   }
}
service doveadm {
   user = vmail
}
service replicator {
   process_min_avail = 1
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
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 = quota
   postmaster_address = mk at xxx
}

output of cat /var/log/mail.log | grep dsync:
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1522, 
file=1381075321.V902I19a2a66M626453.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1523, 
file=1381075381.V902I19a2bb2M737865.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1524, 
file=1381075441.V902I19a3185M959529.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1525, 
file=1381075501.V902I19a3187M989935.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1526, 
file=1381075561.V902I19a3188M971187.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1527, 
file=1381075622.V902I19a3189M60093.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1528, 
file=1381075682.V902I19a318aM231725.srv07.xxxxx:2,)
Oct  7 05:31:45 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1529, 
file=1381075741.V902I19a318bM353115.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1530, 
file=1381075801.V902I19a318cM609633.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1531, 
file=1381075861.V902I19a318dM392514.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1532, 
file=1381075921.V902I19a318eM521040.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1533, 
file=1381075981.V902I19a318fM611775.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1534, 
file=1381076041.V902I19a3190M734263.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1535, 
file=1381076101.V902I19a3191M850303.srv07.xxxxx:2,)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1536, 
file=1381076881.V902I19a3192M362845.srv07.xxxxx:2,S)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1537, 
file=1380998413.V902I19a315bM206668.srv07.xxxxx:2,e)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1538, 
file=1380999043.V902I19a315cM413578.srv07.xxxxx:2,e)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1539, 
file=1380574384.V902I19a3146M616434.srv07.xxxxx:2,e)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Error: remote: 
dsync-remote(sysop at xxxxx): Warning: Maildir /home/xxxxx/sysop/Maildir: 
Expunged message reappeared, giving a new UID (old uid=1540, 
file=1381110251.V902I19a3186M993173.srv07.xxxxx)
Oct  7 05:31:46 srv06 dovecot: dsync-local(sysop at xxxxx): Warning: 
Mailbox changes caused a desync. You may want to run dsync again.

However, I cannot understand what this log wants to tell me? Please 
advise. Thanks.

Lucas

-- 
Lucas Rothamel
Eye Catching Webdesign
info at eye-catching-webdesign.de - www.eye-catching-webdesign.de

You know, we go to the gym to keep the body fit. Similarly the mind needs some rest. The mind is bombarded with so many impressions. Our mind has been bombarded by impressions the whole time. It needs a different kind of rest other than sleep. And meditation is such a rest. It calms the mind. energizes the spirit and makes the body more strong and vibrant. improves the immune system. The immune cells, the T-cell count go higher through Sudarshan Kriya and meditation. And you feel so nice inside. - Sri Sri Ravi Shankar
I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4282 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://dovecot.org/pipermail/dovecot/attachments/20131007/1ecf03e9/attachment-0001.bin>


More information about the dovecot mailing list