Disable logging SASL messages to special file

We can use mail.log or journald instead
This commit is contained in:
phil 2023-11-03 22:35:37 +01:00
parent 0616b07940
commit 9c6b7d7afb
3 changed files with 0 additions and 22 deletions

View file

@ -1,4 +0,0 @@
# Managed by Ansible
# Write SASLS log to file
:msg, contains, "SASL" /var/log/mail-sasl.log

View file

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

View file

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