mailauth 4.8.5 → 4.8.6

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.8.6](https://github.com/postalsys/mailauth/compare/v4.8.5...v4.8.6) (2025-05-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ARC:** Updated built-in trust list for ARC ([ea9fc8c](https://github.com/postalsys/mailauth/commit/ea9fc8c6f8c5609b66053f1ffe95891c0b4efcb7))
9
+ * use minLength option for rsa keys ([#84](https://github.com/postalsys/mailauth/issues/84)) ([cbfed81](https://github.com/postalsys/mailauth/commit/cbfed816d953eee3c7eed99055c53f689a46a101))
10
+
3
11
  ## [4.8.5](https://github.com/postalsys/mailauth/compare/v4.8.4...v4.8.5) (2025-05-11)
4
12
 
5
13
 
@@ -2,13 +2,26 @@
2
2
 
3
3
  module.exports = {
4
4
  trusted: [
5
- // Gsuite/Gmail
5
+ // GSuite/Gmail
6
6
  'google.com',
7
7
 
8
8
  // O365
9
9
  'microsoft.com',
10
10
 
11
- // Fastmail
12
- 'messagingengine.com'
11
+ // From https://github.com/trusteddomainproject/ARC_Community_Sealers/blob/master/community_sealer_whitelist
12
+ 'gmail.com',
13
+ 'googlegroups.com',
14
+ 'messagingengine.com',
15
+ 'pobox.com',
16
+ 'topicbox.com',
17
+ 'umich.edu',
18
+ 'fastmail.com',
19
+ 'fastmail.fm',
20
+ 'one.com',
21
+ 'securemx.jp',
22
+
23
+ // Zone.eu specific
24
+ 'zone.eu',
25
+ 'teliaklm.ee'
13
26
  ]
14
27
  };
package/lib/tools.js CHANGED
@@ -317,7 +317,7 @@ const getPublicKey = async (type, name, minBitLength, resolver) => {
317
317
 
318
318
  let modulusLength = publicKeyObj.asymmetricKeyDetails.modulusLength;
319
319
 
320
- if (keyType === 'rsa' && modulusLength < 1024) {
320
+ if (keyType === 'rsa' && modulusLength < minBitLength) {
321
321
  let err = new Error('RSA key too short');
322
322
  err.code = 'ESHORTKEY';
323
323
  err.rr = rr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailauth",
3
- "version": "4.8.5",
3
+ "version": "4.8.6",
4
4
  "description": "Email authentication library for Node.js",
5
5
  "main": "lib/mailauth.js",
6
6
  "scripts": {
@@ -39,7 +39,7 @@
39
39
  "js-yaml": "4.1.0",
40
40
  "license-report": "6.7.2",
41
41
  "mbox-reader": "1.2.0",
42
- "mocha": "11.2.2",
42
+ "mocha": "11.5.0",
43
43
  "resedit": "^2.0.3"
44
44
  },
45
45
  "dependencies": {
@@ -51,7 +51,7 @@
51
51
  "nodemailer": "7.0.3",
52
52
  "punycode.js": "2.3.1",
53
53
  "tldts": "7.0.7",
54
- "undici": "7.9.0",
54
+ "undici": "7.10.0",
55
55
  "yargs": "17.7.2"
56
56
  },
57
57
  "engines": {