diff --git a/dovecot.cf b/dovecot.cf index 769432b..c1668d9 100644 --- a/dovecot.cf +++ b/dovecot.cf @@ -18,6 +18,9 @@ vars: "imap_key" string => "$(cfg_dir)/private/imap.key"; "imap_cert" string => "$(cfg_dir)/private/imap.crt"; + "submission_key" string => "$(cfg_dir)/private/submission.key"; + "submission_cert" string => "$(cfg_dir)/private/submission.crt"; + "service_name" string => "dovecot"; @@ -37,9 +40,11 @@ methods: "any" usebundle => wmde_service("$(service_name)","dovecot_kept","dovecot_repaired"), depends_on => { "dovecot_pkgs_installed", + "dovecot_cfg_created", "dovecot_imap_key_installed", "dovecot_imap_cert_installed", - "dovecot_cfg_created" + "dovecot_submission_key_installed", + "dovecot_submission_cert_installed", }; services: @@ -71,6 +76,18 @@ files: copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[imap_key])","noshell" )), perms => mog("600","root","root"); + "$(submission_cert)" + handle => "dovecot_submission_cert_installed", + classes => if_repaired(dovecot_repaired), + copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[submission_cert])","noshell" )), + perms => mog("600","root","root"); + + "$(submission_key)" + handle => "dovecot_submission_key_installed", + classes => if_repaired(dovecot_repaired), + copy_from => local_dcp( execresult( "/usr/bin/readlink -qfn $(cfg[submission_key])","noshell" )), + perms => mog("600","root","root"); +