1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-05-31 23:10:01 +02:00

Fix logs in the SMTP container

This commit is contained in:
Florent Daigniere 2023-04-21 14:42:25 +02:00
parent 1f9cd7db99
commit eec9d1201f
5 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ COPY start.py /
RUN echo $VERSION >/version
#EXPOSE 25/tcp 10025/tcp
HEALTHCHECK --start-period=350s CMD /usr/sbin/postfix status
HEALTHCHECK --start-period=30s CMD ! /usr/libexec/postfix/master -t
VOLUME ["/queue"]

View File

@ -6,6 +6,7 @@
mydomain = {{ DOMAIN }}
myhostname = {{ HOSTNAMES.split(",")[0] }}
myorigin = $mydomain
maillog_file = /dev/stdout
# Queue location
queue_directory = /queue

View File

@ -52,6 +52,7 @@ discard unix - - n - - discard
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
postlog unix-dgram n - n - 1 postlogd
{# Ensure that the rendered file ends with a newline #}
{{- "\n" }}

View File

@ -11,7 +11,6 @@ from podop import run_server
from socrate import system, conf
system.set_env(log_filters=[
r'the Postfix mail system is running\: \d+$',
r'(dis)?connect from localhost\[(\:\:1|127\.0\.0\.1)\]( quit=1 commands=1)?$',
r'haproxy read\: short protocol header\: QUIT$',
r'discarding EHLO keywords\: PIPELINING$',

View File

@ -0,0 +1 @@
The SMTP container wasn't logging things like it should