Fix where not using wildcard domains and discarding unknown domains
This commit is contained in:
parent
dc220b21f7
commit
dd384713c8
|
@ -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