Fixed email validation

This patch adjusts the py3-email-validation usage.  Since we
upgraded to 1.0.2, the signature has changed.  This patch adjusts
the signature usage so it works again.
This commit is contained in:
Hemna 2021-09-02 09:43:33 -04:00
parent 1635feb820
commit 0f6df5fc05
1 changed files with 6 additions and 6 deletions

View File

@ -248,14 +248,14 @@ def validate_shortcuts(config):
LOG.info(f"Validating {key}:{shortcuts[key]}")
is_valid = validate_email(
email_address=shortcuts[key],
check_regex=True,
check_mx=False,
from_address=config["aprsd"]["email"]["smtp"]["login"],
helo_host=config["aprsd"]["email"]["smtp"]["host"],
check_format=True,
check_dns=True,
check_smtp=True,
smtp_from_address=config["aprsd"]["email"]["smtp"]["login"],
smtp_helo_host=config["aprsd"]["email"]["smtp"]["host"],
smtp_timeout=10,
dns_timeout=10,
use_blacklist=True,
debug=False,
smtp_debug=False,
)
if not is_valid:
LOG.error(