Commit 19aba091 authored by Joshua Tauberer's avatar Joshua Tauberer

test_mail: if EHLO test fails continue testing the rest, since user may be...

test_mail: if EHLO test fails continue testing the rest, since user may be waiting on DNS propagation
parent f91830f0
...@@ -48,8 +48,8 @@ if reverse_dns is not None: ...@@ -48,8 +48,8 @@ if reverse_dns is not None:
helo_name = server.ehlo_resp.decode("utf8").split("\n")[0] # first line is the EHLO name helo_name = server.ehlo_resp.decode("utf8").split("\n")[0] # first line is the EHLO name
if helo_name != reverse_dns: if helo_name != reverse_dns:
print("The server's EHLO name does not match its reverse hostname. Check DNS settings.") print("The server's EHLO name does not match its reverse hostname. Check DNS settings.")
sys.exit(1) else:
print("SMTP EHLO name (%s) is OK." % helo_name) print("SMTP EHLO name (%s) is OK." % helo_name)
# Login and send a test email. # Login and send a test email.
server.login(emailaddress, pw) server.login(emailaddress, pw)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment