Sieve stuff integrated

This commit is contained in:
Tobias Herre 2023-10-31 20:33:56 +01:00
parent 30300d06d9
commit 33502f8dd8
1 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,7 @@ vars:
"submission_key" string => "$(cfg_dir)/private/submission.key"; "submission_key" string => "$(cfg_dir)/private/submission.key";
"submission_cert" string => "$(cfg_dir)/private/submission.crt"; "submission_cert" string => "$(cfg_dir)/private/submission.crt";
"sievec_exe" string => "/usr/bin/sievec";
"service_name" string => "dovecot"; "service_name" string => "dovecot";
@ -50,6 +51,7 @@ vars:
"submission_key" string => "$(cfg_dir)/private/submission.key"; "submission_key" string => "$(cfg_dir)/private/submission.key";
"submission_cert" string => "$(cfg_dir)/private/submission.crt"; "submission_cert" string => "$(cfg_dir)/private/submission.crt";
"service_name" string => "dovecot"; "service_name" string => "dovecot";
"sievec_exe" string => "/usr/bin/sievec";
use_ssl:: use_ssl::
"service_deps" slist => { "service_deps" slist => {
@ -158,3 +160,28 @@ bundle agent install_dovecot_pkgs
methods: methods:
"any" usebundle => wmde_install_packages(@(dovecot.pkgs),"dovecot"); "any" usebundle => wmde_install_packages(@(dovecot.pkgs),"dovecot");
} }
bundle agent install_global_sieve_script( filename , content)
{
vars:
"rep_class" string =>"global_sieve_repaired_$(filename)";
files:
"$(filename)"
create => "true",
content => "$(content)",
perms => m("644"),
handle => "global_sieve_$(filename)_created",
classes => if_repaired (sieve_repaired);
commands:
# sieve_repaired::
# "$(dovecot.sievec_exe)"
# args => "$(filename)",
# depends_on => { "global_sieve_$(filename)_created" };
reports:
"FILENAME: $(filename)";
}