- Edited
Every hour I get an automated email and in the last week or so it has started having problems. Sometimes the emails don’t arrive for hours then suddenly they’ll all back flood in. I checked the logs and what happens is it says “sender address rejected: domain not found”. If I ping the domain both from the postfix docker or the host server it finds it, no problem. And clearly it does find the domain sometimes because emails will mostly come through. Now what I have noticed is that they are sending via google and mailcow is resolving the google domains in ipv6 however the sender’s domain does not have an AAAA record. This is happening only for this one sender domain but happens to all emails from them regardless of the address they send from. So I’m looking for advise on what possibly the issue is. My idea currently is that perhaps it sometimes is trying to find an ipv6 ip and failing and not falling back to ipv4.
Does anyone have a way I can stop this? Perhaps there’s a way to whitelist that domain so it doesn’t check the sender’s domain? Maybe if I put the ipv4 and a fake ipv6 resolution in my hosts file would that be enough?