diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index f5fe3b5e..300d8d8c 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -19,7 +19,8 @@ import os import hmac import smtplib import idna -import dns +import dns.resolver +import dns.exception from flask import current_app as app from sqlalchemy.ext import declarative diff --git a/core/admin/mailu/ui/views/domains.py b/core/admin/mailu/ui/views/domains.py index f394ce7d..a48bb154 100644 --- a/core/admin/mailu/ui/views/domains.py +++ b/core/admin/mailu/ui/views/domains.py @@ -5,7 +5,6 @@ from flask import current_app as app import flask import flask_login import wtforms_components -import dns.resolver @ui.route('/domain', methods=['GET']) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index eddd6848..d9cc1894 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -6,8 +6,12 @@ try: except ImportError: import pickle -import dns import dns.resolver +import dns.exception +import dns.flags +import dns.rdtypes +import dns.rdatatype +import dns.rdataclass import hmac import secrets diff --git a/core/admin/requirements-prod.txt b/core/admin/requirements-prod.txt index 9bd131fb..ecb0b8ed 100644 --- a/core/admin/requirements-prod.txt +++ b/core/admin/requirements-prod.txt @@ -14,7 +14,7 @@ cryptography==35.0.0 decorator==5.1.0 distlib==0.3.1 distro==1.5.0 -dnspython==1.16.0 +dnspython==2.1.0 dominate==2.3.5 email-validator==1.1.3 Flask==1.0.2