Add logwatch maillog.conf file to support /var/log/mail/ (#2112)

* Add logwatch maillog.conf file to support /var/log/mail/
* Simpliied after reviewing logwatch doc

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
Andrew Low 2021-08-11 05:31:00 -04:00 committed by GitHub
parent c98fb9aa92
commit 0e9c9889ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -269,6 +269,12 @@ RUN \
# prevent email when /sbin/init or init system is not existing
sed -i -e 's|invoke-rc.d rsyslog rotate > /dev/null|/usr/bin/supervisorctl signal hup rsyslog >/dev/null|g' /usr/lib/rsyslog/rsyslog-rotate
# -----------------------------------------------
# --- Logwatch ----------------------------------
# -----------------------------------------------
COPY target/logwatch/maillog.conf /etc/logwatch/conf/logfiles/maillog.conf
# -----------------------------------------------
# --- Supervisord & Start -----------------------
# -----------------------------------------------

View File

@ -0,0 +1,10 @@
#
# Extensions for docker-mailserver /var/log/mail/. log path
#
# Mail log files
LogFile = mail/mail.log
LogFile = mail/mail.log.1
# Support Archives
Archive = mail/mail.log.*.gz