diff --git a/Dockerfile b/Dockerfile index cc839ba1..12f1a0bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ----------------------- # ----------------------------------------------- diff --git a/target/logwatch/maillog.conf b/target/logwatch/maillog.conf new file mode 100644 index 00000000..51a73c53 --- /dev/null +++ b/target/logwatch/maillog.conf @@ -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