Fix the cron jobs. jump chain configurable.

This commit is contained in:
Andrea Dell'Amico 2023-08-09 12:13:50 +02:00
parent 136904f7af
commit 39bf5db940
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
4 changed files with 13 additions and 9 deletions

View File

@ -118,12 +118,14 @@ mailman_dmarc_enabled: 'yes'
mailman_dkim_enabled: 'yes'
mailman_antispam_header_checks:
- 'X-Spam: (yes|maybe)'
- 'X-Spam: (YES)'
- 'X-Spam-Flag: (yes|maybe)'
- 'X-Spam-Flag: (YES)'
#- 'Authentication-Results: mail.example.com; dmarc=(fail|quarantine)'
# The chain to jump to if any of the header patterns matches. This must be
# the name of an existing chain such as 'discard', 'reject', 'hold', or
# 'accept', otherwise 'hold' will be used.
mailman_antispam_chain_behaviour: "hold"
mailman_start_nntp_runner: 'no'
mailman_repository: 'https://gitlab.com/mailman/mailman-suite.git'

View File

@ -1,14 +1,16 @@
---
galaxy_info:
author: adellam
author: Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>
namespace: adellam
role_name: mailman
description: Mailman 3 installation, configuration, and management for Linux using pip
company: ISTI-CNR
license: license (EUPL)
min_ansible_version: 2.7
min_ansible_version: "2.7"
platforms:
- name: EL
versions:
- 7
- "7"
galaxy_tags:
- mail
- mailing

View File

@ -114,7 +114,7 @@
block:
- name: Add a daily cron job that sends digests
cron:
job: "{{ mailman_bindir }}/mailman digests --periodic > {{ mailman_log_dir }}/mailman_cron_digest.log 2>&1"
job: "{{ mailman_bindir }}/mailman -C {{ mailman_conf_dir }}/mailman.cfg digests --periodic > {{ mailman_log_dir }}/mailman_cron_digest.log 2>&1"
special_time: daily
user: '{{ mailman_user }}'
name: "Mailman digests"
@ -123,7 +123,7 @@
- name: Add a daily cron job that sends notifications to the list administrators and list owners
cron:
job: "{{ mailman_bindir }}/mailman notify > {{ mailman_log_dir }}/mailman_cron_notifications.log 2>&1"
job: "{{ mailman_bindir }}/mailman -C {{ mailman_conf_dir }}/mailman.cfg notify > {{ mailman_log_dir }}/mailman_cron_notifications.log 2>&1"
minute: '0'
hour: '7'
user: '{{ mailman_user }}'

View File

@ -242,7 +242,7 @@ header_checks:
# The chain to jump to if any of the header patterns matches. This must be
# the name of an existing chain such as 'discard', 'reject', 'hold', or
# 'accept', otherwise 'hold' will be used.
jump_chain: hold
jump_chain: "{{ mailman_antispam_chain_behaviour }}"
[runner.nntp]
class: mailman.runners.nntp.NNTPRunner