Mails bounce or disappear. Suddenly can't receive mails anymore (was working before)

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.17.1
How are you able to access your server: The webadmin
SSH

Describe your issue

Mail was working properly.
After a recent upgrade, mails started to bounce. “status=bounced (mail for XXX loops back to myself yunohost)”
Mails seem to go through rspamd wihtough being blocked, but they don’t arrive in the mail box.
It was all working a couple days ago.

Share relevant logs or error messages

I don’t know what logs are of interest, but I can share any log that is pointed

The diagnosis and yunohost tools regen-conf --dry-run --with-diff

Success! The configuration would have been updated for category ‘dnsmasq’
dnsmasq:
applied:
/etc/resolv.dnsmasq.conf:
diff: @@ -1,14 +1,14 @@
+nameserver 2001:1608:10:25::1c04:b12f
+nameserver 2001:678:8::3
+nameserver 2001:1608:10:25::9249:d69b
+nameserver 185.233.100.100
+nameserver 84.200.70.40
+nameserver 2a0c:e300::1337
+nameserver 185.233.100.101
+nameserver 45.67.81.23
nameserver 2a0c:e300::101
-nameserver 2001:678:8::3
-nameserver 194.0.5.3
-nameserver 185.233.100.101
nameserver 2a0c:e300::100
-nameserver 2001:1608:10:25::9249:d69b
nameserver 89.234.141.66
-nameserver 185.233.100.100
nameserver 194.150.168.168
nameserver 2a00:5881:8100:1000::3
-nameserver 45.67.81.23
-nameserver 84.200.70.40
-nameserver 2a0c:e300::1337
-nameserver 2001:1608:10:25::1c04:b12f
+nameserver 194.0.5.3
status: updated
pending:

Do you have ports 53 or 5353 open?

It wasn’t open… which is weird because it was working before.
I opened 53 and 5353 (ingress only, should I do egress too?)

Tried to send an email from outside to my mailbox and it bounced.
Remote Server returned ‘554 5.4.6 < #5.4.6 X-Postfix; mail for xx.xx.net loops back to myself>’

I didn’t tell you to open them. They should be closed

Let regen the dnsmasq config with yunohost tools regen-conf --force, then check /etc/hosts for anything abnormal :

cat /etc/hosts
127.0.0.1       localhost
::1     localhost       ip6-localhost   ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.1.1       domain.com        domain

127.0.0.1       domain

It says that my system has configured “manage_etc_hosts” as true.

from what I see, it’s more in the form of

127.0.1.1       domain.com        domain.com
127.0.0.1       domain.com        domain.com

salut,
même erreur de mon coté, loops back to myself
je n’ai pas trouvé la solution pour le moment
j’ai ouvert un autre ticket pour info

rien de neuf ?

A bug has been identified in our postfix conf and should be fixed in 12.1.26, maybe that’s the cause of your issue, it’s a bit unclear what were the implications of the bug

1 Like