From a850f43c1dd1a27043549f253ee7052afdfa7b56 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sat, 22 Jan 2022 07:55:56 +0100 Subject: [PATCH] enable managesieve plugin --- .../etc/confd/conf.d/20-managesieve.conf.toml | 3 + .../confd/templates/20-managesieve.conf.tmpl | 80 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 rootfs/etc/confd/conf.d/20-managesieve.conf.toml create mode 100644 rootfs/etc/confd/templates/20-managesieve.conf.tmpl diff --git a/rootfs/etc/confd/conf.d/20-managesieve.conf.toml b/rootfs/etc/confd/conf.d/20-managesieve.conf.toml new file mode 100644 index 0000000..328c6ef --- /dev/null +++ b/rootfs/etc/confd/conf.d/20-managesieve.conf.toml @@ -0,0 +1,3 @@ +[template] +src = "20-managesieve.conf.tmpl" +dest = "/etc/dovecot/conf.d/20-managesieve.conf" diff --git a/rootfs/etc/confd/templates/20-managesieve.conf.tmpl b/rootfs/etc/confd/templates/20-managesieve.conf.tmpl new file mode 100644 index 0000000..8df1692 --- /dev/null +++ b/rootfs/etc/confd/templates/20-managesieve.conf.tmpl @@ -0,0 +1,80 @@ +protocols = $protocols sieve + +# Service definitions + +service managesieve-login { + inet_listener sieve { + port = 4190 + address = localhost + } + + #inet_listener sieve_deprecated { + # port = 2000 + #} + + # Number of connections to handle before starting a new process. Typically + # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0 + # is faster. + #service_count = 1 + + # Number of processes to always keep waiting for more connections. + #process_min_avail = 0 + + # If you set service_count=0, you probably need to grow this. + #vsz_limit = 64M +} + +#service managesieve { + # Max. number of ManageSieve processes (connections) + #process_limit = 1024 +#} + +# Service configuration + +protocol sieve { + # Maximum ManageSieve command line length in bytes. ManageSieve usually does + # not involve overly long command lines, so this setting will not normally + # need adjustment + #managesieve_max_line_length = 65536 + + # Maximum number of ManageSieve connections allowed for a user from each IP + # address. + # NOTE: The username is compared case-sensitively. + #mail_max_userip_connections = 10 + + # Space separated list of plugins to load (none known to be useful so far). + # Do NOT try to load IMAP plugins here. + #mail_plugins = + + # MANAGESIEVE logout format string: + # %i - total number of bytes read from client + # %o - total number of bytes sent to client + # %{put_bytes} - Number of bytes saved using PUTSCRIPT command + # %{put_count} - Number of scripts saved using PUTSCRIPT command + # %{get_bytes} - Number of bytes read using GETCRIPT command + # %{get_count} - Number of scripts read using GETSCRIPT command + # %{get_bytes} - Number of bytes processed using CHECKSCRIPT command + # %{get_count} - Number of scripts checked using CHECKSCRIPT command + # %{deleted_count} - Number of scripts deleted using DELETESCRIPT command + # %{renamed_count} - Number of scripts renamed using RENAMESCRIPT command + #managesieve_logout_format = bytes=%i/%o + + # To fool ManageSieve clients that are focused on CMU's timesieved you can + # specify the IMPLEMENTATION capability that Dovecot reports to clients. + # For example: 'Cyrus timsieved v2.2.13' + #managesieve_implementation_string = Dovecot Pigeonhole + + # Explicitly specify the SIEVE and NOTIFY capability reported by the server + # before login. If left unassigned these will be reported dynamically + # according to what the Sieve interpreter supports by default (after login + # this may differ depending on the user). + #managesieve_sieve_capability = + #managesieve_notify_capability = + + # The maximum number of compile errors that are returned to the client upon + # script upload or script verification. + #managesieve_max_compile_errors = 5 + + # Refer to 90-sieve.conf for script quota configuration and configuration of + # Sieve execution limits. +}