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 touch /etc/postfix/allowed_clients
chown postfix.postfix /etc/postfix/allowed_clients chown postfix.postfix /etc/postfix/allowed_clients
chmod o-rwx /etc/postfix/allowed_clients chmod o-rwx /etc/postfix/allowed_clients
chmod ug+rw /etc/postfix/allowed_clients
for client in "${clients[@]}" for client in "${clients[@]}"
do do

View file

@ -173,7 +173,7 @@
service: service:
name: saslauthd name: saslauthd
state: started state: started
enable: true enabled: true
- name: Ensure CRON job to update clients exists - name: Ensure CRON job to update clients exists
cron: cron:
@ -181,12 +181,13 @@
job: '/etc/postfix/scripts/update_clients.sh' job: '/etc/postfix/scripts/update_clients.sh'
user: root user: root
minute: '20' minute: '20'
hour: '*/2'
- name: Ensure cron to check if authdaemond is stuck exists - name: Ensure cron to check if authdaemond is stuck exists
cron: cron:
name: check authdaemond stuck name: check authdaemond stuck
job: /etc/postfix/scripts/authdaemond_check_stuck.sh job: /etc/postfix/scripts/authdaemond_check_stuck.sh
minute: '*/5' minute: '*/15'
state: absent state: absent
- name: Resolve host names - name: Resolve host names