summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/logrotate.d/fripost-mail
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-10-31 01:10:49 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:50:31 +0200
commitbda835d0051950c63c0f38bbf11fb6fe47b4af36 (patch)
tree9d3a02eb42dafddf5f151153d1058ebfc72a3cf0 /roles/common/files/etc/logrotate.d/fripost-mail
parent42ec51e418142f68a97d96663a43ae617c971ad5 (diff)
Configure the (basic) logging policy.
Diffstat (limited to 'roles/common/files/etc/logrotate.d/fripost-mail')
-rw-r--r--roles/common/files/etc/logrotate.d/fripost-mail17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/common/files/etc/logrotate.d/fripost-mail b/roles/common/files/etc/logrotate.d/fripost-mail
new file mode 100644
index 0000000..9ed2617
--- /dev/null
+++ b/roles/common/files/etc/logrotate.d/fripost-mail
@@ -0,0 +1,17 @@
+# Don't forget to remove these log files from other files under
+# /etc/logrotate.d/ !
+
+/var/log/mail.log
+/var/log/mail.info
+{
+ rotate 3
+ daily
+ missingok
+ notifempty
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ invoke-rc.d rsyslog rotate > /dev/null
+ endscript
+}