Skip to content

Commit 1ad8975

Browse files
authored
Merge pull request #127 from cisagov/improvement/update_readme
Clean up the README post-skeletonization
2 parents 201c5f6 + 4bbf7fe commit 1ad8975

File tree

2 files changed

+22
-34
lines changed

2 files changed

+22
-34
lines changed

README.md

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ records for STARTTLS support. It saves its results to CSV or JSON.
1414

1515
`trustymail` requires **Python 3.6+**. Python 2 is not supported.
1616

17-
`trustymail` can be installed as a module or run directly from the
18-
repository.
19-
20-
### Installed as a module ###
17+
### Local installation ###
2118

2219
`trustymail` can be installed directly via pip:
2320

@@ -31,19 +28,10 @@ It can then be run directly:
3128
trustymail [options] example.com
3229
```
3330

34-
### Running directly ###
35-
36-
To run the tool locally from the repository, without installing, first
37-
install the requirements:
38-
39-
```console
40-
pip install -r requirements.txt
41-
```
42-
43-
Then run the CLI:
31+
or
4432

4533
```console
46-
python scripts/trustymail [options] example.com
34+
python3 -m trustymail [options] example.com
4735
```
4836

4937
### Using Docker (optional) ###
@@ -71,10 +59,9 @@ output will always be written to disk, defaulting to `results.csv`.
7159

7260
```console
7361
-h --help Show this message.
74-
-o --output=OUTFILE Name of output file. (Default results)
75-
-t --timeout=TIMEOUT The DNS lookup timeout in seconds. (Default is 5.)
76-
--smtp-timeout=TIMEOUT The SMTP connection timeout in seconds. (Default
77-
is 5.)
62+
-o --output=OUTFILE Name of output file. (Default results)
63+
-t --timeout=TIMEOUT The DNS lookup timeout in seconds. (Default is 5.)
64+
--smtp-timeout=TIMEOUT The SMTP connection timeout in seconds. (Default is 5.)
7865
--smtp-localhost=HOSTNAME The hostname to use when connecting to SMTP
7966
servers. (Default is the FQDN of the host from
8067
which trustymail is being run.)
@@ -83,12 +70,13 @@ output will always be written to disk, defaulting to `results.csv`.
8370
--no-smtp-cache Do not cache SMTP results during the run. This
8471
may results in slower scans due to testing the
8572
same mail servers multiple times.
86-
--mx Only check mx records
87-
--starttls Only check mx records and STARTTLS support.
73+
--mx Only check MX records.
74+
--starttls Only check MX records and STARTTLS support.
8875
(Implies --mx.)
89-
--spf Only check spf records
90-
--dmarc Only check dmarc records
91-
--debug Output should include error messages.
76+
--spf Only check SPF records.
77+
--dmarc Only check DMARC records.
78+
--json Output is in JSON format. (Default is CSV.)
79+
--debug Output should include more verbose logging.
9280
--dns=HOSTNAMES A comma-delimited list of DNS servers to query
9381
against. For example, if you want to use
9482
Google's DNS then you would use the
@@ -109,7 +97,7 @@ output will always be written to disk, defaulting to `results.csv`.
10997
instance, where the local filesystem is read-only.
11098
```
11199

112-
## What's Checked? ##
100+
## What's checked? ##
113101

114102
For a given domain, MX records, SPF records (TXT), DMARC (TXT, at
115103
`_dmarc.<domain>`), and support for STARTTLS are checked. Resource records can
@@ -145,7 +133,7 @@ The following values are returned in `results.csv`:
145133
- `Domain Supports STARTTLS Results` - A list of the mail server and
146134
port combinations that support STARTTLS.
147135

148-
### SPF ###
136+
### Sender Policy Framework (SPF) ###
149137

150138
- `SPF Record` - Whether or not a SPF record was found.
151139
- `SPF Record DNSSEC` - A boolean value indicating whether or not the
@@ -155,7 +143,7 @@ The following values are returned in `results.csv`:
155143
- `SPF Results` - The textual representation of any SPF record found
156144
for the domain.
157145

158-
### DMARC ###
146+
### Domain-based Message Authentication, Reporting, and Conformance (DMARC) ###
159147

160148
- `DMARC Record` - True/False whether or not a DMARC record was found.
161149
- `DMARC Record DNSSEC` - A boolean value indicating whether or not

src/trustymail/cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Options:
99
-h --help Show this message.
10-
-o --output=OUTFILE Name of output file. (Default results)
11-
-t --timeout=TIMEOUT The DNS lookup timeout in seconds. (Default is 5.)
12-
--smtp-timeout=TIMEOUT The SMTP connection timeout in seconds. (Default is 5.)
10+
-o --output=OUTFILE Name of output file. (Default results)
11+
-t --timeout=TIMEOUT The DNS lookup timeout in seconds. (Default is 5.)
12+
--smtp-timeout=TIMEOUT The SMTP connection timeout in seconds. (Default is 5.)
1313
--smtp-localhost=HOSTNAME The hostname to use when connecting to SMTP
1414
servers. (Default is the FQDN of the host from
1515
which trustymail is being run.)
@@ -18,12 +18,12 @@
1818
--no-smtp-cache Do not cache SMTP results during the run. This
1919
may results in slower scans due to testing the
2020
same mail servers multiple times.
21-
--mx Only check MX records
21+
--mx Only check MX records.
2222
--starttls Only check MX records and STARTTLS support.
2323
(Implies --mx.)
24-
--spf Only check SPF records
25-
--dmarc Only check DMARC records
26-
--json Output is in json format (default csv)
24+
--spf Only check SPF records.
25+
--dmarc Only check DMARC records.
26+
--json Output is in JSON format. (Default is CSV.)
2727
--debug Output should include more verbose logging.
2828
--dns=HOSTNAMES A comma-delimited list of DNS servers to query
2929
against. For example, if you want to use

0 commit comments

Comments
 (0)