<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello all.</p>
<p>I'm trying to set up the dovecot replicator plugin to
automatically replicate mail between 2 servers.</p>
<p>The servers are both using iredmail with dovecot as the imap
server.<br>
</p>
<p>I have everything working if i run dovecot replicator replicate
\* all accounts update. But if an account receives a message it
isn't automatically sent to the other system.</p>
<p><br>
</p>
<p>The system config.</p>
<p><br>
</p>
<p>OS, ubuntu 20.04</p>
<p>db, postgresql 12</p>
<p>dovecot info.</p>
<p>root@mail:~# dovecot -n<br>
# 2.3.7.2 (3c910f64b): /etc/dovecot/dovecot.conf<br>
# Pigeonhole version 0.5.7.2 ()<br>
# OS: Linux 5.3.18-2-pve x86_64 Ubuntu 20.04.1 LTS<br>
# Hostname: mail.daystar.io<br>
auth_master_user_separator = *<br>
auth_mechanisms = PLAIN LOGIN<br>
deliver_log_format = from=%{from},
envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m,
size=%{size}, delivery_time=%{delivery_time}ms, %$<br>
dict {<br>
acl = pgsql:/etc/dovecot/dovecot-share-folder.conf<br>
lastlogin = pgsql:/etc/dovecot/dovecot-last-login.conf<br>
quotadict = pgsql:/etc/dovecot/dovecot-used-quota.conf<br>
}<br>
doveadm_password = # hidden, use -P to show it<br>
doveadm_port = 10993<br>
first_valid_uid = 2000<br>
last_valid_uid = 2000<br>
listen = * [::]<br>
login_log_format_elements = user=<%u> method=%m rip=%r
lip=%l mpid=%e %c %k session=<%{session}><br>
mail_gid = 2000<br>
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/<br>
mail_plugins = quota mailbox_alias acl mail_log notify<br>
mail_uid = 2000<br>
managesieve_notify_capability = mailto<br>
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 index ihave duplicate mime foreverypart
extracttext<br>
metric imap_command_finished {<br>
event_name = imap_command_finished<br>
}<br>
namespace {<br>
inbox = yes<br>
location =<br>
mailbox Archive {<br>
auto = no<br>
special_use = \Archive<br>
}<br>
mailbox Archives {<br>
auto = no<br>
special_use = \Archive<br>
}<br>
mailbox "Deleted Messages" {<br>
auto = no<br>
special_use = \Trash<br>
}<br>
mailbox Drafts {<br>
auto = subscribe<br>
special_use = \Drafts<br>
}<br>
mailbox Junk {<br>
auto = subscribe<br>
special_use = \Junk<br>
}<br>
mailbox "Junk E-mail" {<br>
auto = no<br>
special_use = \Junk<br>
}<br>
mailbox Sent {<br>
auto = subscribe<br>
special_use = \Sent<br>
}<br>
mailbox "Sent Items" {<br>
auto = no<br>
special_use = \Sent<br>
}<br>
mailbox "Sent Messages" {<br>
auto = no<br>
special_use = \Sent<br>
}<br>
mailbox Spam {<br>
auto = no<br>
special_use = \Junk<br>
}<br>
mailbox Trash {<br>
auto = subscribe<br>
special_use = \Trash<br>
}<br>
prefix =<br>
separator = /<br>
type = private<br>
}<br>
namespace {<br>
list = children<br>
location =
maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln<br>
prefix = Shared/%%u/<br>
separator = /<br>
subscriptions = yes<br>
type = shared<br>
}<br>
passdb {<br>
args = /etc/dovecot/dovecot-pgsql.conf<br>
driver = sql<br>
}<br>
passdb {<br>
args = /etc/dovecot/dovecot-master-users<br>
driver = passwd-file<br>
master = yes<br>
}<br>
plugin {<br>
acl = vfile<br>
acl_shared_dict = proxy::acl<br>
mail_log_events = delete undelete expunge copy mailbox_create
mailbox_delete mailbox_rename<br>
mail_log_fields = uid box msgid size from subject flags<br>
mail_replica = tcp:10.2.2.113:10993<br>
mailbox_alias_new = Sent Messages<br>
mailbox_alias_new2 = Sent Items<br>
mailbox_alias_old = Sent<br>
mailbox_alias_old2 = Sent<br>
quota = dict:user::proxy::quotadict<br>
quota_grace = 10%%<br>
quota_status_nouser = DUNNO<br>
quota_status_overquota = 552 5.2.2 Mailbox is full<br>
quota_status_success = DUNNO<br>
quota_warning = storage=100%% quota-warning 100 %u<br>
quota_warning2 = storage=95%% quota-warning 95 %u<br>
quota_warning3 = storage=90%% quota-warning 90 %u<br>
quota_warning4 = storage=85%% quota-warning 85 %u<br>
sieve = ~/sieve/dovecot.sieve<br>
sieve_before = /var/vmail/sieve/dovecot.sieve<br>
sieve_dir = ~/sieve<br>
sieve_global_dir = /var/vmail/sieve<br>
sieve_max_redirects = 30<br>
sieve_vacation_send_from_recipient = yes<br>
}<br>
protocols = pop3 imap sieve lmtp<br>
service anvil {<br>
client_limit = 7000<br>
}<br>
service auth {<br>
client_limit = 7000<br>
unix_listener /var/spool/postfix/private/dovecot-auth {<br>
group = postfix<br>
mode = 0666<br>
user = postfix<br>
}<br>
unix_listener auth-master {<br>
group = vmail<br>
mode = 0666<br>
user = vmail<br>
}<br>
unix_listener auth-userdb {<br>
group = vmail<br>
mode = 0660<br>
user = vmail<br>
}<br>
}<br>
service dict {<br>
unix_listener dict {<br>
group = vmail<br>
mode = 0660<br>
user = vmail<br>
}<br>
}<br>
service doveadm {<br>
inet_listener {<br>
port = 10993<br>
}<br>
}<br>
service imap-login {<br>
process_limit = 6144<br>
service_count = 1<br>
}<br>
service imap {<br>
process_limit = 6144<br>
}<br>
service lmtp {<br>
executable = lmtp -L<br>
inet_listener lmtp {<br>
address = 127.0.0.1<br>
port = 24<br>
}<br>
process_min_avail = 5<br>
unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>
group = postfix<br>
mode = 0600<br>
user = postfix<br>
}<br>
user = vmail<br>
}<br>
service managesieve-login {<br>
inet_listener sieve {<br>
address = 127.0.0.1<br>
port = 4190<br>
}<br>
}<br>
service pop3-login {<br>
service_count = 1<br>
}<br>
service quota-status {<br>
client_limit = 1<br>
executable = quota-status -p postfix<br>
inet_listener {<br>
address = 127.0.0.1<br>
port = 12340<br>
}<br>
}<br>
service quota-warning {<br>
executable = script /usr/local/bin/dovecot-quota-warning.sh<br>
unix_listener quota-warning {<br>
group = vmail<br>
mode = 0660<br>
user = vmail<br>
}<br>
}<br>
service replicator {<br>
process_min_avail = 1<br>
unix_listener replicator-doveadm {<br>
mode = 0666<br>
}<br>
}<br>
service stats {<br>
client_limit = 5000<br>
fifo_listener stats-mail {<br>
mode = 0644<br>
user = vmail<br>
}<br>
inet_listener {<br>
address = 127.0.0.1<br>
port = 24242<br>
}<br>
unix_listener stats-writer {<br>
group = vmail<br>
mode = 0660<br>
user = vmail<br>
}<br>
}<br>
ssl = required<br>
ssl_ca = </etc/ssl/certs/star.daystar.io.crt<br>
ssl_cert = </etc/ssl/certs/star.daystar.io-chained.crt<br>
ssl_cipher_list =
ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA<br>
ssl_dh = # hidden, use -P to show it<br>
ssl_key = # hidden, use -P to show it<br>
syslog_facility = local5<br>
userdb {<br>
args = /etc/dovecot/dovecot-pgsql.conf<br>
driver = sql<br>
}<br>
protocol lda {<br>
lda_mailbox_autocreate = yes<br>
lda_mailbox_autosubscribe = yes<br>
mail_plugins = quota mailbox_alias acl mail_log notify sieve<br>
}<br>
protocol lmtp {<br>
lmtp_save_to_detail_mailbox = yes<br>
mail_plugins = quota mailbox_alias acl mail_log notify sieve<br>
recipient_delimiter = +<br>
}<br>
protocol imap {<br>
imap_client_workarounds = tb-extra-mailbox-sep<br>
mail_max_userip_connections = 100<br>
mail_plugins = quota mailbox_alias acl mail_log notify
imap_quota imap_acl<br>
}<br>
protocol pop3 {<br>
mail_max_userip_connections = 50<br>
mail_plugins = quota mailbox_alias acl mail_log notify<br>
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh<br>
pop3_uidl_format = %08Xu%08Xv<br>
}<br>
</p>
<p><br>
</p>
<p>What's wrong with this picture?</p>
<p><br>
</p>
<p>Thanks.</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<br>
<p> regards<br>
Norman King<br>
Compass Foundation sysadmin/tech support</p>
<p>Phone, 856-974-5335 ext 221</p>
<p> <a href="mailto:support@compassfoundation.io">support@compassfoundation.io</a></p>
<p><a href="https://compassfoundation.io">Website</a></p>
</div>
</body>
</html>