Merge pull request #44 from greyhatsec-au/master
Fix where not using wildcard domains and discarding unknown domains
This commit is contained in:
commit
f192b7ac0a
|
@ -121,6 +121,8 @@ class CustomSMTPServer(smtpd.SMTPServer):
|
|||
for x in DOMAINS:
|
||||
if "*" in x and domain.endswith(x.replace('*', '')):
|
||||
found = True
|
||||
elif domain == x:
|
||||
found = True
|
||||
if(DISCARD_UNKNOWN and found==False):
|
||||
logger.info('Discarding email for unknown domain: %s' % domain)
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue