and doesn’t show any other events (incoming emails, rejected emails, …).
I’ve encountered some issues with custom postfix settings (which worked flawlessly prior to recent update) and need to debug, which is difficult without logs.
I do see the same errors warnings but Postfix is happily running and accepting mails after that.
Sometimes the logs don’t seem to flush immediately so you might need to wait for a while before you get some output. But that’s unrelated to the warnings.
which worked perfectly before the upgrade (uses regex rules to reject spammers). The real issue is that with this setting enabled, postfix starts rejecting all incoming email, but I can’t see why from the logs!
A while maybe, but it’s been hours and still nothing in logs (neither accepted nor rejected emails are shown, and there is inbound traffic).
followed by a single line of log entries, and ending with the <HEAD> repeated six more times:
<HEAD>
Single line of log entries without line breaks..............................................................................................................................................................................................
<HEAD>
<HEAD>
<HEAD>
<HEAD>
<HEAD>
<HEAD>
I was only looking at the end of the output, and there was always seemingly just the <HEAD> without any other entries.
Definitely something wrong with the rendering of the log via ./launcher logs mail-receiver.
Gracias @md-misko - He fusionado la PR y he incrementado la etiqueta discourse/mail-reciever:release en Dockerhub.
Estoy seguro de que ya lo sabes, pero en caso de que alguien más se encuentre con este tema, puedes actualizar tu versión del receptor de correo ejecutando:
docker pull discourse/mail-receiver:release
cd /var/discourse
./launcher rebuild mail-receiver
Un poco complicado… pero creo que esto debería funcionar:
# Primero, asegúrate de tener la última imagen base localmente
docker pull discourse/mail-receiver:release
# Obtén la capa superior de la imagen base
BASE_IMAGE_HASH=$(docker history discourse/mail-receiver:release -q | head -n 1)
# Obtén las capas de la versión **en ejecución**
RUNNING_IMAGE_HASH=$(docker container inspect mail-receiver -f "{{.Image}}")
RUNNING_IMAGE_LAYERS=$(docker history $RUNNING_IMAGE_HASH -q)
# Comprueba si las capas de la imagen en ejecución incluyen la imagen base actual:
[[ "$RUNNING_IMAGE_LAYERS" == *"$BASE_IMAGE_HASH"* ]] && echo "Actualizado"
Esto imprimirá “Actualizado” si estás al día. De lo contrario, la última línea no imprimirá nada y saldrá con un estado distinto de cero.
Oh. Eso es brillante. Y parece que es una solución general para la que anteriormente solo había encontrado soluciones puntuales. Me habría llevado un tiempo darme cuenta. RUNNING_IMAGE_LAYERS es lo que no sabía que debía buscar.
Lo probé en una instancia que había sido actualizada y en otra que no, y parece que se comporta como se esperaba.