Showing with 3 additions and 3 deletions.
  1. +3 −3 src/postomaat/plugins/ebl-lookup.py
@@ -63,7 +63,7 @@ def _email_normalise(self, address):
domainparts = domain.split('.')

if 'googlemail' in domainparts: # replace googlemail with gmail
tld = domainparts.split('.', 1)
tld = '.'.join(domainparts[1:])
domain = 'gmail.%s' % tld
domainparts = ['gmail', tld]

@@ -116,7 +116,7 @@ def _ebl_lookup(self, addr_hash):


def examine(self, suspect):
if not HAVE_DNS:
if not DNSQUERY_EXTENSION_ENABLED:
return DUNNO

from_address=suspect.get_value('sender')
@@ -155,7 +155,7 @@ def lint(self):
print('Error checking config')
lint_ok = False

if not HAVE_DNS:
if not DNSQUERY_EXTENSION_ENABLED:
print("no DNS resolver library available - this plugin will do nothing")
lint_ok = False