summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/logrotate.d/fripost-mail
blob: 4fc1a85b5a76f78c836df0a9cc933bbaf447a7b1 (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
		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
}