From 0f6df5fc05819787a5c57108a39495775d4e6959 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 2 Sep 2021 09:43:33 -0400 Subject: [PATCH] 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. --- aprsd/plugins/email.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aprsd/plugins/email.py b/aprsd/plugins/email.py index e96e81c..d52212e 100644 --- a/aprsd/plugins/email.py +++ b/aprsd/plugins/email.py @@ -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(