From fd3ad267badbb4ac8f4d00981510ba27e74a3988 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 15 Feb 2015 19:06:58 -0500 Subject: [PATCH] if a domain has a catch-all or domain alias then we no longer force the creation of postmaster@ and so we should not be checking for its existence in the status checks see 85a40da83cfe6ec471cb369fa6efcbea63e74de3 --- management/status_checks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index 50c4a03f..0fccd98d 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -456,8 +456,10 @@ def check_mail_domain(domain, env, output): be delivered to this box. It may take several hours for public DNS to update after a change. This problem may result from other issues listed here.""" % (mx, expected_mx)) - # Check that the postmaster@ email address exists. - check_alias_exists("postmaster@" + domain, env, output) + # Check that the postmaster@ email address exists. Not required if the domain has a + # catch-all address or domain alias. + if "@" + domain not in dict(get_mail_aliases(env)): + check_alias_exists("postmaster@" + domain, env, output) # Stop if the domain is listed in the Spamhaus Domain Block List. # The user might have chosen a domain that was previously in use by a spammer