From 160ea6a58b6db2dea61578d1ecadaa82709a3cce Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 19 Apr 2021 14:00:08 +0200 Subject: [PATCH] Update to 2021-04-19 14:00 --- roles/zimbra/defaults/main.yml | 3 +++ roles/zimbra/tasks/mta.yml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/roles/zimbra/defaults/main.yml b/roles/zimbra/defaults/main.yml index d0ffe60..4e9a958 100644 --- a/roles/zimbra/defaults/main.yml +++ b/roles/zimbra/defaults/main.yml @@ -74,3 +74,6 @@ zcs_cas_libs: sha1: b2a80ae61c57b4552c1c4573bb3a896c62c0f6f2 - url: https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.28/slf4j-api-1.7.28.jar sha1: 2cd9b264f76e3d087ee21bfc99305928e1bdb443 + +# If defined, will add an always_bcc directive on MTA servers +# zcs_always_bcc: maillog@example.org diff --git a/roles/zimbra/tasks/mta.yml b/roles/zimbra/tasks/mta.yml index 4c31bd2..e199fe4 100644 --- a/roles/zimbra/tasks/mta.yml +++ b/roles/zimbra/tasks/mta.yml @@ -26,3 +26,11 @@ when: iptables_manage | default(True) tags: zcs +- name: Enable always_bcc + lineinfile: + dest: /opt/zimbra/common/conf/main.cf + regexp: '^always_bcc =.*' + line: always_bcc = {{ zcs_always_bcc }} + when: zcs_always_bcc is defined + notify: restart zimbra + tags: zcs