mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.

Home Page:https://mailinabox.email/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intended order of sort_domains?

nameduser0 opened this issue · comments

Is this the intended order of sort_domains?
Just doesn't seem to match the description:

# The nice order will group domain names by DNS zone, i.e. the top-most
# domain name that we serve that ecompasses a set of subdomains. Map
# each of the domain names to the zone that contains them. Walk the domains
# from shortest to longest since zones are always shorter than their
# subdomains.

Obtained by running /usr/local/lib/mailinabox/env/bin/python management/utils.py

miab.domain.co.uk
mta-sts.miab.domain.co.uk
openpgpkey.miab.domain.co.uk
domain.co.uk
autoconfig.domain.co.uk
autodiscover.domain.co.uk
mta-sts.domain.co.uk
openpgpkey.domain.co.uk
www.domain.co.uk

def sort_domains(domain_names, env):