# Unable to receive mail / Openresolver

**URL:** <https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285>\
**Category:** Mail\
**Created:** [February 27, 2025, 9:19am UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285 "2025-02-27T09:19:51Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 27, 2025, 9:19am UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/1 "2025-02-27T09:19:51Z")

</div>

When receiving an email the follow log is created:

> 50 5.7.350 Remote server returned message detected as spam → 550 Rejected because xx.xxx.xxx.xx is in a black list at [zen.spamhaus.org](http://zen.spamhaus.org);Error: open resolver; [https://check.spamhaus.org/returnc/pub/xxx.xxx.x.xxx./](https://check.spamhaus.org/returnc/pub/xxx.xxx.x.xxx./)

It seems that Spamhaus has recently include Hetzner ips in their “open resolver” list to solve the issue

- Use different name servers
- Or request for a DQS key see for more information: [Email and mail server | Hestia Control Panel](https://hestiacp.com/docs/server-administration/email.html#rejected-because-ip-is-in-black-list-at-zen-spamhaus-org-error-open-resolver-https-www-spamhaus-org-returnc-pub-65-1-174-102)

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 27, 2025, 9:20am UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/2 "2025-02-27T09:20:05Z")

</div>

Pinned globally on February 27, 2025, 9:20am UTC



---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 27, 2025, 9:31am UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/3 "2025-02-27T09:31:50Z")

</div>

To verify your server is affected run the following command:

`curl -sSL https://7j.gg/chksph2 | bash -s --`

Written by @sahsanu

---

<div class="post-metadata">

**Author:** ![T4B](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/t4b/32/5285_2.png) [@T4B](https://forum.hestiacp.com/u/T4B)\
**Post date:** [February 27, 2025, 1:21pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/4 "2025-02-27T13:21:23Z")

</div>

hey the `/etc/exim4/dnsbl.conf` and `/etc/exim4/exim4.conf.template` dont change with new updates right ?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 27, 2025, 1:25pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/5 "2025-02-27T13:25:15Z")

</div>

Both files won’t change during updates (except when you you update to a newer OS Ubuntu Focal → Jammy → Noble for example)

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 27, 2025, 3:20pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/6 "2025-02-27T15:20:47Z")

</div>

FYI, not just Hetzner, they have blocked loads of Netcup ones as well. Netcup has been having loads of sales and all, and they are real good and cheap, so another of that is getting blocked.

```auto
# curl -sSL https://7j.gg/chksph2 | bash -s xxx.xxx.xxx.xxx
Test 01: Error: open resolver; https://check.spamhaus.org/returnc/pub/xxx.xxx.xxx.xxx/
Result is bad, Spamhaus is blocking/ignoring the DNS Resolver xxx.xxx.xxx.xxx

```

I had to use from `76.x.x.x` ones @sahsanu gave.

---

<div class="post-metadata">

**Author:** ![Wibol](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/w/2acd7d/32.png) [@Wibol](https://forum.hestiacp.com/u/Wibol)\
**Post date:** [February 27, 2025, 4:20pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/7 "2025-02-27T16:20:21Z")

</div>

My Hetzner VPS can send mail without any problem, but does not receive it when I get a reply. Is this the same problem or is it something else?

I don’t receive the confirmation email from [FREE Data Query Service Account](https://www.spamhaus.com/free-trial/sign-up-for-a-free-data-query-service-account/) either.

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 27, 2025, 4:53pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/8 "2025-02-27T16:53:38Z")

</div>

Check this thread.

> [@Mail Still Being Rejected Despite "Reject Spam" Being Disabled in Hestia CP 1.9.2](https://forum.hestiacp.com/t/mail-still-being-rejected-despite-reject-spam-being-disabled-in-hestia-cp-1-9-2/18273):
>
> Mail Still Being Rejected Despite “Reject Spam” Being Disabled in Hestia CP 1.9.2 Issue Overview Since upgrading to Hestia Control Panel 1.9.0 (currently on 1.9.2), I’m experiencing mail delivery issues where emails are being rejected by DNS blacklists despite having disabled the “Reject Spam” option in the Hestia CP interface. Specific Symptoms “Reject Spam” option is unchecked in the Hestia CP interface for my domains Emails are still being rejected with bounce messages like:Undelivered Mail…

Also, ensure your dmarc, dkim, spf, mx, etc., are set correctly.

You can use the tools here to cross confirm your prerogative setups: [https://dnschecker.org/all-tools.php](https://dnschecker.org/all-tools.php)

---

<div class="post-metadata">

**Author:** ![dpeca](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/dpeca/32/2181_2.png) [@dpeca](https://forum.hestiacp.com/u/dpeca)\
**Post date:** [February 27, 2025, 10:30pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/9 "2025-02-27T22:30:58Z")

</div>

Looks like they announced this on January 08 - [Email Security | Query our DNSBLs via Hetzner's infrastructure? Move to free Data Query Service | Resources](https://www.spamhaus.org/resource-hub/email-security/query-the-legacy-dnsbls-via-hetzner/)

---

<div class="post-metadata">

**Author:** ![Wibol](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/w/2acd7d/32.png) [@Wibol](https://forum.hestiacp.com/u/Wibol)\
**Post date:** [February 28, 2025, 9:56am UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/10 "2025-02-28T09:56:42Z")

</div>

After reading all the sparsely detailed threads on the subject, these are the three possible solutions I have compiled to the problem of receiving mail due to Spamhaus blocking Hetzner resolvers, from least to most convenient. You can check if we are affected with:  
`# curl -sSL https://7j.gg/chksph2 | bash -s --`

**Remove Spamhaus anti-spam protection:**

`# nano /etc/exim4/dnsbl.conf`

> [bl.spamcop.net](http://bl.spamcop.net)  
> #[zen.spamhaus.org](http://zen.spamhaus.org)

`# systemctl restart exim4`

**Changing the resolvers used by the machine where HestiaCP is running to those of ‘Control D’:**

`# nano /etc/resolv.conf`

> nameserver 76.76.2.0  
> nameserver 76.76.10.0  
> #nameserver 185.12.64.2  
> #nameserver 185.12.64.1

**Obtain a free key from Spamhaus:**

We must first apply one of the above solutions to enable receipt of the verification email that Spamhaus will send us.

- Go to [Spamhaus free data query account](https://www.spamhaus.com/free-trial/sign-up-for-a-free-data-query-service-account/)
- Fill in the form and verify your email address by via the link in the email you recive.
- Once logged, go to Products → DQS and you will see your Query Key and below you will see the exactly fqdn that you will need to use Zen Spamhaus black list. Something like: [HereYourQueryKey.zen.dq.spamhaus.net](http://HereYourQueryKey.zen.dq.spamhaus.net)
- Edit /etc/exim4/dnsbl.conf and replace [zen.spamhaus.org](http://zen.spamhaus.org) with [HereYourQueryKey.zen.dq.spamhaus.net](http://HereYourQueryKey.zen.dq.spamhaus.net)

`# nano /etc/exim4/dnsbl.conf`

> [bl.spamcop.net](http://bl.spamcop.net)  
> [HereYourQueryKey.zen.dq.spamhaus.net](http://HereYourQueryKey.zen.dq.spamhaus.net)

- Also edit /etc/exim4/exim4.conf.template on the line: ‘deny message = Rejected because $sender\_host\_address is in a black list at $dnslist\_domain\n$dnslist\_text’ to ‘deny message = Rejected because $sender\_host\_address is in a black list’ to prevent your Query key from leaking

`# nano /etc/exim4/exim4.conf.template`

Restart exim4  
`# systemctl restart exim4`

I hope it will be useful to users who, like me, have less knowledge.

Translated with [DeepL.com](http://DeepL.com) (free version)

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 28, 2025, 1:07pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/11 "2025-02-28T13:07:58Z")

</div>

Trouble with that data query account is, they need your real name, mobile/contact number and all sorts. Even though this company is based out of UK, they use amazon services and to give spamhaus my data (unlike registrar), I am not willing to get their free service anyways.

That is just me.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 28, 2025, 1:12pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/12 "2025-02-28T13:12:08Z")

</div>

Then disable it:

nano /etc/exim4/dnsbl.conf  
and remove the [zen.spamhaus.org](http://zen.spamhaus.org)

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 28, 2025, 1:13pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/13 "2025-02-28T13:13:26Z")

</div>

But then what service should I use in lieu of spamhaus?

Any suggestions please?

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 28, 2025, 2:24pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/14 "2025-02-28T14:24:15Z")

</div>

> [@nu01](#):
>
> But then what service should I use in lieu of spamhaus?

If you have not deleted it, you should still be using spamcop.

Here are some alternatives to Spamhaus:

**Barracuda Reputation Block List (BRBL)**  
**URL:** [https://www.barracudacentral.org/](https://www.barracudacentral.org/)

**SpamCop Blocking List (SCBL)**  
**URL:** [SpamCop.net - Blocking List ( bl.spamcop.net )](https://www.spamcop.net/bl.shtml)

**UCEPROTECT DNSBL**  
**URL:** [https://www.uceprotect.net/](https://www.uceprotect.net/)

**PSBL (Passive Spam Block List)**  
**URL:** [http://psbl.org/](http://psbl.org/)

**SpamRATS**  
**URL:** [https://www.spamrats.com/](https://www.spamrats.com/)

**[0spam.org](http://0spam.org) DNSBL**  
**URL:** [https://www.0spam.org/](https://www.0spam.org/)

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 28, 2025, 2:25pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/15 "2025-02-28T14:25:48Z")

</div>

Thanks. If I add the others, while keeping just the zen (not dbl), will it cause more issues? Sorry, just learning this after facing my personal issues since 2 week.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [February 28, 2025, 2:46pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/16 "2025-02-28T14:46:59Z")

</div>

> [@nu01](#):
>
> while keeping just the zen (not dbl)

I don’t understand this, `zen.spamhaus.org` is a DNSBL. If it doesn’t work for you why you would keep using it?

---

<div class="post-metadata">

**Author:** ![nu01](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/nu01/32/7639_2.png) [@nu01](https://forum.hestiacp.com/u/nu01)\
**Post date:** [February 28, 2025, 2:49pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/17 "2025-02-28T14:49:18Z")

</div>

No no. Since you mentioned I should keep it (if not yet removed), so I wanted to understand. As I said. i am new in this kind of topic. So before doing anything, just wanted to clarify with you.

---

<div class="post-metadata">

**Author:** ![linkp](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/linkp/32/2863_2.png) [@linkp](https://forum.hestiacp.com/u/linkp)\
**Post date:** [February 28, 2025, 4:30pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/18 "2025-02-28T16:30:10Z")

</div>

> [@sahsanu](#):
>
> SORBS

This service has (somewhat recently) ceased operations.

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [March 30, 2025, 4:30pm UTC](https://forum.hestiacp.com/t/unable-to-receive-mail-openresolver/18285/19 "2025-03-30T16:30:56Z")

</div>

Closed on March 30, 2025, 4:30pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
