Strange repplication issues
Bertrand Caplet
bertrand.caplet at chunkz.net
Sun Nov 23 20:50:37 UTC 2014
Hi,
I know there are lots of questions about replication, but I searched and
didn't find my question.
I've got some problems with syncing. I've got 2 servers: A and B
When a email arrives on server A sometimes it's not syncing in server B
I think server A doesn't always notify server B there are new mails to
sync. But I don't know how to fix it.
And I spotted something, when it isn't syncing. The only thing to do is
to send local or remote mail to server B and then it sync or do a
"doveadm sync -A tcp:serverB.example:port" of course.
My doveconf -n of the two servers are in attachements bellow.
By the way both of my dovecot servers are v2.2.9
P.S.: I didn't test from server B to A but I think it's the same problem.
Thanks in advance,
Regards.
--
CHUNKZ.NET - casual fiddler and computer technician
Bertrand Caplet, Flers (FR)
Feel free to send encrypted/signed messages
Key ID: FF395BD9
GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9
-------------- next part --------------
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-34-generic x86_64 Ubuntu 14.04.1 LTS ext4
# THIS IS SERVER A CONFIGURATION
auth_mechanisms = CRAM-MD5 PLAIN LOGIN
dict {
sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = nicepassword
dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
first_valid_uid = 106
last_valid_uid = 106
mail_gid = Debian-exim
mail_location = maildir:/var/mail/virtual/%d/%n
mail_plugins = quota
mail_uid = Debian-exim
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
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 Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
mail_replica = tcp:serverB.example:12345
quota = maildir:User quota
quota_exceeded_message = Quota exceeded, please go to http://site.example/over-quota-help for instructions on how to fix this.
quota_grace = 10%%
quota_rule2 = Trash:storage=+50M
quota_rule3 = Sent:storage=+50M
quota_set = dict:proxy::sqlquota
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_before = /var/mail/sieve/spam.conf
sieve_dir = ~/sieve
}
protocols = " imap lmtp sieve"
service aggregator {
fifo_listener replication-notify-fifo {
group = Debian-exim
user = Debian-exim
}
unix_listener replication-notify {
group = Debian-exim
user = Debian-exim
}
}
service auth {
unix_listener auth-client {
group = Debian-exim
mode = 0660
user = Debian-exim
}
unix_listener auth-userdb {
group = Debian-exim
mode = 0660
user = Debian-exim
}
}
service doveadm {
inet_listener {
port = 12345
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 1
service_count = 1
vsz_limit = 64 M
}
service managesieve {
process_limit = 10
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
mode = 0660
user = Debian-exim
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
group = Debian-exim
mode = 0600
user = Debian-exim
}
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lmtp {
lmtp_save_to_detail_mailbox = yes
mail_plugins = " sieve sieve"
recipient_delimiter = +
}
protocol imap {
mail_plugins = quota imap_quota
}
protocol sieve {
log_path = /var/log/dovecot-sieve-errors.log
managesieve_implementation_string = Dovecot
managesieve_max_line_length = 65536
}
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 3.13.0-35-generic x86_64 Ubuntu 14.04.1 LTS ext4
# THIS IS SERVER B CONFIGURATION
auth_mechanisms = CRAM-MD5 PLAIN LOGIN
dict {
sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
disable_plaintext_auth = no
doveadm_password = nicepassword
dsync_remote_cmd = ssh -l%{login} %{host} doveadm dsync-server -u%u
first_valid_uid = 106
last_valid_uid = 106
mail_gid = Debian-exim
mail_location = maildir:/var/mail/virtual/%d/%n
mail_plugins = quota notify replication
mail_uid = Debian-exim
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
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 Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
mail_replica = tcp:serverA.example:12345
quota = maildir:User quota
quota_exceeded_message = Quota exceeded, please go to http://site.example/over-quota-help for instructions on how to fix this.
quota_grace = 10%%
quota_rule2 = Trash:storage=+50M
quota_rule3 = Sent:storage=+50M
quota_set = dict:proxy::sqlquota
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_before = /var/mail/sieve/spam.conf
sieve_dir = ~/sieve
}
protocols = " imap lmtp sieve pop3"
service aggregator {
fifo_listener replication-notify-fifo {
group = Debian-exim
user = Debian-exim
}
unix_listener replication-notify {
group = Debian-exim
user = Debian-exim
}
}
service auth {
unix_listener auth-client {
group = Debian-exim
mode = 0660
user = Debian-exim
}
unix_listener auth-userdb {
group = Debian-exim
mode = 0660
user = Debian-exim
}
}
service doveadm {
inet_listener {
port = 12345
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
process_min_avail = 1
service_count = 1
vsz_limit = 64 M
}
service managesieve {
process_limit = 10
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
mode = 0660
user = Debian-exim
}
}
service replicator {
process_min_avail = 1
unix_listener replicator-doveadm {
group = Debian-exim
mode = 0600
user = Debian-exim
}
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lmtp {
lmtp_save_to_detail_mailbox = yes
mail_plugins = " sieve sieve"
recipient_delimiter = +
}
protocol imap {
mail_plugins = quota notify replication imap_quota
}
protocol sieve {
log_path = /var/log/dovecot-sieve-errors.log
managesieve_implementation_string = Dovecot
managesieve_max_line_length = 65536
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20141123/23412b8d/attachment.sig>
More information about the dovecot
mailing list