diff --git a/app/config.py b/app/config.py index eeb9db3c..133ef37a 100644 --- a/app/config.py +++ b/app/config.py @@ -425,7 +425,7 @@ ZENDESK_ENABLED = "ZENDESK_ENABLED" in os.environ DMARC_CHECK_ENABLED = "DMARC_CHECK_ENABLED" in os.environ # Bounces can happen after 5 days -VERP_MESSAGE_LIFETIME = 5 * 865400 +VERP_MESSAGE_LIFETIME = 5 * 86400 VERP_PREFIX = os.environ.get("VERP_PREFIX") or "sl" # Generate with python3 -c 'import secrets; print(secrets.token_hex(28))' VERP_EMAIL_SECRET = os.environ.get("VERP_EMAIL_SECRET") or ( diff --git a/email_handler.py b/email_handler.py index 29e84b6a..5ba882b7 100644 --- a/email_handler.py +++ b/email_handler.py @@ -157,7 +157,7 @@ from app.models import ( DomainDeletedAlias, Notification, DmarcCheckResult, - SPFCheckResult, + SPFCheckResult, VerpType, ) from app.pgp_utils import PGPException, sign_data_with_pgpy, sign_data from app.utils import sanitize_email