haraka-plugin-karma 2.5.2 → 2.5.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 +7 -0
- package/README.md +7 -7
- package/index.js +14 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
4
4
|
|
|
5
5
|
### Unreleased
|
|
6
6
|
|
|
7
|
+
### [2.5.3] - 2026-11-21
|
|
8
|
+
|
|
9
|
+
- fix: skip AUTH lines the auth plugin handles (#75)
|
|
10
|
+
- fix: don't record AUTH credentials in results
|
|
11
|
+
- doc: fix links to other plugins and docs (#74)
|
|
12
|
+
|
|
7
13
|
### [2.5.2] - 2026-06-07
|
|
8
14
|
|
|
9
15
|
- fix: update redis hmSet -> hSet
|
|
@@ -201,3 +207,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
201
207
|
[2.5.0]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.5.0
|
|
202
208
|
[2.5.1]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.5.1
|
|
203
209
|
[2.5.2]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.5.2
|
|
210
|
+
[2.5.3]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.5.3
|
package/README.md
CHANGED
|
@@ -192,11 +192,11 @@ Expect to use karma _with_ content filters.
|
|
|
192
192
|
[cov-url]: https://codecov.io/github/haraka/haraka-plugin-karma
|
|
193
193
|
[qlty-img]: https://qlty.sh/gh/haraka/projects/haraka-plugin-karma/maintainability.svg
|
|
194
194
|
[qlty-url]: https://qlty.sh/gh/haraka/projects/haraka-plugin-karma
|
|
195
|
-
[p0f-url]: /
|
|
195
|
+
[p0f-url]: https://github.com/haraka/haraka-plugin-p0f
|
|
196
196
|
[geoip-url]: https://github.com/haraka/haraka-plugin-geoip
|
|
197
|
-
[dnsbl-url]: /
|
|
198
|
-
[fcrdns-url]:
|
|
199
|
-
[uribl-url]:
|
|
200
|
-
[sa-url]:
|
|
201
|
-
[snf-url]:
|
|
202
|
-
[results-url]:
|
|
197
|
+
[dnsbl-url]: https://github.com/haraka/haraka-plugin-dns-list
|
|
198
|
+
[fcrdns-url]: https://github.com/haraka/haraka-plugin-fcrdns
|
|
199
|
+
[uribl-url]: https://github.com/haraka/haraka-plugin-uribl
|
|
200
|
+
[sa-url]: https://github.com/haraka/haraka-plugin-spamassassin
|
|
201
|
+
[snf-url]: https://github.com/haraka/haraka-plugin-messagesniffer
|
|
202
|
+
[results-url]: https://haraka.github.io/core/Results/
|
package/index.js
CHANGED
|
@@ -578,14 +578,26 @@ exports.hook_reset_transaction = function (next, connection) {
|
|
|
578
578
|
exports.hook_unrecognized_command = function (next, connection, params) {
|
|
579
579
|
if (this.should_we_skip(connection)) return next()
|
|
580
580
|
|
|
581
|
+
const verb = params[0].toUpperCase()
|
|
582
|
+
|
|
581
583
|
// in case karma is in config/plugins before tls
|
|
582
|
-
if (
|
|
584
|
+
if (verb === 'STARTTLS') return next()
|
|
583
585
|
|
|
584
586
|
// in case karma is in config/plugins before AUTH plugin(s)
|
|
585
587
|
if (connection.notes.authenticating) return next()
|
|
586
588
|
|
|
589
|
+
let cmd = params
|
|
590
|
+
if (verb === 'AUTH') {
|
|
591
|
+
const method = params[1]?.split(/\s+/)[0] ?? ''
|
|
592
|
+
// auth_base sets notes.authenticating only after it accepts this first line
|
|
593
|
+
if (connection.notes.allowed_auth_methods?.includes(method.toUpperCase()))
|
|
594
|
+
return next()
|
|
595
|
+
// drop the initial response, it holds the credentials
|
|
596
|
+
cmd = [params[0], method]
|
|
597
|
+
}
|
|
598
|
+
|
|
587
599
|
connection.results.incr(this, { score: -1 })
|
|
588
|
-
connection.results.add(this, { fail: `cmd:(${
|
|
600
|
+
connection.results.add(this, { fail: `cmd:(${cmd})` })
|
|
589
601
|
|
|
590
602
|
return this.should_we_deny(next, connection, 'unrecognized_command')
|
|
591
603
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "haraka-plugin-karma",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "A heuristics scoring and reputation engine for SMTP connections",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"homepage": "https://github.com/haraka/haraka-plugin-karma#readme",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"haraka-constants": "^1.0.8",
|
|
40
|
-
"haraka-plugin-redis": "^2.1.
|
|
40
|
+
"haraka-plugin-redis": "^2.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@haraka/email-address": "^3.1.
|
|
44
|
-
"@haraka/eslint-config": "^3.0.
|
|
45
|
-
"haraka-test-fixtures": "^1.7.
|
|
43
|
+
"@haraka/email-address": "^3.1.7",
|
|
44
|
+
"@haraka/eslint-config": "^3.0.1",
|
|
45
|
+
"haraka-test-fixtures": "^1.7.2"
|
|
46
46
|
},
|
|
47
47
|
"prettier": {
|
|
48
48
|
"singleQuote": true,
|