summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-14 03:06:53 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:09 +0200
commitb6ab225539b9b88803e8fe7e58fc65454120366b (patch)
tree2a4ed8a2fe80d3cf5204e1d9345d966534c5c094
parent9516d25e869b5f704297442a9b28751081410f55 (diff)
Don't merge amavis' logs into /var/log/syslog.
As they contain user information, we keep it in /var/log/mail.log only. These logs are kept for 3 days "only", as per our policy.
-rw-r--r--roles/common/files/etc/rsyslog.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/common/files/etc/rsyslog.conf b/roles/common/files/etc/rsyslog.conf
index 4f07d9b..10f400a 100644
--- a/roles/common/files/etc/rsyslog.conf
+++ b/roles/common/files/etc/rsyslog.conf
@@ -71,7 +71,7 @@ mail.err /var/log/mail.err
# mail.info for troubleshooting, but those files are rotated frequently.
# XXX: we should improve that: we shouldn't log envelopes and IPs unless
# the mail is bounced, for instance.
-if ($programname startswith 'postfix-' or $programname == 'dovecot') and $syslogfacility-text == 'mail' and $syslogseverity >= 6 then ~
+if ($programname startswith 'postfix-' or $programname == 'dovecot' or $programname == 'amavis') and $syslogfacility-text == 'mail' and $syslogseverity >= 6 then ~
#
# Some standard log files. Log by facility.