Sieve replication - does not replicate

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sieve replication - does not replicate

Dovecot mailing list
Hi,

I have two servers replicating mail as required, the directory structure
(per user), however they will not replicate the sieve scripts directory:

server 1

Maildir sieve

server 2

Maildir

Output of doveconf -n on server 1:

# 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.4 ()
doveconf: Warning: NOTE: You can get a new clean config file with:
doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in
/etc/dovecot/conf.d/10-ssl.conf:51: ssl_protocols has been replaced by
ssl_min_protocol
doveconf: Error: Could not find a minimum ssl_min_protocol setting from
ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'
doveconf: Warning: NOTE: You can get a new clean config file with:
doveconf -Pn > dovecot-new.conf
doveconf: Warning: Obsolete setting in
/etc/dovecot/conf.d/10-ssl.conf:51: ssl_protocols has been replaced by
ssl_min_protocol
doveconf: Error: Could not find a minimum ssl_min_protocol setting from
ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'
# OS: Linux 4.19.0-6-amd64 x86_64 Debian 10.1
# Hostname: a_tld
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_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:a_tld:12345
   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 = </where/the_cert_is_installed/fullchain.pem
ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
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
}
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
}

The only error message I can see in the logs (/var/log/mail.err) is,
this is not for every user and is only occasionally:

Sep 30 14:46:34 imap2 dovecot:
lda(a_user)<1306><f0JXJjoHkl0aBQAAZJ7A9A>: Error: sieve: Failed to
initialize script execution: Invalid postmaster_address: invalid address
`postmaster@' specified for the postmaster_address setting

Any suggestions would be much appreciated.

Cheers

--
Daniel

Reply | Threaded
Open this post in threaded view
|

Re: Sieve replication - does not replicate

Dovecot mailing list
Hi,

On 30.09.19 16:51, Daniel Botting via dovecot wrote:

> Hi,
>
> I have two servers replicating mail as required, the directory structure
> (per user), however they will not replicate the sieve scripts directory:
>
> server 1
>
> Maildir sieve
>
> server 2
>
> Maildir
>
> Output of doveconf -n on server 1:
>
> # 2.3.4.1 (f79e8e7e4): /etc/dovecot/dovecot.conf
> # Pigeonhole version 0.5.4 ()
> doveconf: Warning: NOTE: You can get a new clean config file with:
> doveconf -Pn > dovecot-new.conf
> doveconf: Warning: Obsolete setting in
> /etc/dovecot/conf.d/10-ssl.conf:51: ssl_protocols has been replaced by
> ssl_min_protocol
> doveconf: Error: Could not find a minimum ssl_min_protocol setting from
> ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'
> doveconf: Warning: NOTE: You can get a new clean config file with:
> doveconf -Pn > dovecot-new.conf
> doveconf: Warning: Obsolete setting in
> /etc/dovecot/conf.d/10-ssl.conf:51: ssl_protocols has been replaced by
> ssl_min_protocol
> doveconf: Error: Could not find a minimum ssl_min_protocol setting from
> ssl_protocols = !SSLv2 !SSLv3: Unrecognized protocol 'SSLv2'
> # OS: Linux 4.19.0-6-amd64 x86_64 Debian 10.1
> # Hostname: a_tld
> 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_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:a_tld:12345
>    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 = </where/the_cert_is_installed/fullchain.pem
> ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
> 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
> }
> 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
> }
>
> The only error message I can see in the logs (/var/log/mail.err) is,
> this is not for every user and is only occasionally:
>
> Sep 30 14:46:34 imap2 dovecot:
> lda(a_user)<1306><f0JXJjoHkl0aBQAAZJ7A9A>: Error: sieve: Failed to
> initialize script execution: Invalid postmaster_address: invalid address
> `postmaster@' specified for the postmaster_address setting
>
> Any suggestions would be much appreciated.
this problem was finally solved in 2.3.7.2.

Best regards,
Gordon


smime.p7s (6K) Download Attachment