truemail 2.2.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -1
- data/.reek.yml +9 -0
- data/.rubocop.yml +60 -0
- data/CHANGELOG.md +77 -0
- data/Gemfile.lock +62 -44
- data/LICENSE.txt +1 -1
- data/README.md +49 -20
- data/bin/console +3 -10
- data/lib/truemail.rb +2 -2
- data/lib/truemail/audit/base.rb +0 -1
- data/lib/truemail/audit/dns.rb +1 -1
- data/lib/truemail/audit/ip.rb +1 -1
- data/lib/truemail/audit/ptr.rb +4 -3
- data/lib/truemail/auditor.rb +1 -1
- data/lib/truemail/configuration.rb +39 -31
- data/lib/truemail/core.rb +11 -15
- data/lib/truemail/dns/punycode_representer.rb +16 -0
- data/lib/truemail/dns/resolver.rb +17 -0
- data/lib/truemail/dns/worker.rb +52 -0
- data/lib/truemail/log/serializer/auditor_json.rb +1 -1
- data/lib/truemail/log/serializer/base.rb +3 -1
- data/lib/truemail/log/serializer/validator_base.rb +6 -2
- data/lib/truemail/log/serializer/validator_text.rb +2 -2
- data/lib/truemail/logger.rb +1 -1
- data/lib/truemail/validate/mx.rb +7 -9
- data/lib/truemail/validate/smtp/request.rb +11 -7
- data/lib/truemail/validate/smtp/response.rb +1 -1
- data/lib/truemail/validator.rb +2 -2
- data/lib/truemail/version.rb +1 -1
- data/lib/truemail/wrapper.rb +3 -3
- data/truemail.gemspec +11 -9
- metadata +55 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a3aa734763299e91236f3786a75b24be153a5471e7f0f600a76ab448a2f7ba0
|
4
|
+
data.tar.gz: b0777846155fcf24d15b0658b0a333ba173d04641f8c02411ffc60e9dcfea612
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3649aefe43c1119fe7a33645974356c0c600c2e962b7a6142457fb897f1851b10439688f69f137269f5529efa63f9df71618abd68fe01490e4aa9373d240185b
|
7
|
+
data.tar.gz: 47549c16f171d746f8bc83cbaab458fccb45b5114af2d8e8fdd38564334bf4d77e5cc85c0daad5fff2d785938dd969c11eae59e3410ffc60c919cd9ac2b84187
|
data/.codeclimate.yml
CHANGED
data/.reek.yml
CHANGED
@@ -13,6 +13,7 @@ detectors:
|
|
13
13
|
- Truemail::Validate::Smtp#run
|
14
14
|
- Truemail::Validate::Mx#hosts_from_cname_records
|
15
15
|
- Truemail::Configuration#logger=
|
16
|
+
- Truemail::Validate::Smtp::Request#initialize
|
16
17
|
|
17
18
|
TooManyInstanceVariables:
|
18
19
|
exclude:
|
@@ -42,6 +43,9 @@ detectors:
|
|
42
43
|
- Truemail::Configuration#domain_matcher
|
43
44
|
- Truemail::Configuration#logger_options
|
44
45
|
- Truemail::Log::Serializer::Base#errors
|
46
|
+
- Truemail::Log::Serializer::ValidatorBase#replace_invalid_chars
|
47
|
+
- Truemail::Dns::Worker#nameserver_port
|
48
|
+
- Truemail::Configuration#check_dns_settings
|
45
49
|
|
46
50
|
ControlParameter:
|
47
51
|
exclude:
|
@@ -71,5 +75,10 @@ detectors:
|
|
71
75
|
exclude:
|
72
76
|
- Truemail::Configuration#logger=
|
73
77
|
|
78
|
+
TooManyConstants:
|
79
|
+
exclude:
|
80
|
+
- Truemail::Configuration
|
81
|
+
- Truemail::RegexConstant
|
82
|
+
|
74
83
|
exclude_paths:
|
75
84
|
- spec/support/helpers
|
data/.rubocop.yml
CHANGED
@@ -136,6 +136,21 @@ Style/NilLambda:
|
|
136
136
|
Style/SwapValues:
|
137
137
|
Enabled: true
|
138
138
|
|
139
|
+
Style/RedundantArgument:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
Style/HashExcept:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
Style/EndlessMethod:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
Style/IfWithBooleanLiteralBranches:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
Style/HashConversion:
|
152
|
+
Enabled: true
|
153
|
+
|
139
154
|
Layout/LineLength:
|
140
155
|
Max: 140
|
141
156
|
|
@@ -167,6 +182,9 @@ Layout/EmptyLinesAroundAttributeAccessor:
|
|
167
182
|
Layout/BeginEndAlignment:
|
168
183
|
Enabled: true
|
169
184
|
|
185
|
+
Layout/SpaceBeforeBrackets:
|
186
|
+
Enabled: true
|
187
|
+
|
170
188
|
Lint/NonDeterministicRequireOrder:
|
171
189
|
Enabled: false
|
172
190
|
|
@@ -260,6 +278,36 @@ Lint/ToEnumArguments:
|
|
260
278
|
Lint/UnmodifiedReduceAccumulator:
|
261
279
|
Enabled: true
|
262
280
|
|
281
|
+
Lint/UnexpectedBlockArity:
|
282
|
+
Enabled: true
|
283
|
+
|
284
|
+
Lint/AmbiguousAssignment:
|
285
|
+
Enabled: true
|
286
|
+
|
287
|
+
Lint/DeprecatedConstants:
|
288
|
+
Enabled: true
|
289
|
+
|
290
|
+
Lint/LambdaWithoutLiteralBlock:
|
291
|
+
Enabled: true
|
292
|
+
|
293
|
+
Lint/RedundantDirGlobSort:
|
294
|
+
Enabled: true
|
295
|
+
|
296
|
+
Lint/NumberedParameterAssignment:
|
297
|
+
Enabled: true
|
298
|
+
|
299
|
+
Lint/OrAssignmentToConstant:
|
300
|
+
Enabled: true
|
301
|
+
|
302
|
+
Lint/SymbolConversion:
|
303
|
+
Enabled: true
|
304
|
+
|
305
|
+
Lint/TripleQuotes:
|
306
|
+
Enabled: true
|
307
|
+
|
308
|
+
Gemspec/DateAssignment:
|
309
|
+
Enabled: true
|
310
|
+
|
263
311
|
Performance/AncestorsInclude:
|
264
312
|
Enabled: true
|
265
313
|
|
@@ -287,6 +335,18 @@ Performance/StringInclude:
|
|
287
335
|
Performance/Sum:
|
288
336
|
Enabled: true
|
289
337
|
|
338
|
+
Performance/BlockGivenWithExplicitBlock:
|
339
|
+
Enabled: true
|
340
|
+
|
341
|
+
Performance/CollectionLiteralInLoop:
|
342
|
+
Enabled: true
|
343
|
+
|
344
|
+
Performance/ConstantRegexp:
|
345
|
+
Enabled: true
|
346
|
+
|
347
|
+
Performance/MethodObjectAsBlock:
|
348
|
+
Enabled: true
|
349
|
+
|
290
350
|
RSpec/ExampleLength:
|
291
351
|
Enabled: false
|
292
352
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,83 @@
|
|
2
2
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
4
4
|
|
5
|
+
## [2.3.1] - 2020.02.26
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- Updated gem development dependencies
|
10
|
+
- Updated rubocop/codeclimate config
|
11
|
+
- Updated tests
|
12
|
+
|
13
|
+
## [2.3.0] - 2020.02.05
|
14
|
+
|
15
|
+
### Added
|
16
|
+
|
17
|
+
- Ability to use custom DNS gateway. Thanks [@le0pard](https://github.com/le0pard) for the great idea and [@verdi8](https://github.com/verdi8) for feature [request](https://github.com/truemail-rb/truemail/issues/126).
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
Truemail.configure do |config|
|
21
|
+
# Optional parameter. This option will provide to use custom DNS gateway when Truemail
|
22
|
+
# interacts with DNS. If you won't specify nameserver's ports Truemail will use default
|
23
|
+
# DNS TCP/UDP port 53. By default Truemail uses DNS gateway from system settings
|
24
|
+
# and this option is equal to empty array.
|
25
|
+
config.dns = ['10.0.0.1', '10.0.0.2:5300']
|
26
|
+
end
|
27
|
+
```
|
28
|
+
|
29
|
+
- Added `Truemail::Dns::Resolver`
|
30
|
+
- Added `Truemail::Dns::Worker`
|
31
|
+
|
32
|
+
### Changed
|
33
|
+
|
34
|
+
- Updated `Truemail::Configuration`, tests
|
35
|
+
- Updated `Truemail::Validate::Mx`, tests
|
36
|
+
- Updated `Truemail::Audit::Base`
|
37
|
+
- Updated `Truemail::Audit::Dns`, tests
|
38
|
+
- Updated `Truemail::Audit::Ptr`, tests
|
39
|
+
- Updated `Truemail::Log::Serializer::Base`, dependent tests
|
40
|
+
- Updated namespaces for stdlib classes
|
41
|
+
- Updated gem development dependencies
|
42
|
+
- Updated linters/codeclimate configs
|
43
|
+
- Updated gem runtime/development dependencies
|
44
|
+
- Updated gem documentation, changelog, version
|
45
|
+
|
46
|
+
## [2.2.3] - 2020.01.12
|
47
|
+
|
48
|
+
### Fixed
|
49
|
+
|
50
|
+
Removed needless `Timeout.timeout` block in `Truemail::Validate::Smtp::Request#check_port`, replaced `TCPSocket` to `Socket` with native timeout detection. Thanks to [@wikiti](https://github.com/wikiti) for idea, testing on production and clean PR [#127](https://github.com/truemail-rb/truemail/pull/127).
|
51
|
+
|
52
|
+
### Changed
|
53
|
+
|
54
|
+
- Updated `Truemail::Validate::Smtp::Request`
|
55
|
+
- Updated gem development dependencies
|
56
|
+
- Updated rubocop, reek configs
|
57
|
+
|
58
|
+
## [2.2.2] - 2020.12.30
|
59
|
+
|
60
|
+
### Changed
|
61
|
+
|
62
|
+
- Updated gem development dependencies
|
63
|
+
- Updated rubocop config
|
64
|
+
|
65
|
+
## [2.2.1] - 2020.12.06
|
66
|
+
|
67
|
+
### Fixed
|
68
|
+
|
69
|
+
- Filter out ASCII-8BIT chars for serialized SMTP response errors. Fixed `Encoding::UndefinedConversionError` in `Truemail::Log::Serializer::ValidatorJson#serialize`. Thanks to [@eni9889](https://github.com/eni9889) for report
|
70
|
+
- Added missed `smtp_fail_fast` attribute to serialized validator and auditor results
|
71
|
+
|
72
|
+
### Added
|
73
|
+
|
74
|
+
- Added `Truemail::Log::Serializer::ValidatorBase#replace_invalid_chars`
|
75
|
+
|
76
|
+
### Changed
|
77
|
+
|
78
|
+
- Updated `Truemail::Log::Serializer::Base`
|
79
|
+
- Updated `Truemail::Log::Serializer::ValidatorBase`
|
80
|
+
- Updated gem development dependencies
|
81
|
+
|
5
82
|
## [2.2.0] - 2020.12.01
|
6
83
|
|
7
84
|
Ability to use fail fast behaviour for SMTP validation layer. When `smtp_fail_fast = true` it means that `truemail` ends smtp validation session after first attempt on the first mx server in any fail cases (network connection/timeout error, smtp validation error). This feature helps to reduce total time of SMTP validation session up to 1 second.
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
truemail (2.
|
5
|
-
simpleidn (~> 0.
|
4
|
+
truemail (2.3.1)
|
5
|
+
simpleidn (~> 0.2.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
|
+
ast (2.4.2)
|
11
13
|
bundler-audit (0.7.0.1)
|
12
14
|
bundler (>= 1.2.0, < 3)
|
13
15
|
thor (>= 0.18, < 2)
|
@@ -15,14 +17,22 @@ GEM
|
|
15
17
|
childprocess (4.0.0)
|
16
18
|
coderay (1.1.3)
|
17
19
|
colorize (0.8.1)
|
20
|
+
concurrent-ruby (1.1.8)
|
21
|
+
crack (0.4.5)
|
22
|
+
rexml
|
18
23
|
diff-lcs (1.4.4)
|
19
|
-
|
20
|
-
|
24
|
+
dns_mock (1.2.0)
|
25
|
+
docile (1.3.5)
|
26
|
+
faker (2.16.0)
|
27
|
+
i18n (>= 1.6, < 2)
|
28
|
+
fasterer (0.9.0)
|
21
29
|
colorize (~> 0.7)
|
22
30
|
ruby_parser (>= 3.14.1)
|
23
|
-
|
31
|
+
hashdiff (1.0.1)
|
32
|
+
i18n (1.8.9)
|
33
|
+
concurrent-ruby (~> 1.0)
|
24
34
|
iniparse (1.5.0)
|
25
|
-
json (2.
|
35
|
+
json (2.5.1)
|
26
36
|
json_matchers (0.11.1)
|
27
37
|
json_schema
|
28
38
|
json_schema (0.20.9)
|
@@ -31,8 +41,8 @@ GEM
|
|
31
41
|
overcommit (0.57.0)
|
32
42
|
childprocess (>= 0.6.3, < 5)
|
33
43
|
iniparse (~> 1.4)
|
34
|
-
parallel (1.20.
|
35
|
-
parser (
|
44
|
+
parallel (1.20.1)
|
45
|
+
parser (3.0.0.0)
|
36
46
|
ast (~> 2.4.1)
|
37
47
|
pry (0.13.1)
|
38
48
|
coderay (~> 1.1)
|
@@ -40,65 +50,71 @@ GEM
|
|
40
50
|
pry-byebug (3.9.0)
|
41
51
|
byebug (~> 11.0)
|
42
52
|
pry (~> 0.13.0)
|
43
|
-
psych (3.
|
53
|
+
psych (3.3.1)
|
54
|
+
public_suffix (4.0.6)
|
44
55
|
rainbow (3.0.0)
|
45
|
-
rake (13.0.
|
46
|
-
reek (6.0.
|
56
|
+
rake (13.0.3)
|
57
|
+
reek (6.0.3)
|
47
58
|
kwalify (~> 0.7.0)
|
48
|
-
parser (
|
59
|
+
parser (~> 3.0.0)
|
49
60
|
psych (~> 3.1)
|
50
61
|
rainbow (>= 2.0, < 4.0)
|
51
|
-
regexp_parser (1.
|
62
|
+
regexp_parser (2.1.1)
|
52
63
|
rexml (3.2.4)
|
53
64
|
rspec (3.10.0)
|
54
65
|
rspec-core (~> 3.10.0)
|
55
66
|
rspec-expectations (~> 3.10.0)
|
56
67
|
rspec-mocks (~> 3.10.0)
|
57
|
-
rspec-core (3.10.
|
68
|
+
rspec-core (3.10.1)
|
58
69
|
rspec-support (~> 3.10.0)
|
59
|
-
rspec-expectations (3.10.
|
70
|
+
rspec-expectations (3.10.1)
|
60
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
61
72
|
rspec-support (~> 3.10.0)
|
62
|
-
rspec-mocks (3.10.
|
73
|
+
rspec-mocks (3.10.2)
|
63
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
64
75
|
rspec-support (~> 3.10.0)
|
65
|
-
rspec-support (3.10.
|
66
|
-
rubocop (1.
|
76
|
+
rspec-support (3.10.2)
|
77
|
+
rubocop (1.10.0)
|
67
78
|
parallel (~> 1.10)
|
68
|
-
parser (>=
|
79
|
+
parser (>= 3.0.0.0)
|
69
80
|
rainbow (>= 2.2.2, < 4.0)
|
70
|
-
regexp_parser (>= 1.8)
|
81
|
+
regexp_parser (>= 1.8, < 3.0)
|
71
82
|
rexml
|
72
|
-
rubocop-ast (>= 1.
|
83
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
73
84
|
ruby-progressbar (~> 1.7)
|
74
|
-
unicode-display_width (>= 1.4.0, <
|
75
|
-
rubocop-ast (1.
|
85
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
86
|
+
rubocop-ast (1.4.1)
|
76
87
|
parser (>= 2.7.1.5)
|
77
|
-
rubocop-performance (1.
|
78
|
-
rubocop (>= 0.
|
88
|
+
rubocop-performance (1.9.2)
|
89
|
+
rubocop (>= 0.90.0, < 2.0)
|
79
90
|
rubocop-ast (>= 0.4.0)
|
80
|
-
rubocop-rspec (2.
|
91
|
+
rubocop-rspec (2.2.0)
|
81
92
|
rubocop (~> 1.0)
|
82
93
|
rubocop-ast (>= 1.1.0)
|
83
|
-
ruby-progressbar (1.
|
84
|
-
ruby_parser (3.15.
|
94
|
+
ruby-progressbar (1.11.0)
|
95
|
+
ruby_parser (3.15.1)
|
85
96
|
sexp_processor (~> 4.9)
|
86
|
-
sexp_processor (4.15.
|
97
|
+
sexp_processor (4.15.2)
|
87
98
|
simplecov (0.17.1)
|
88
99
|
docile (~> 1.1)
|
89
100
|
json (>= 1.8, < 3)
|
90
101
|
simplecov-html (~> 0.10.0)
|
91
102
|
simplecov-html (0.10.2)
|
92
|
-
simpleidn (0.
|
103
|
+
simpleidn (0.2.1)
|
93
104
|
unf (~> 0.1.4)
|
94
|
-
thor (1.0
|
95
|
-
truemail-rspec (0.
|
96
|
-
|
97
|
-
|
105
|
+
thor (1.1.0)
|
106
|
+
truemail-rspec (0.4.0)
|
107
|
+
faker (~> 2.16)
|
108
|
+
rspec (~> 3.10)
|
109
|
+
truemail (>= 2.3)
|
98
110
|
unf (0.1.4)
|
99
111
|
unf_ext
|
100
112
|
unf_ext (0.0.7.7)
|
101
|
-
unicode-display_width (
|
113
|
+
unicode-display_width (2.0.0)
|
114
|
+
webmock (3.12.0)
|
115
|
+
addressable (>= 2.3.6)
|
116
|
+
crack (>= 0.3.2)
|
117
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
102
118
|
|
103
119
|
PLATFORMS
|
104
120
|
ruby
|
@@ -106,20 +122,22 @@ PLATFORMS
|
|
106
122
|
DEPENDENCIES
|
107
123
|
bundler (~> 1.16)
|
108
124
|
bundler-audit (~> 0.7.0.1)
|
109
|
-
|
110
|
-
|
125
|
+
dns_mock (~> 1.2)
|
126
|
+
faker (~> 2.16)
|
127
|
+
fasterer (~> 0.9.0)
|
111
128
|
json_matchers (~> 0.11.1)
|
112
129
|
overcommit (~> 0.57.0)
|
113
130
|
pry-byebug (~> 3.9)
|
114
|
-
rake (~> 13.0, >= 13.0.
|
115
|
-
reek (~> 6.0, >= 6.0.
|
131
|
+
rake (~> 13.0, >= 13.0.3)
|
132
|
+
reek (~> 6.0, >= 6.0.3)
|
116
133
|
rspec (~> 3.10)
|
117
|
-
rubocop (~> 1.
|
118
|
-
rubocop-performance (~> 1.
|
119
|
-
rubocop-rspec (~> 2.
|
134
|
+
rubocop (~> 1.10)
|
135
|
+
rubocop-performance (~> 1.9, >= 1.9.2)
|
136
|
+
rubocop-rspec (~> 2.2)
|
120
137
|
simplecov (~> 0.17.1)
|
121
138
|
truemail!
|
122
|
-
truemail-rspec (~> 0.
|
139
|
+
truemail-rspec (~> 0.4)
|
140
|
+
webmock (~> 3.12)
|
123
141
|
|
124
142
|
BUNDLED WITH
|
125
143
|
1.16.6
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2019-
|
3
|
+
Copyright (c) 2019-2021 Vladislav Trotsenko
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -132,6 +132,7 @@ You can use global gem configuration or custom independent configuration. Availa
|
|
132
132
|
- whitelisted domains
|
133
133
|
- whitelist validation
|
134
134
|
- blacklisted domains
|
135
|
+
- custom DNS gateway(s)
|
135
136
|
- RFC MX lookup flow
|
136
137
|
- SMTP fail fast
|
137
138
|
- SMTP safe check
|
@@ -201,6 +202,12 @@ Truemail.configure do |config|
|
|
201
202
|
# It is equal to empty array by default.
|
202
203
|
config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
|
203
204
|
|
205
|
+
# Optional parameter. This option will provide to use custom DNS gateway when Truemail
|
206
|
+
# interacts with DNS. If you won't specify nameserver's ports Truemail will use default
|
207
|
+
# DNS TCP/UDP port 53. By default Truemail uses DNS gateway from system settings
|
208
|
+
# and this option is equal to empty array.
|
209
|
+
config.dns = ['10.0.0.1', '10.0.0.2:54']
|
210
|
+
|
204
211
|
# Optional parameter. This option will provide to use not RFC MX lookup flow.
|
205
212
|
# It means that MX and Null MX records will be cheked on the DNS validation layer only.
|
206
213
|
# By default this option is disabled.
|
@@ -242,6 +249,7 @@ Truemail.configuration
|
|
242
249
|
@whitelisted_domains=[],
|
243
250
|
@whitelist_validation=true,
|
244
251
|
@blacklisted_domains=[],
|
252
|
+
@dns=[],
|
245
253
|
@verifier_domain="somedomain.com",
|
246
254
|
@verifier_email="verifier@example.com",
|
247
255
|
@not_rfc_mx_lookup_flow=true,
|
@@ -272,6 +280,7 @@ Truemail.configuration
|
|
272
280
|
@whitelisted_domains=[],
|
273
281
|
@whitelist_validation=true,
|
274
282
|
@blacklisted_domains=[],
|
283
|
+
@dns=[],
|
275
284
|
@verifier_domain="somedomain.com",
|
276
285
|
@verifier_email="verifier@example.com",
|
277
286
|
@not_rfc_mx_lookup_flow=true,
|
@@ -352,6 +361,7 @@ Truemail.validate('email@white-domain.com')
|
|
352
361
|
smtp_debug=nil>,
|
353
362
|
configuration=#<Truemail::Configuration:0x00005629f801bd28
|
354
363
|
@blacklisted_domains=["black-domain.com", "somedomain.com"],
|
364
|
+
@dns=[],
|
355
365
|
@connection_attempts=2,
|
356
366
|
@connection_timeout=2,
|
357
367
|
@default_validation_type=:smtp,
|
@@ -399,6 +409,7 @@ Truemail.validate('email@white-domain.com', with: :regex)
|
|
399
409
|
configuration=
|
400
410
|
#<Truemail::Configuration:0x0000563f0d2605c8
|
401
411
|
@blacklisted_domains=[],
|
412
|
+
@dns=[],
|
402
413
|
@connection_attempts=2,
|
403
414
|
@connection_timeout=2,
|
404
415
|
@default_validation_type=:smtp,
|
@@ -432,6 +443,7 @@ Truemail.validate('email@domain.com', with: :regex)
|
|
432
443
|
configuration=
|
433
444
|
#<Truemail::Configuration:0x0000563f0cd82ab0
|
434
445
|
@blacklisted_domains=[],
|
446
|
+
@dns=[],
|
435
447
|
@connection_attempts=2,
|
436
448
|
@connection_timeout=2,
|
437
449
|
@default_validation_type=:smtp,
|
@@ -467,6 +479,7 @@ Truemail.validate('email@black-domain.com')
|
|
467
479
|
configuration=
|
468
480
|
#<Truemail::Configuration:0x0000563f0d36f4f0
|
469
481
|
@blacklisted_domains=[],
|
482
|
+
@dns=[],
|
470
483
|
@connection_attempts=2,
|
471
484
|
@connection_timeout=2,
|
472
485
|
@default_validation_type=:smtp,
|
@@ -502,6 +515,7 @@ Truemail.validate('email@somedomain.com')
|
|
502
515
|
configuration=
|
503
516
|
#<Truemail::Configuration:0x0000563f0d3f8fc0
|
504
517
|
@blacklisted_domains=[],
|
518
|
+
@dns=[],
|
505
519
|
@connection_attempts=2,
|
506
520
|
@connection_timeout=2,
|
507
521
|
@default_validation_type=:smtp,
|
@@ -553,6 +567,7 @@ Truemail.validate('email@example.com', with: :regex)
|
|
553
567
|
configuration=
|
554
568
|
#<Truemail::Configuration:0x000055aa56a54d48
|
555
569
|
@blacklisted_domains=[],
|
570
|
+
@dns=[],
|
556
571
|
@connection_attempts=2,
|
557
572
|
@connection_timeout=2,
|
558
573
|
@default_validation_type=:smtp,
|
@@ -596,6 +611,7 @@ Truemail.validate('email@example.com', with: :regex)
|
|
596
611
|
configuration=
|
597
612
|
#<Truemail::Configuration:0x0000560e58d80830
|
598
613
|
@blacklisted_domains=[],
|
614
|
+
@dns=[],
|
599
615
|
@connection_attempts=2,
|
600
616
|
@connection_timeout=2,
|
601
617
|
@default_validation_type=:smtp,
|
@@ -650,6 +666,7 @@ Truemail.validate('email@example.com', with: :mx)
|
|
650
666
|
configuration=
|
651
667
|
#<Truemail::Configuration:0x0000559b6e44af70
|
652
668
|
@blacklisted_domains=[],
|
669
|
+
@dns=[],
|
653
670
|
@connection_attempts=2,
|
654
671
|
@connection_timeout=2,
|
655
672
|
@default_validation_type=:smtp,
|
@@ -695,6 +712,7 @@ Truemail.validate('email@example.com', with: :mx)
|
|
695
712
|
configuration=
|
696
713
|
#<Truemail::Configuration:0x0000559b6e44af70
|
697
714
|
@blacklisted_domains=[],
|
715
|
+
@dns=[],
|
698
716
|
@connection_attempts=2,
|
699
717
|
@connection_timeout=2,
|
700
718
|
@default_validation_type=:smtp,
|
@@ -769,6 +787,7 @@ Truemail.validate('email@example.com')
|
|
769
787
|
configuration=
|
770
788
|
#<Truemail::Configuration:0x00007fdc4504f5c8
|
771
789
|
@blacklisted_domains=[],
|
790
|
+
@dns=[],
|
772
791
|
@connection_attempts=2,
|
773
792
|
@connection_timeout=2,
|
774
793
|
@default_validation_type=:smtp,
|
@@ -812,6 +831,7 @@ Truemail.validate('email@example.com')
|
|
812
831
|
configuration=
|
813
832
|
#<Truemail::Configuration:0x00005615e87b9298
|
814
833
|
@blacklisted_domains=[],
|
834
|
+
@dns=[],
|
815
835
|
@connection_attempts=2,
|
816
836
|
@connection_timeout=2,
|
817
837
|
@default_validation_type=:smtp,
|
@@ -862,6 +882,7 @@ Truemail.validate('email@example.com')
|
|
862
882
|
configuration=
|
863
883
|
#<Truemail::Configuration:0x00005615e87b9298
|
864
884
|
@blacklisted_domains=[],
|
885
|
+
@dns=[],
|
865
886
|
@connection_attempts=2,
|
866
887
|
@connection_timeout=2,
|
867
888
|
@default_validation_type=:smtp,
|
@@ -924,6 +945,7 @@ Truemail.validate('email@example.com')
|
|
924
945
|
configuration=
|
925
946
|
#<Truemail::Configuration:0x00005615e87b9298
|
926
947
|
@blacklisted_domains=[],
|
948
|
+
@dns=[],
|
927
949
|
@connection_attempts=2,
|
928
950
|
@connection_timeout=2,
|
929
951
|
@default_validation_type=:smtp,
|
@@ -971,6 +993,7 @@ Truemail.validate('email@example.com')
|
|
971
993
|
configuration=
|
972
994
|
#<Truemail::Configuration:0x00005615e87b9298
|
973
995
|
@blacklisted_domains=[],
|
996
|
+
@dns=[],
|
974
997
|
@connection_attempts=2,
|
975
998
|
@connection_timeout=2,
|
976
999
|
@default_validation_type=:smtp,
|
@@ -1019,6 +1042,7 @@ Truemail.host_audit
|
|
1019
1042
|
configuration=
|
1020
1043
|
#<Truemail::Configuration:0x00005615e86327a8
|
1021
1044
|
@blacklisted_domains=[],
|
1045
|
+
@dns=[],
|
1022
1046
|
@connection_attempts=2,
|
1023
1047
|
@connection_timeout=2,
|
1024
1048
|
@default_validation_type=:smtp,
|
@@ -1046,6 +1070,7 @@ Truemail.host_audit
|
|
1046
1070
|
configuration=
|
1047
1071
|
#<Truemail::Configuration:0x00005615e86327a8
|
1048
1072
|
@blacklisted_domains=[],
|
1073
|
+
@dns=[],
|
1049
1074
|
@connection_attempts=2,
|
1050
1075
|
@connection_timeout=2,
|
1051
1076
|
@default_validation_type=:smtp,
|
@@ -1097,15 +1122,16 @@ Truemail::Log::Serializer::AuditorJson.call(Truemail.host_audit)
|
|
1097
1122
|
"dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
|
1098
1123
|
},
|
1099
1124
|
"configuration": {
|
1100
|
-
"validation_type_by_domain": null,
|
1101
|
-
"whitelist_validation": false,
|
1102
|
-
"whitelisted_domains": null,
|
1103
1125
|
"blacklisted_domains": null,
|
1126
|
+
"dns": null,
|
1127
|
+
"email_pattern": "default gem value",
|
1104
1128
|
"not_rfc_mx_lookup_flow": false,
|
1129
|
+
"smtp_error_body_pattern": "default gem value",
|
1105
1130
|
"smtp_fail_fast": false,
|
1106
1131
|
"smtp_safe_check": false,
|
1107
|
-
"
|
1108
|
-
"
|
1132
|
+
"validation_type_by_domain": null,
|
1133
|
+
"whitelist_validation": false,
|
1134
|
+
"whitelisted_domains": null
|
1109
1135
|
}
|
1110
1136
|
}
|
1111
1137
|
```
|
@@ -1136,15 +1162,16 @@ Truemail::Log::Serializer::ValidatorJson.call(Truemail.validate('nonexistent_ema
|
|
1136
1162
|
}
|
1137
1163
|
],
|
1138
1164
|
"configuration": {
|
1139
|
-
"validation_type_by_domain": null,
|
1140
|
-
"whitelist_validation": false,
|
1141
|
-
"whitelisted_domains": null,
|
1142
1165
|
"blacklisted_domains": null,
|
1166
|
+
"dns": null,
|
1167
|
+
"email_pattern": "default gem value",
|
1143
1168
|
"not_rfc_mx_lookup_flow": false,
|
1169
|
+
"smtp_error_body_pattern": "default gem value",
|
1144
1170
|
"smtp_fail_fast": false,
|
1145
1171
|
"smtp_safe_check": false,
|
1146
|
-
"
|
1147
|
-
"
|
1172
|
+
"validation_type_by_domain": null,
|
1173
|
+
"whitelist_validation": false,
|
1174
|
+
"whitelisted_domains": null
|
1148
1175
|
}
|
1149
1176
|
}
|
1150
1177
|
```
|
@@ -1177,15 +1204,16 @@ Truemail.host_audit.as_json
|
|
1177
1204
|
"dns": "A-record of verifier domain not refers to current host ip address", "ptr": "PTR-record does not reference to current verifier domain"
|
1178
1205
|
},
|
1179
1206
|
"configuration": {
|
1180
|
-
"validation_type_by_domain": null,
|
1181
|
-
"whitelist_validation": false,
|
1182
|
-
"whitelisted_domains": null,
|
1183
1207
|
"blacklisted_domains": null,
|
1208
|
+
"dns": null,
|
1209
|
+
"email_pattern": "default gem value",
|
1184
1210
|
"not_rfc_mx_lookup_flow": false,
|
1211
|
+
"smtp_error_body_pattern": "default gem value",
|
1185
1212
|
"smtp_fail_fast": false,
|
1186
1213
|
"smtp_safe_check": false,
|
1187
|
-
"
|
1188
|
-
"
|
1214
|
+
"validation_type_by_domain": null,
|
1215
|
+
"whitelist_validation": false,
|
1216
|
+
"whitelisted_domains": null
|
1189
1217
|
}
|
1190
1218
|
}
|
1191
1219
|
|
@@ -1213,15 +1241,16 @@ Truemail.validate('nonexistent_email@bestweb.com.ua').as_json
|
|
1213
1241
|
}
|
1214
1242
|
],
|
1215
1243
|
"configuration": {
|
1216
|
-
"validation_type_by_domain": null,
|
1217
|
-
"whitelist_validation": false,
|
1218
|
-
"whitelisted_domains": null,
|
1219
1244
|
"blacklisted_domains": null,
|
1245
|
+
"dns": null,
|
1246
|
+
"email_pattern": "default gem value",
|
1220
1247
|
"not_rfc_mx_lookup_flow": false,
|
1248
|
+
"smtp_error_body_pattern": "default gem value",
|
1221
1249
|
"smtp_fail_fast": false,
|
1222
1250
|
"smtp_safe_check": false,
|
1223
|
-
"
|
1224
|
-
"
|
1251
|
+
"validation_type_by_domain": null,
|
1252
|
+
"whitelist_validation": false,
|
1253
|
+
"whitelisted_domains": null
|
1225
1254
|
}
|
1226
1255
|
}
|
1227
1256
|
```
|