Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
e625a424
Commit
e625a424
authored
Aug 13, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whats_next: check that the TLSA record is correct, fixes #139
parent
0eceb201
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
whats_next.py
management/whats_next.py
+15
-1
No files found.
management/whats_next.py
View file @
e625a424
...
...
@@ -10,7 +10,7 @@ import os, os.path, re, subprocess
import
dns.reversename
,
dns
.
resolver
from
dns_update
import
get_dns_zones
from
dns_update
import
get_dns_zones
,
build_tlsa_record
from
web_update
import
get_web_domains
,
get_domain_ssl_files
from
mailconfig
import
get_mail_domains
,
get_mail_aliases
...
...
@@ -103,6 +103,20 @@ def check_primary_hostname_dns(domain, env):
print_error
(
"""Your box's reverse DNS is currently
%
s, but it should be
%
s. Your ISP or cloud provider will have instructions
on setting up reverse DNS for your box at
%
s."""
%
(
existing_rdns
,
domain
,
env
[
'PUBLIC_IP'
])
)
# Check the TLSA record.
tlsa_qname
=
"_25._tcp."
+
domain
tlsa25
=
query_dns
(
tlsa_qname
,
"TLSA"
,
nxdomain
=
None
)
tlsa25_expected
=
build_tlsa_record
(
env
)
if
tlsa25
==
tlsa25_expected
:
print_ok
(
"""The DANE TLSA record for incoming mail is correct (
%
s)."""
%
tlsa_qname
,)
elif
tlsa25
is
None
:
print_error
(
"""The DANE TLSA record for incoming mail is not set. This is optional."""
)
else
:
print_error
(
"""The DANE TLSA record for incoming mail (
%
s) is not correct. It is '
%
s' but it should be '
%
s'. Try running tools/dns_update to
regenerate the record. It may take several hours for
public DNS to update after a change."""
%
(
tlsa_qname
,
tlsa25
,
tlsa25_expected
))
# Check that the hostmaster@ email address exists.
check_alias_exists
(
"hostmaster@"
+
domain
,
env
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment