From 33b0e3839105916f3101845ee4daae9512e32b69 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 2 Feb 2023 12:41:47 +0200 Subject: [PATCH] Fix permissions and reduce freq of crons --- files/update_clients.sh | 1 + tasks/configure.yml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/files/update_clients.sh b/files/update_clients.sh index b22265c..26f60bb 100644 --- a/files/update_clients.sh +++ b/files/update_clients.sh @@ -6,6 +6,7 @@ rm /etc/postfix/allowed_clients touch /etc/postfix/allowed_clients chown postfix.postfix /etc/postfix/allowed_clients chmod o-rwx /etc/postfix/allowed_clients +chmod ug+rw /etc/postfix/allowed_clients for client in "${clients[@]}" do diff --git a/tasks/configure.yml b/tasks/configure.yml index 41a62f2..93d166b 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -173,7 +173,7 @@ service: name: saslauthd state: started - enable: true + enabled: true - name: Ensure CRON job to update clients exists cron: @@ -181,12 +181,13 @@ job: '/etc/postfix/scripts/update_clients.sh' user: root minute: '20' + hour: '*/2' - name: Ensure cron to check if authdaemond is stuck exists cron: name: check authdaemond stuck job: /etc/postfix/scripts/authdaemond_check_stuck.sh - minute: '*/5' + minute: '*/15' state: absent - name: Resolve host names