This commit is contained in:
Thomas VIAL 2016-09-23 08:22:57 +02:00 committed by GitHub
parent bd14a1d8bf
commit c2eb975ace
2 changed files with 6 additions and 0 deletions

View file

@ -93,6 +93,7 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \
touch /var/log/mail/clamav.log && chown -R clamav:root /var/log/mail/clamav.log && \ touch /var/log/mail/clamav.log && chown -R clamav:root /var/log/mail/clamav.log && \
touch /var/log/mail/freshclam.log && chown -R clamav:root /var/log/mail/freshclam.log && \ touch /var/log/mail/freshclam.log && chown -R clamav:root /var/log/mail/freshclam.log && \
sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/rsyslog.d/50-default.conf && \ sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/rsyslog.d/50-default.conf && \
sed -i -r 's|;auth,authpriv.none|;mail.none;mail.error;auth,authpriv.none|g' /etc/rsyslog.d/50-default.conf && \
sed -i -r 's|LogFile /var/log/clamav/|LogFile /var/log/mail/|g' /etc/clamav/clamd.conf && \ sed -i -r 's|LogFile /var/log/clamav/|LogFile /var/log/mail/|g' /etc/clamav/clamd.conf && \
sed -i -r 's|UpdateLogFile /var/log/clamav/|UpdateLogFile /var/log/mail/|g' /etc/clamav/freshclam.conf && \ sed -i -r 's|UpdateLogFile /var/log/clamav/|UpdateLogFile /var/log/mail/|g' /etc/clamav/freshclam.conf && \
sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-daemon && \ sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-daemon && \

View file

@ -572,6 +572,11 @@
[ "$output" = "my-domain.com" ] [ "$output" = "my-domain.com" ]
} }
@test "checking system: postfix should not log to syslog" {
run docker exec mail grep 'postfix' /var/log/syslog
[ "$status" -eq 1 ]
}
# #
# sieve # sieve
# #