Dear Dovecot-Admins,
I've set up a pair of Dovecot Servers, please find config of server one
attached.
They are configured to replicate changes over a tcp connection using port
12345, set up as described in http://wiki2.dovecot.org/Replication article
page.
Adding the user postboxes to replication using "doveadm replicator add
'*'
" syncs the mailboxes as expected. Unfortunately both of the servers does
not propagate any changes, e.G. new mail in Sent folder. Removing and
adding the mailboxes again syncs them again.
Can anybody help me to get the notify working, please?
many thanks in advance,
Jonas
-------------- next part --------------
# 2.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-042stab094.8 x86_64 Ubuntu 14.04.1 LTS
auth_mechanisms = plain login
doveadm_password = MySecret
doveadm_port = 12345
dsync_remote_cmd = ssh -p 4711 -l%{login} %{host} doveadm dsync-server -u%u
listen = *,[::]
log_timestamp = "%Y-%m-%d %H:%M:%S "
login_greeting = Dovecot (Ubuntu) ready.
mail_gid = mail
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_plugins = " notify replication"
mail_privileged_group = vmail
mail_uid = vmail
mailbox_idle_check_interval = 1 mins
namespace inbox {
inbox = yes
location prefix }
passdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
plugin {
mail_replica = tcp:luigi.servers.netz1000.de:12345
quota = dict:user::file:/var/vmail/%d/%n/.quotausage
replication_full_sync_interval = 1 hour
sieve = /var/vmail/%d/%n/.sieve
}
postmaster_address = postmaster at sara.servers.netz1000.de
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 {
inet_listener {
port = 12345
}
user = vmail
}
service imap-login {
client_limit = 1000
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
process_limit = 500
}
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 {
mode = 0666
}
}
ssl_ca = </etc/ssl/certs/startcom-ca-bundle.pem
ssl_cert = </etc/ssl/certs/sara-servers.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_client_ca_dir = /etc/ssl/certs
ssl_dh_parameters_length = 2048
ssl_key = </etc/ssl/private/sara-servers.key
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
userdb {
args = /etc/dovecot/dovecot-sql.conf
driver = sql
}
verbose_ssl = yes
protocol lda {
mail_plugins = sieve quota
}
protocol imap {
mail_max_userip_connections = 15
mail_plugins = quota imap_quota
}
protocol pop3 {
mail_max_userip_connections = 10
mail_plugins = quota
pop3_uidl_format = %08Xu%08Xv
}
-------------- next part --------------
root at sara:/# doveadm replicator status user01
username priority fast sync full sync failed
user01 none 11:05:01 11:05:01 -
root at sara:/# doveadm -D sync -u username user01
doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/lib15_notify_plugin.so
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/lib20_replication_plugin.so
doveadm(root): Debug: Loading modules from directory:
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined
symbol: acl_user_module (this is usually intentional, so just ignore this
message)
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so:
undefined symbol: expire_set_deinit (this is usually intentional, so just ignore
this mes sage)
doveadm(root): Debug: Skipping module doveadm_quota_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so:
undefined symbol: quota_user_module (this is usually intentional, so just ignore
this messa ge)
doveadm(root): Debug: Module loaded:
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen()
failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined
symbol: fts_backend_rescan (this is usually intentional, so just ignore this
message)
doveadm(username): Fatal: User doesn't exist
root at sara:/# doveadm replicator status
Queued 'sync' requests 0
Queued 'high' requests 0
Queued 'low' requests 0
Queued 'failed' requests 0
Queued 'full resync' requests 0
Waiting 'failed' requests 0
Total number of known users 1
root at sara:/home/jonas#