question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DNSBL report incorrect

See original GitHub issue

Just upgraded to 1.6.0 from 1.5.1

added new crontab entries then manually ran /srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py modo check_mx as vmail with no errors. All DNSBL show as listed, my manual checks (where possible) show no listings. using dnsbl.info only dnsbl-3.uceprotect.net shows listed due to my server being a digital ocean droplet (minor issue).

I am unsure how to debug this issue. I have set debugging to True in settings.py is there a log file I can check?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
aweincommented, Oct 9, 2016

This issue is caused by a missing domain entry in the resolv.conf file. An empty value might still cause issues in case your hostname is a subdomain (like mail.example.com).

@tonioo I suggest to append a . at the end of the hostname (which will force the name to be the full DNS name instead of a relative one) (e.g. bl.spamcop.net. instead of bl.spamcop.net)

The workaround until then is to add the following line to the /etc/resolv.conf:

domain .
1reaction
hennedocommented, Oct 5, 2016

Found the error! I had set a DNS Search Domain in my /etc/resolv.conf. socket.gethostbyname always returned the IP address of my Webserver. The Searchdomain also is the hostname of my Webserver, so it seems, when socket.gethostbyname cannot resolve the Hostname, it takes the IP of the searchdomain.

Removing the Searchdomain fixed this.

(and the script crashes if no MX is present now… mhh did I break something? 😄 the try…catch, doesn’t seem to catch the “dns.resolver.NXDOMAIN” error, which is raised if no MX is present…)

^- forget that, this seems to be already fixed in the current git master…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blacklist Removal Process - DNSbl
Technical listings are those that occur mostly from mail server configuration issues such as missing or incorrect reverse DNS records, missing on incorrect...
Read more >
Not seeing IP blocks in Deny area of reports tab. DNSBL ...
Not seeing IP blocks in Deny area of reports tab. DNSBL shows up properly. I have many IP block lists that I am...
Read more >
Not seeing IP blocks in Alerts area of reports tab. DNSBL ...
I have many IP block lists that I am using, and the IPs that they are blocking(or at least I assume they are),...
Read more >
Configuring DNSBL - Axway Documentation Portal
In the DNSBL Source Domain column, enter the fully qualified domain name (FQDN) of a DNSBL server. This is where MailGate gets a...
Read more >
arblcheck - Check names/IPs against DNS blocklists
DNSBL Background; Detecting dead or incorrect DNSBLs ... When arblcheck is run without command-line arguments, it reports a short "help" listing that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found