[spamassassin] Add logging to spamassassin
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
c8b62faaa4
commit
7b022d51bb
3 changed files with 19 additions and 1 deletions
13
roles/spamassassin/files/spamassassin.logrotate
Normal file
13
roles/spamassassin/files/spamassassin.logrotate
Normal file
|
@ -0,0 +1,13 @@
|
|||
/var/log/spamassassin/*log {
|
||||
daily
|
||||
rotate 7
|
||||
missingok
|
||||
ifempty
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
uncompresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
dateext
|
||||
sharedscripts
|
||||
copytruncate
|
||||
}
|
|
@ -1,2 +1,2 @@
|
|||
# Options to spamd
|
||||
SPAMDOPTIONS="-c -m20 -H -u spammy -g spammy"
|
||||
SPAMDOPTIONS="-c -m20 -H -u spammy -g spammy -s /var/log/spamassassin/spamd.log"
|
||||
|
|
|
@ -42,3 +42,8 @@
|
|||
service: name=spamassassin enabled=true state=started
|
||||
tags:
|
||||
- service
|
||||
|
||||
- name: setup logrotate to our needs
|
||||
copy: src="spamassassin.logrotate" dest=/etc/logrotate.d/spamassassin
|
||||
tags:
|
||||
- config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue