mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
Check MX priority.
This commit is contained in:
parent
84638ab11e
commit
72fcb005b2
@ -242,7 +242,7 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en
|
|||||||
has_rec_base = records
|
has_rec_base = records
|
||||||
|
|
||||||
# The MX record says where email for the domain should be delivered: Here!
|
# The MX record says where email for the domain should be delivered: Here!
|
||||||
if not has_rec(None, "MX"):
|
if not has_rec(None, "MX", prefix="10 "):
|
||||||
records.append((None, "MX", "10 %s." % env["PRIMARY_HOSTNAME"], "Required. Specifies the hostname (and priority) of the machine that handles @%s mail." % domain))
|
records.append((None, "MX", "10 %s." % env["PRIMARY_HOSTNAME"], "Required. Specifies the hostname (and priority) of the machine that handles @%s mail." % domain))
|
||||||
|
|
||||||
# SPF record: Permit the box ('mx', see above) to send mail on behalf of
|
# SPF record: Permit the box ('mx', see above) to send mail on behalf of
|
||||||
|
Loading…
Reference in New Issue
Block a user