summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/logrotate.d/fripost-mail
blob: 7f7ffc2750130059276b0d5bbd4ae9e67b9b7760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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
		/usr/lib/rsyslog/rsyslog-rotate
	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
		/usr/lib/rsyslog/rsyslog-rotate
	endscript
}