summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-03-25 11:50:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-03-25 11:50:18 -0300
commitbf49d26c2b34bcab5472e69f68d970d66a748e9c (patch)
tree924054b45ef3c17c53dfd6512caf6fbaece38ee2 /files
parent5ed90e97bd48a6eba9a9aefff415783d3f691db4 (diff)
downloadpuppet-mail-bf49d26c2b34bcab5472e69f68d970d66a748e9c.tar.gz
puppet-mail-bf49d26c2b34bcab5472e69f68d970d66a748e9c.tar.bz2
Postfix logrotation
Diffstat (limited to 'files')
-rw-r--r--files/postfix/logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/postfix/logrotate b/files/postfix/logrotate
new file mode 100644
index 0000000..86dc743
--- /dev/null
+++ b/files/postfix/logrotate
@@ -0,0 +1,13 @@
+/var/log/postfix.log {
+ missingok
+ notifempty
+ weekly
+ rotate 3
+ compress
+ compresscmd /bin/bzip2
+ compressext .bz2
+ sharedscripts
+ postrotate
+ /etc/init.d/postfix reload > /dev/null 2>&1 || true
+ endscript
+}