summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-14 09:15:46 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:12 +0200
commit6c59c2bb207828e6073eab2dce48d1f96e348c32 (patch)
treea0d8cdd6281a7021b7eed982d9b49852f870c5ee /roles
parent5f445881b81e42f8fd687fce217a16946f95bf6f (diff)
Amavis is logging to syslog with severity 'notice'.
Diffstat (limited to 'roles')
-rw-r--r--roles/common/files/etc/rsyslog.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/common/files/etc/rsyslog.conf b/roles/common/files/etc/rsyslog.conf
index 10f400a..adc8f21 100644
--- a/roles/common/files/etc/rsyslog.conf
+++ b/roles/common/files/etc/rsyslog.conf
@@ -71,7 +71,8 @@ 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' or $programname == 'amavis') and $syslogfacility-text == 'mail' and $syslogseverity >= 6 then ~
+if $programname == 'amavis' and $syslogfacility-text == 'mail' and $syslogseverity >= 5 then ~
+if ($programname startswith 'postfix-' or $programname == 'dovecot') and $syslogfacility-text == 'mail' and $syslogseverity >= 6 then ~
#
# Some standard log files. Log by facility.