mailauth 4.8.6 → 4.9.0

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.9.0](https://github.com/postalsys/mailauth/compare/v4.8.6...v4.9.0) (2025-08-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * added `forwardemail.net` to ARC trusted list ([#86](https://github.com/postalsys/mailauth/issues/86)) ([8cb577b](https://github.com/postalsys/mailauth/commit/8cb577b5cceaf0a61f02744811ad2f9533550032))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * expose verifyASChain ([#89](https://github.com/postalsys/mailauth/issues/89)) ([cd11d85](https://github.com/postalsys/mailauth/commit/cd11d851f3c8cea125209676f3ba26676c700c5b))
14
+ * ZMS-246: add required policy headers in BIMI for Apple Mail ([#92](https://github.com/postalsys/mailauth/issues/92)) ([f6b3008](https://github.com/postalsys/mailauth/commit/f6b300837f9453877386ce3e76aff80fee01d913))
15
+
3
16
  ## [4.8.6](https://github.com/postalsys/mailauth/compare/v4.8.5...v4.8.6) (2025-05-26)
4
17
 
5
18
 
package/lib/arc/index.js CHANGED
@@ -532,4 +532,4 @@ const sealMessage = async (input, seal) => {
532
532
  return headers.length ? Buffer.from(headers.join('\r\n') + '\r\n') : Buffer.from('');
533
533
  };
534
534
 
535
- module.exports = { getARChain, arc, createSeal, sealMessage };
535
+ module.exports = { getARChain, verifyASChain, arc, createSeal, sealMessage };
@@ -22,6 +22,9 @@ module.exports = {
22
22
 
23
23
  // Zone.eu specific
24
24
  'zone.eu',
25
- 'teliaklm.ee'
25
+ 'teliaklm.ee',
26
+
27
+ // Forward Email
28
+ 'forwardemail.net'
26
29
  ]
27
30
  };
package/lib/bimi/index.js CHANGED
@@ -177,11 +177,14 @@ const lookup = async data => {
177
177
  response.status.result = 'pass';
178
178
 
179
179
  if (recordData?.parsed?.l?.value) {
180
- response.location = recordData?.parsed?.l?.value;
180
+ response.location = recordData.parsed.l.value;
181
181
  }
182
182
 
183
183
  if (recordData?.parsed?.a?.value) {
184
- response.authority = recordData?.parsed?.a?.value;
184
+ response.authority = recordData.parsed.a.value;
185
+
186
+ // Apple Mail requires additional policy header values in Authentication-Results header
187
+ response.status.policy = { authority: 'none', 'authority-uri': recordData.parsed.a.value }; // VMC has not been actually checked here yet, so authority is none
185
188
  }
186
189
 
187
190
  response.info = formatAuthHeaderRow('bimi', response.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailauth",
3
- "version": "4.8.6",
3
+ "version": "4.9.0",
4
4
  "description": "Email authentication library for Node.js",
5
5
  "main": "lib/mailauth.js",
6
6
  "scripts": {