summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/logrotate.d/fripost-mail
diff options
context:
space:
mode:
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
index 9ed2617..4fc1a85 100644
--- a/roles/common/files/etc/logrotate.d/fripost-mail
+++ b/roles/common/files/etc/logrotate.d/fripost-mail
@@ -15,3 +15,20 @@
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
+
+# Keep a mapping Postfix's message ID -> SASL username for a month, to
+# find authors of potential abuse emails (if we are shown the header of
+# such emails.)
+/var/log/mail.sasl
+{
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ delaycompress
+ sharedscripts
+ postrotate
+ invoke-rc.d rsyslog rotate > /dev/null
+ endscript
+}