mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
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:
parent
c98fb9aa92
commit
0e9c9889ff
|
@ -269,6 +269,12 @@ RUN \
|
||||||
# prevent email when /sbin/init or init system is not existing
|
# 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
|
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 -----------------------
|
# --- Supervisord & Start -----------------------
|
||||||
# -----------------------------------------------
|
# -----------------------------------------------
|
||||||
|
|
10
target/logwatch/maillog.conf
Normal file
10
target/logwatch/maillog.conf
Normal 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
|
Loading…
Reference in a new issue