mailauth 4.6.2 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -6
- package/LICENSE.txt +1 -1
- package/README.md +1 -1
- package/lib/bimi/index.js +2 -2
- package/lib/dkim/dkim-verifier.js +1 -1
- package/lib/dmarc/verify.js +1 -1
- package/lib/mailauth.js +1 -1
- package/lib/tools.js +3 -3
- package/man/mailauth.1 +2 -2
- package/man/man.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [4.6.
|
|
3
|
+
## [4.6.3](https://github.com/postalsys/mailauth/compare/v4.6.2...v4.6.3) (2024-01-26)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
*
|
|
8
|
+
* bumped 2022 in copyright notices to 2024 ([cc89823](https://github.com/postalsys/mailauth/commit/cc8982349d14b42a28581ebc52aa6de2e11b5be8))
|
|
9
9
|
|
|
10
|
-
## [4.6.
|
|
10
|
+
## [4.6.2](https://github.com/postalsys/mailauth/compare/v4.6.1...v4.6.2) (2024-01-25)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **bimi:** skip bimi with undersized DKIM signatures ([d666d74](https://github.com/postalsys/mailauth/commit/d666d7476cbcae8b3161c78a7e737559ad112fd9))
|
|
11
15
|
|
|
16
|
+
## [4.6.1](https://github.com/postalsys/mailauth/compare/v4.6.0...v4.6.1) (2024-01-24)
|
|
12
17
|
|
|
13
18
|
### Bug Fixes
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
- **dkim-verify:** Show the length of the source body in DKIM results ([d28663b](https://github.com/postalsys/mailauth/commit/d28663b30b0bfaf07d395e9d3eaea044c9085657))
|
|
16
21
|
|
|
17
22
|
## [4.6.0](https://github.com/postalsys/mailauth/compare/v4.5.2...v4.6.0) (2023-11-02)
|
|
18
23
|
|
|
19
|
-
|
|
20
24
|
### Features
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
- **deploy:** Set up automatic publishing ([f9b9c32](https://github.com/postalsys/mailauth/commit/f9b9c325e4dbac060114aa12c5887ea8c92c0bf8))
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
package/lib/bimi/index.js
CHANGED
|
@@ -51,9 +51,9 @@ const lookup = async data => {
|
|
|
51
51
|
return response;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (dmarc.alignment?.dkim?.
|
|
54
|
+
if (dmarc.alignment?.dkim?.underSized) {
|
|
55
55
|
response.status.result = 'skipped';
|
|
56
|
-
response.status.comment = '
|
|
56
|
+
response.status.comment = 'undersized DKIM signature';
|
|
57
57
|
response.info = formatAuthHeaderRow('bimi', response.status);
|
|
58
58
|
return response;
|
|
59
59
|
}
|
|
@@ -338,7 +338,7 @@ class DkimVerifier extends MessageParser {
|
|
|
338
338
|
result.canonBodyLengthLimited = true;
|
|
339
339
|
result.canonBodyLengthLimit = signatureHeader.maxBodyLength;
|
|
340
340
|
if (result.canonBodyLengthTotal > result.canonBodyLength) {
|
|
341
|
-
status.
|
|
341
|
+
status.underSized = result.canonBodyLengthTotal - result.canonBodyLength;
|
|
342
342
|
}
|
|
343
343
|
} else {
|
|
344
344
|
result.canonBodyLengthLimited = false;
|
package/lib/dmarc/verify.js
CHANGED
|
@@ -102,7 +102,7 @@ const verifyDmarc = async opts => {
|
|
|
102
102
|
|
|
103
103
|
alignment: {
|
|
104
104
|
spf: { result: spfAlignment?.domain, strict: dmarcRecord.aspf === 's' },
|
|
105
|
-
dkim: { result: dkimAlignment?.domain, strict: dmarcRecord.adkim === 's',
|
|
105
|
+
dkim: { result: dkimAlignment?.domain, strict: dmarcRecord.adkim === 's', underSized: dkimAlignment?.underSized }
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
};
|
package/lib/mailauth.js
CHANGED
package/lib/tools.js
CHANGED
|
@@ -398,8 +398,8 @@ const formatAuthHeaderRow = (method, status) => {
|
|
|
398
398
|
|
|
399
399
|
parts.push(`${method}=${status.result || 'none'}`);
|
|
400
400
|
|
|
401
|
-
if (status.
|
|
402
|
-
parts.push(`(${escapeCommentValue(`
|
|
401
|
+
if (status.underSized) {
|
|
402
|
+
parts.push(`(${escapeCommentValue(`undersized signature: ${status.underSized}`)})`);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
if (status.comment) {
|
|
@@ -455,7 +455,7 @@ const getAlignment = (fromDomain, domainList, strict) => {
|
|
|
455
455
|
}
|
|
456
456
|
return entry;
|
|
457
457
|
})
|
|
458
|
-
.sort((a, b) => (a.
|
|
458
|
+
.sort((a, b) => (a.underSized || 0) - (b.underSized || 0));
|
|
459
459
|
|
|
460
460
|
if (strict) {
|
|
461
461
|
fromDomain = formatDomain(fromDomain);
|
package/man/mailauth.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH "MAILAUTH" "1" "January 2024" "v4.6.
|
|
1
|
+
.TH "MAILAUTH" "1" "January 2024" "v4.6.3" "Mailauth Help"
|
|
2
2
|
.SH "NAME"
|
|
3
3
|
\fBmailauth\fR
|
|
4
4
|
.QP
|
|
@@ -138,7 +138,7 @@ You can split longer TXT strings into multiple strings\. There is no length limi
|
|
|
138
138
|
Please report any bugs to https://github\.com/postalsys/mailauth/issues\.
|
|
139
139
|
.SH LICENSE
|
|
140
140
|
.P
|
|
141
|
-
Copyright (c) 2020\-
|
|
141
|
+
Copyright (c) 2020\-2024, Postal Systems (MIT)\.
|
|
142
142
|
.SH SEE ALSO
|
|
143
143
|
.P
|
|
144
144
|
node\.js(1)
|
package/man/man.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mailauth",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3",
|
|
4
4
|
"description": "Email authentication library for Node.js",
|
|
5
5
|
"main": "lib/mailauth.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"marked-man": "0.7.0",
|
|
44
44
|
"mbox-reader": "1.1.5",
|
|
45
45
|
"mocha": "10.2.0",
|
|
46
|
-
"npm-check-updates": "16.14.
|
|
46
|
+
"npm-check-updates": "16.14.13",
|
|
47
47
|
"pkg": "5.8.1"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|