Daniel Botting
2019-Oct-09 16:07 UTC
Sieve replication - Debian 9.11 - Dovecot 2.2.7 - script changes not replicated
Hi, I am trying to setup Sieve replication, it is almost working: 1/ Create a script - sync'd across 2/ Activate/de-activate a script - change sync'd 3/ Delete a script - change sync'd But if I make a change to a script it is not replicated, unless I de-activate and activate again. I am seeing in the logs the below during this process (de-activating/activating): Oct? 9 17:01:39 hostname dovecot: dsync-local(a_user): Debug: doveadm-sieve: Iterating Sieve mailbox attribute: vendor/vendor.dovecot/pvt/server/sieve/files/0910-active-1640 Oct? 9 17:01:39 hostname dovecot: dsync-local(a_user): Debug: doveadm-sieve: Value missing for key `vendor/vendor.dovecot/pvt/server/sieve/default' (last change: 2019-10-09 17:01:37) # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.16 (fed8554) # OS: Linux 4.9.0-3-amd64 x86_64 Debian 9.11 auth_debug = yes auth_debug_passwords = yes auth_verbose = yes default_vsz_limit = 0 doveadm_password =? # hidden, use -P to show it first_valid_gid = 8 first_valid_uid = 8 last_valid_gid = 8 last_valid_uid = 8 lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes mail_debug = yes mail_gid = 8 mail_location = maildir:~/Maildir mail_plugins = " notify replication" mail_uid = 8 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 index ihave duplicate mime foreverypart extracttext editheader imapflags 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 Trash { ??? special_use = \Trash ? } ? prefix } passdb { ? args = /etc/dovecot/dovecot-ldap.conf.ext ? driver = ldap } plugin { ? mail_replica = tcps:replication_server_url:port_number ? sieve = ~/.dovecot.sieve ? sieve_dir = ~/sieve ? sieve_extensions = +editheader +imapflags } protocols = " imap sieve pop3" replication_max_conns = 4 service aggregator { ? fifo_listener replication-notify-fifo { ??? user = mail ? } ? unix_listener replication-notify { ??? user = mail ? } } service auth { ? unix_listener /var/run/dovecot-exim-bridge { ??? mode = 0660 ??? user = Debian-exim ? } } service doveadm { ? inet_listener { ??? port = 12345 ??? ssl = yes ? } } service imap-login { ? inet_listener imap { ??? port = 143 ? } ? inet_listener imaps { ??? port = 993 ??? ssl = yes ? } ? process_limit = 512 ? process_min_avail = 4 ? service_count = 1 } service imap { ? process_limit = 1024 } service managesieve-login { ? inet_listener sieve { ??? port = 4190 ? } ? process_min_avail = 1 ? service_count = 8 ? vsz_limit = 256 M } service managesieve { ? process_limit = 1024 } service replicator { ? process_min_avail = 1 ? unix_listener replicator-doveadm { ??? mode = 0666 ? } } ssl = required ssl_cert = </path/certs/a_domain/fullchain.pem ssl_client_ca_dir = /etc/ssl/certs ssl_key =? # hidden, use -P to show it userdb { ? args = /etc/dovecot/dovecot-ldap.conf.ext ? driver = ldap ? override_fields = home=/var/mail/%u uid=mail gid=mail } verbose_ssl = yes protocol lda { ? mail_plugins = " notify replication sieve" } protocol imap { ? mail_max_userip_connections = 32 ? mail_plugins = " notify replication" } protocol sieve { ? mail_max_userip_connections = 10 ? managesieve_logout_format = bytes=%i/%o ? managesieve_max_line_length = 65536 } Kind regards -- Daniel Botting
Stephan Bosch
2019-Oct-14 07:31 UTC
Sieve replication - Debian 9.11 - Dovecot 2.2.7 - script changes not replicated
On 09/10/2019 18:07, Daniel Botting via dovecot wrote:> Hi, > > I am trying to setup Sieve replication, it is almost working: > > 1/ Create a script - sync'd across > > 2/ Activate/de-activate a script - change sync'd > > 3/ Delete a script - change sync'd > > But if I make a change to a script it is not replicated, unless I > de-activate and activate again. > > I am seeing in the logs the below during this process > (de-activating/activating): > > Oct? 9 17:01:39 hostname dovecot: dsync-local(a_user): Debug: > doveadm-sieve: Iterating Sieve mailbox attribute: > vendor/vendor.dovecot/pvt/server/sieve/files/0910-active-1640 > > Oct? 9 17:01:39 hostname dovecot: dsync-local(a_user): Debug: > doveadm-sieve: Value missing for key > `vendor/vendor.dovecot/pvt/server/sieve/default' (last change: > 2019-10-09 17:01:37) >Sieve replication bugs were solved recently. You're running a very old version. Try https://repo.dovecot.org/ instead. Regards, Stephan.> # 2.2.27 (c0f36b0): /etc/dovecot/dovecot.conf > # Pigeonhole version 0.4.16 (fed8554) > # OS: Linux 4.9.0-3-amd64 x86_64 Debian 9.11 > auth_debug = yes > auth_debug_passwords = yes > auth_verbose = yes > default_vsz_limit = 0 > doveadm_password =? # hidden, use -P to show it > first_valid_gid = 8 > first_valid_uid = 8 > last_valid_gid = 8 > last_valid_uid = 8 > lda_mailbox_autocreate = yes > lda_mailbox_autosubscribe = yes > mail_debug = yes > mail_gid = 8 > mail_location = maildir:~/Maildir > mail_plugins = " notify replication" > mail_uid = 8 > 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 index ihave duplicate mime foreverypart > extracttext editheader imapflags > 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 Trash { > ??? special_use = \Trash > ? } > ? prefix > } > passdb { > ? args = /etc/dovecot/dovecot-ldap.conf.ext > ? driver = ldap > } > plugin { > ? mail_replica = tcps:replication_server_url:port_number > ? sieve = ~/.dovecot.sieve > ? sieve_dir = ~/sieve > ? sieve_extensions = +editheader +imapflags > } > protocols = " imap sieve pop3" > replication_max_conns = 4 > service aggregator { > ? fifo_listener replication-notify-fifo { > ??? user = mail > ? } > ? unix_listener replication-notify { > ??? user = mail > ? } > } > service auth { > ? unix_listener /var/run/dovecot-exim-bridge { > ??? mode = 0660 > ??? user = Debian-exim > ? } > } > service doveadm { > ? inet_listener { > ??? port = 12345 > ??? ssl = yes > ? } > } > service imap-login { > ? inet_listener imap { > ??? port = 143 > ? } > ? inet_listener imaps { > ??? port = 993 > ??? ssl = yes > ? } > ? process_limit = 512 > ? process_min_avail = 4 > ? service_count = 1 > } > service imap { > ? process_limit = 1024 > } > service managesieve-login { > ? inet_listener sieve { > ??? port = 4190 > ? } > ? process_min_avail = 1 > ? service_count = 8 > ? vsz_limit = 256 M > } > service managesieve { > ? process_limit = 1024 > } > service replicator { > ? process_min_avail = 1 > ? unix_listener replicator-doveadm { > ??? mode = 0666 > ? } > } > ssl = required > ssl_cert = </path/certs/a_domain/fullchain.pem > ssl_client_ca_dir = /etc/ssl/certs > ssl_key =? # hidden, use -P to show it > userdb { > ? args = /etc/dovecot/dovecot-ldap.conf.ext > ? driver = ldap > ? override_fields = home=/var/mail/%u uid=mail gid=mail > } > verbose_ssl = yes > protocol lda { > ? mail_plugins = " notify replication sieve" > } > protocol imap { > ? mail_max_userip_connections = 32 > ? mail_plugins = " notify replication" > } > protocol sieve { > ? mail_max_userip_connections = 10 > ? managesieve_logout_format = bytes=%i/%o > ? managesieve_max_line_length = 65536 > } > > Kind regards >