summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/logrotate.d
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-06-30 03:34:50 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:09 +0200
commitee4345cfc93747587608f0a87497123a6cacb946 (patch)
tree1b8cf7efb15e66f695adf4ae8bc79dbe00683eba /roles/common/files/etc/logrotate.d
parente1cc46486b686df85cf30073878c1ee69e320d1b (diff)
Log SASL usernames for longer, but don't include mail.log into syslog.
Diffstat (limited to 'roles/common/files/etc/logrotate.d')
-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
+}