mirror of
https://github.com/craigerl/aprsd.git
synced 2024-12-20 16:41:13 -05:00
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:
parent
1635feb820
commit
0f6df5fc05
@ -248,14 +248,14 @@ def validate_shortcuts(config):
|
|||||||
LOG.info(f"Validating {key}:{shortcuts[key]}")
|
LOG.info(f"Validating {key}:{shortcuts[key]}")
|
||||||
is_valid = validate_email(
|
is_valid = validate_email(
|
||||||
email_address=shortcuts[key],
|
email_address=shortcuts[key],
|
||||||
check_regex=True,
|
check_format=True,
|
||||||
check_mx=False,
|
check_dns=True,
|
||||||
from_address=config["aprsd"]["email"]["smtp"]["login"],
|
check_smtp=True,
|
||||||
helo_host=config["aprsd"]["email"]["smtp"]["host"],
|
smtp_from_address=config["aprsd"]["email"]["smtp"]["login"],
|
||||||
|
smtp_helo_host=config["aprsd"]["email"]["smtp"]["host"],
|
||||||
smtp_timeout=10,
|
smtp_timeout=10,
|
||||||
dns_timeout=10,
|
dns_timeout=10,
|
||||||
use_blacklist=True,
|
smtp_debug=False,
|
||||||
debug=False,
|
|
||||||
)
|
)
|
||||||
if not is_valid:
|
if not is_valid:
|
||||||
LOG.error(
|
LOG.error(
|
||||||
|
Loading…
Reference in New Issue
Block a user