remove deprecated method call

This commit is contained in:
KiekerJan 2022-05-30 19:37:00 +02:00
parent f575b1c2a2
commit 02f2a34bcf
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ def check_mail_domain(domain, env, output):
output.print_ok(good_news)
# Check MTA-STS policy.
loop = asyncio.get_event_loop()
loop = asyncio.new_event_loop()
sts_resolver = postfix_mta_sts_resolver.resolver.STSResolver(loop=loop)
valid, policy = loop.run_until_complete(sts_resolver.resolve(domain))
if valid == postfix_mta_sts_resolver.resolver.STSFetchResult.VALID: