mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Spamhaus incorrect operation

Open recoilstv opened this issue 1 year ago • 12 comments

Hi! When checking the system status, I receive the following message: This domain is listed in the Spamhaus Domain Block List (code 127.255.255.254), which may prevent recipients from receiving your mail. See http://www.spamhaus.org/dbl/ and http://www.spamhaus.org/query/domain/mydomain. The same situation happens with my IP. But there are no problems when checking the status by the link. Because of this, I can't send and receive mail. After the reboot spamassassin, spampd & postfix sending, but not receiving work again.

recoilstv avatar Jul 22 '23 16:07 recoilstv

My box was doing the same thing, and it has suddenly stopped. How about yours?

Kirutian avatar Jul 25 '23 03:07 Kirutian

Hi. I removed all the Spamhaus settings from the Postfix configuration and wrote on the product support forum

recoilstv avatar Jul 25 '23 07:07 recoilstv

i had this a few times. Spamhaus support will remove you from their list if its a false positive (which occurs too often imho). There is a form for that in the links you showed. Its done in a few hours, but still.... annoying

blok82 avatar Jul 26 '23 09:07 blok82

i had this a few times. Spamhaus support will remove you from their list if its a false positive (which occurs too often imho). There is a form for that in the links you showed. Its done in a few hours, but still.... annoying

I wrote above that there are no problems when checking the status of the link on the Spamhaus website.

recoilstv avatar Jul 26 '23 13:07 recoilstv

https://www.spamhaus.org/news/article/807/using-our-public-mirrors-check-your-return-codes-now.

https://www.spamhaus.com/resource-center/if-you-query-spamhaus-projects-dnsbls-via-ovhclouds-dns-move-to-the-free-data-query-service/

Seems to be affecting people on OVH

saesrpg avatar Aug 16 '23 13:08 saesrpg

yes, this is a problem. My box is rejecting all emails as spam, since it can no longer properly get spamhaus info.

florisre avatar Oct 23 '23 14:10 florisre

This might happen when you're not using the Mail in a box built-in DNS resolver. Spamhaus will return error codes 127.255.255.254 and 127.255.255.255 for public/open resolvers, or when a user makes an excessive number of queries. Did you change anything to the DNS settings of the box?

kiekerjan avatar Oct 28 '23 19:10 kiekerjan

No, I did not change anything. However, the default set up had 1.1.1.1 as DNS server. Changing to 127.0.0.1 fixed the issue temporarly. To fully fix this, I got a DQS key from spamhaus and changed the postfix config to use it. Now everything is working as expected.

28.10.2023 21:35:10 KiekerJan @.***>:

This might happen when you're not using the Mail in a box built-in DNS resolver. Spamhaus will return error codes 127.255.255.254 and 127.255.255.255 for public/open resolvers, or when a user makes an excessive number of queries. Did you change anything to the DNS settings of the box?

-- Reply to this email directly or view it on GitHub:

https://github.com/mail-in-a-box/mailinabox/issues/2288#issuecomment-1783905244 You are receiving this because you commented.

Message ID: @.***>

florisre avatar Oct 29 '23 08:10 florisre

However, the default set up had 1.1.1.1 as DNS server.

That should not be the case. But perhaps your VPS provider overwrites the MiaB configuration? (it has happened before) How did you deploy this installation.

Changing to 127.0.0.1 fixed the issue temporarly

Why temporarily?

kiekerjan avatar Oct 29 '23 13:10 kiekerjan

Not sure why temporarily. The DNS configuration persists, I am assuming maybe too many request from my DNS provider's network?

florisre avatar Oct 29 '23 13:10 florisre

However, the default set up had 1.1.1.1 as DNS server.

That should not be the case. But perhaps your VPS provider overwrites the MiaB configuration? (it has happened before) How did you deploy this installation.

I ran into the issue again. It does not seem to be my cloud provider overwriting the setting, but rather the setting not being applied successfully during setup. I was able to resolve this with creating /etc/resolvconf/resolv.conf.d/head and applying it with resolvconf. After restarting resolved everything worked as expected. Maybe this is about Ubuntu changing how DNS servers are configured, or maybe also about different networking setups used by VPS providers?

florisre avatar Dec 12 '23 17:12 florisre

My box is rejecting all emails as spam, since it can no longer properly get spamhaus info

In the meantime I created this so that at least the mail is not rejected as spam for this reason.

kiekerjan avatar Dec 12 '23 20:12 kiekerjan