From 9c6b7d7afb7ec9a838f1170d1186f4c9a24c705a Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 3 Nov 2023 22:35:37 +0100 Subject: [PATCH] Disable logging SASL messages to special file We can use mail.log or journald instead --- files/rsyslog.d/mail-sasl.conf | 4 ---- tasks/fail2ban.yml | 13 ------------- tasks/main.yml | 5 ----- 3 files changed, 22 deletions(-) delete mode 100644 files/rsyslog.d/mail-sasl.conf delete mode 100644 tasks/fail2ban.yml diff --git a/files/rsyslog.d/mail-sasl.conf b/files/rsyslog.d/mail-sasl.conf deleted file mode 100644 index e0b507d..0000000 --- a/files/rsyslog.d/mail-sasl.conf +++ /dev/null @@ -1,4 +0,0 @@ -# Managed by Ansible -# Write SASLS log to file - -:msg, contains, "SASL" /var/log/mail-sasl.log diff --git a/tasks/fail2ban.yml b/tasks/fail2ban.yml deleted file mode 100644 index 7a0b1b2..0000000 --- a/tasks/fail2ban.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: "Fail2ban | Setup SASL logging" - ansible.builtin.copy: - src: rsyslog.d/mail-sasl.conf - dest: /etc/rsyslog.d/mail-sasl.conf - mode: "0644" - notify: restart rsyslog - -- name: "Fail2ban | Setup logrotate" - ansible.builtin.template: - src: mail-sasl.j2 - dest: /etc/logrotate.d/mail-sasl - mode: "0644" diff --git a/tasks/main.yml b/tasks/main.yml index 683e45c..036f296 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,11 +20,6 @@ tags: onionmx when: postfix_onionmx is defined and postfix_onionmx -- name: Fail2ban - ansible.builtin.import_tasks: fail2ban.yml - tags: fail2ban - when: postfix_type == "internet" - - name: TLS-helper ansible.builtin.import_tasks: tls-helper.yml tags: tls-helper