1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

whats_next: move the admin alias check to the system section

This commit is contained in:
Joshua Tauberer 2014-07-16 09:19:32 -04:00
parent 023cd12e1a
commit eac349187d

View File

@ -35,6 +35,10 @@ def run_system_checks(env):
else: else:
print_ok("SSH disallows password-based login.") print_ok("SSH disallows password-based login.")
# Check that the administrator alias exists since that's where all
# admin email is automatically directed.
check_alias_exists("administrator@" + env['PRIMARY_HOSTNAME'], env)
print() print()
def run_domain_checks(env): def run_domain_checks(env):
@ -55,7 +59,6 @@ def run_domain_checks(env):
if domain == env["PRIMARY_HOSTNAME"]: if domain == env["PRIMARY_HOSTNAME"]:
check_primary_hostname_dns(domain, env) check_primary_hostname_dns(domain, env)
check_alias_exists("administrator@" + domain, env)
if domain in dns_domains: if domain in dns_domains:
check_dns_zone(domain, env, dns_zonefiles) check_dns_zone(domain, env, dns_zonefiles)