From e98fb0be4418aaa1335b8a9e6544b3546f239ca0 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Thu, 14 Aug 2014 14:07:08 +0100 Subject: Remove duplicated logrotate config --- docs/installing/email.md | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'docs/installing') diff --git a/docs/installing/email.md b/docs/installing/email.md index 383629bad..e1806d66f 100644 --- a/docs/installing/email.md +++ b/docs/installing/email.md @@ -256,28 +256,14 @@ format. Update MTA_LOG_PATH: '/var/log/mail/mail.log-*' MTA_LOG_TYPE: "postfix" +Configure postfix to log to its own directory: + ##### Debian In `/etc/rsyslog.conf`, set: mail.* -/var/log/mail/mail.log -And also edit `/etc/logrotate.d/rsyslog`: - - /var/log/mail/mail.log - { - rotate 30 - daily - dateext - missingok - notifempty - compress - delaycompress - sharedscripts - postrotate - reload rsyslog >/dev/null 2>&1 || true - endscript - } ##### Ubuntu @@ -285,8 +271,11 @@ In `/etc/rsyslog.d/50-default.conf` set: mail.* -/var/log/mail/mail.log -And also edit `/etc/logrotate.d/rsyslog`: +##### Configure logrotate + +Configure logrotate to rotate the log files in the required format: + cat >> /etc/logrotate.d/rsyslog </dev/null 2>&1 || true endscript } - + EOF #### Making the changes live -- cgit v1.2.3