Not receiving emails in roundcube

You are welcome.

Exim uses a dns block list file /etc/exim4/dnsbl.conf that contains two block list providers:

bl.spamcop.net
zen.spamhaus.org

When a mail arrives, exim checks that the sender ip is not listed in one of those block list, so far, so good. The problem here is that spamhaus, to avoid abuse, doesn’t allow to query ips to their dns servers if they come from some public resolvers and it returns an ip that it is interpreted as “the sender ip must be blocked” so exim rejects all the mails because all ips are listed.

What we did, is to force your server to use 8.8.8.8 as the main dns resolver and once done, spamhaus is not rejecting the querys from exim when checking the sender’s ip.

2 Likes

If I use my own dns resolver, which one is good one as per you @sahsanu sir,
Unbound, Powerdns, Dnsmasq, Erl-dns.

I can’t say which one is better, what I can say is which one I use: PowerDNS Recursor (latest stable version: 4.9.2).

3 Likes

Thanks sir, :+1:t5:

1 Like

i have removed zen.spamhaus.org from /etc/exim4/dnsbl.conf file.
how do i restart exim now?

systemctl restart exim4

or from Web UI -> Server Settings and you will see the list of services, if you move the mouse over exim4 service, you will see an icon to restart the service.

In /etc/resolv.conf file, do i need to change below one line to change dns resolver

nameserver 127.0.0.53

Check the solution for this topic and you will see how to change it.

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