Add managesieve support
This commit is contained in:
6
confd/conf.d/managesieve.toml
Normal file
6
confd/conf.d/managesieve.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[template]
|
||||
src = "20-managesieve.conf.tmpl"
|
||||
dest = "/etc/dovecot/local.d/20-managesieve.conf"
|
||||
keys = [
|
||||
"/managesieve/enable",
|
||||
]
|
||||
14
confd/templates/20-managesieve.conf.tmpl
Normal file
14
confd/templates/20-managesieve.conf.tmpl
Normal file
@@ -0,0 +1,14 @@
|
||||
# enable managesieve protocol
|
||||
protocols = $protocols {{ if eq (getv "/managesieve/enable") "yes" }}sieve{{ end }}
|
||||
|
||||
service managesieve-login {
|
||||
inet_listener sieve {
|
||||
port = 4190
|
||||
}
|
||||
}
|
||||
|
||||
service managesieve {
|
||||
}
|
||||
|
||||
protocol sieve {
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
plugin {
|
||||
sieve_plugins = {{ if eq (getv "/sieve/enable") "yes" }}sieve_imapsieve{{ if eq (getv "/antispam/enable") "yes" }} sieve_extprograms{{ end }}{{ end }}
|
||||
sieve = file:~/sieve;active=~/.dovecot.sieve
|
||||
|
||||
sieve_before = /etc/dovecot/sieve/before
|
||||
sieve_after = /etc/dovecot/sieve/after
|
||||
|
||||
{{ if eq (getv "/antispam/enable") "yes" }}
|
||||
sieve_plugins = sieve_imapsieve sieve_extprograms
|
||||
|
||||
sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
|
||||
sieve_pipe_bin_dir = /etc/dovecot/sieve
|
||||
|
||||
|
||||
Reference in New Issue
Block a user