@@ -14,10 +14,7 @@ records for STARTTLS support. It saves its results to CSV or JSON.
14
14
15
15
` trustymail ` requires ** Python 3.6+** . Python 2 is not supported.
16
16
17
- ` trustymail ` can be installed as a module or run directly from the
18
- repository.
19
-
20
- ### Installed as a module ###
17
+ ### Local installation ###
21
18
22
19
` trustymail ` can be installed directly via pip:
23
20
@@ -31,19 +28,10 @@ It can then be run directly:
31
28
trustymail [options] example.com
32
29
```
33
30
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
44
32
45
33
``` console
46
- python scripts/ trustymail [options] example.com
34
+ python3 -m trustymail [options] example.com
47
35
```
48
36
49
37
### Using Docker (optional) ###
@@ -71,10 +59,9 @@ output will always be written to disk, defaulting to `results.csv`.
71
59
72
60
``` console
73
61
-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.)
78
65
--smtp-localhost=HOSTNAME The hostname to use when connecting to SMTP
79
66
servers. (Default is the FQDN of the host from
80
67
which trustymail is being run.)
@@ -83,12 +70,13 @@ output will always be written to disk, defaulting to `results.csv`.
83
70
--no-smtp-cache Do not cache SMTP results during the run. This
84
71
may results in slower scans due to testing the
85
72
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.
88
75
(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.
92
80
--dns=HOSTNAMES A comma-delimited list of DNS servers to query
93
81
against. For example, if you want to use
94
82
Google's DNS then you would use the
@@ -109,7 +97,7 @@ output will always be written to disk, defaulting to `results.csv`.
109
97
instance, where the local filesystem is read-only.
110
98
```
111
99
112
- ## What's Checked ? ##
100
+ ## What's checked ? ##
113
101
114
102
For a given domain, MX records, SPF records (TXT), DMARC (TXT, at
115
103
` _dmarc.<domain> ` ), and support for STARTTLS are checked. Resource records can
@@ -145,7 +133,7 @@ The following values are returned in `results.csv`:
145
133
- ` Domain Supports STARTTLS Results ` - A list of the mail server and
146
134
port combinations that support STARTTLS.
147
135
148
- ### SPF ###
136
+ ### Sender Policy Framework ( SPF) ###
149
137
150
138
- ` SPF Record ` - Whether or not a SPF record was found.
151
139
- ` SPF Record DNSSEC ` - A boolean value indicating whether or not the
@@ -155,7 +143,7 @@ The following values are returned in `results.csv`:
155
143
- ` SPF Results ` - The textual representation of any SPF record found
156
144
for the domain.
157
145
158
- ### DMARC ###
146
+ ### Domain-based Message Authentication, Reporting, and Conformance ( DMARC) ###
159
147
160
148
- ` DMARC Record ` - True/False whether or not a DMARC record was found.
161
149
- ` DMARC Record DNSSEC ` - A boolean value indicating whether or not
0 commit comments