Fix permissions and reduce freq of crons

This commit is contained in:
Antonio J. Delgado 2023-02-02 12:41:47 +02:00
parent ad06965f5e
commit 33b0e38391
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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