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.
Um pouco complicado… mas acho que isso deve funcionar:
# Primeiro, certifique-se de ter a imagem base mais recente localmente
docker pull discourse/mail-receiver:release
# Obtenha a camada superior da imagem base
BASE_IMAGE_HASH=$(docker history discourse/mail-receiver:release -q | head -n 1)
# Obtenha as camadas da versão **em execução**
RUNNING_IMAGE_HASH=$(docker container inspect mail-receiver -f "{{.Image}}")
RUNNING_IMAGE_LAYERS=$(docker history $RUNNING_IMAGE_HASH -q)
# Verifique se as camadas da imagem em execução incluem a imagem base atual:
[[ "$RUNNING_IMAGE_LAYERS" == *"$BASE_IMAGE_HASH"* ]] && echo "Atualizado"
Isso imprimirá “Atualizado” se você estiver atualizado. Caso contrário, a última linha não imprimirá nada e sairá com um status diferente de zero.
Ah. Isso é brilhante. E parece ser uma solução geral para a qual eu anteriormente só encontrava soluções pontuais. Levaria um tempo para eu descobrir isso. O RUNNING_IMAGE_LAYERS é o que eu não sabia que deveria procurar.
Testei em uma instância que havia sido atualizada e em uma que não havia sido, e parece se comportar como esperado.