1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-16 02:12:08 +00:00

fix depreciation warning

This commit is contained in:
KiekerJan 2022-06-03 21:25:58 +02:00
parent c587092408
commit 0ae206a16e

View File

@ -705,7 +705,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: