From 3f920c731df48c2fb60f1892b6f88d5c03273210 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Wed, 20 May 2020 08:36:25 +0200 Subject: [PATCH] mail: don't apply logrotate settings --- roles/mail/files/logrotate.d/dovecot | 12 ------------ roles/mail/tasks/main.yml | 3 --- 2 files changed, 15 deletions(-) delete mode 100644 roles/mail/files/logrotate.d/dovecot diff --git a/roles/mail/files/logrotate.d/dovecot b/roles/mail/files/logrotate.d/dovecot deleted file mode 100644 index e96f8d5..0000000 --- a/roles/mail/files/logrotate.d/dovecot +++ /dev/null @@ -1,12 +0,0 @@ -/var/log/dovecot/*.log { - weekly - rotate 4 - missingok - notifempty - compress - delaycompress - sharedscripts - postrotate - doveadm log reopen - endscript -} diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index 761d3ae..3e33034 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -91,9 +91,6 @@ - learn-spam.sh - learn-ham.sh -- name: Configure logrotate for dovecot - copy: src=logrotate.d/dovecot dest=/etc/logrotate.d/dovecot - - name: Ensure dovecot certificates are available command: openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/dovecot/ssl/{{ mail_server }}.key -out /etc/dovecot/ssl/{{ mail_server }}.crt -days 730 -subj "/CN={{ mail_server }}" creates=/etc/dovecot/ssl/{{ mail_server }}.crt notify: Restart dovecot