@push.rocks/smartmta 9.5.0 → 9.6.1

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.
Files changed (44) hide show
  1. package/changelog.md +41 -0
  2. package/dist_rust/mailer-bin_linux_amd64 +0 -0
  3. package/dist_rust/mailer-bin_linux_amd64.tsrust-build.json +14 -0
  4. package/dist_rust/mailer-bin_linux_arm64 +0 -0
  5. package/dist_rust/mailer-bin_linux_arm64.tsrust-build.json +14 -0
  6. package/dist_ts/00_commitinfo_data.js +1 -1
  7. package/dist_ts/index.d.ts +1 -0
  8. package/dist_ts/index.js +2 -1
  9. package/dist_ts/mail/routing/classes.unified.email.server.d.ts +140 -4
  10. package/dist_ts/mail/routing/classes.unified.email.server.js +371 -97
  11. package/dist_ts/mail/routing/interfaces.d.ts +41 -0
  12. package/notices/aws-lc-sys-0.43.0-fiat-license.txt +22 -0
  13. package/notices/cargo-dependencies.html +4706 -0
  14. package/notices/compiler-builtins-license.txt +275 -0
  15. package/notices/crossbeam-channel-third-party.txt +593 -0
  16. package/notices/encoding-rs-copyright.txt +61 -0
  17. package/notices/glibc-copying-lesser.txt +502 -0
  18. package/notices/glibc-licenses.txt +412 -0
  19. package/notices/inventory.json +1226 -0
  20. package/notices/libgcc-gpl-3.0.txt +674 -0
  21. package/notices/libgcc-runtime-exception.txt +73 -0
  22. package/notices/mimalloc-license.txt +21 -0
  23. package/notices/moka-notice.txt +14 -0
  24. package/notices/ring-0.17.14-fiat-license.txt +15 -0
  25. package/notices/ring-0.17.14-license-boringssl.txt +272 -0
  26. package/notices/ring-0.17.14-license-other-bits.txt +13 -0
  27. package/notices/ring-0.17.14-license.txt +9 -0
  28. package/notices/ring-0.17.14-once-cell-license-apache.txt +201 -0
  29. package/notices/ring-0.17.14-once-cell-license-mit.txt +23 -0
  30. package/notices/rust-standard-library.html +8266 -0
  31. package/notices/rustversion-1.0.23-license-mit.txt +23 -0
  32. package/notices/source-attributions.txt +294 -0
  33. package/notices/wasm-bindgen-license-mit.txt +25 -0
  34. package/notices/zerocopy-derive-0.8.55-license-mit.txt +26 -0
  35. package/notices/zstd-license.txt +30 -0
  36. package/package.json +8 -6
  37. package/readme.md +70 -2
  38. package/third-party-notices.md +171 -0
  39. package/ts/00_commitinfo_data.ts +1 -1
  40. package/ts/index.ts +1 -0
  41. package/ts/mail/routing/classes.unified.email.server.ts +452 -108
  42. package/ts/mail/routing/interfaces.ts +43 -0
  43. package/readme.hints.md +0 -45
  44. package/readme.plan.md +0 -30
@@ -195,6 +195,47 @@ export interface ISmtpAuthAccount {
195
195
  /** Absent scope = unrestricted (backwards compatible). */
196
196
  scope?: ISmtpAuthAccountScope;
197
197
  }
198
+ /**
199
+ * Context handed to `hooks.onAuthenticate` for a PLAIN/LOGIN attempt whose
200
+ * username is not declared in `auth.accounts` or `auth.users`.
201
+ */
202
+ export interface ISmtpAuthenticateContext {
203
+ /** Username exactly as supplied by the client. */
204
+ username: string;
205
+ /** Password exactly as supplied by the client. */
206
+ password: string;
207
+ /** SMTP session the attempt belongs to. */
208
+ sessionId: string;
209
+ /** Remote peer address of the SMTP connection. */
210
+ remoteAddress: string;
211
+ /** Aborted when the hook exceeds `smtp.authenticationTimeoutMs`. */
212
+ abortSignal?: AbortSignal;
213
+ }
214
+ /**
215
+ * Result of an `hooks.onAuthenticate` credential verification.
216
+ */
217
+ export interface ISmtpAuthenticateDecision {
218
+ /** Whether the supplied credential is valid. */
219
+ accepted: boolean;
220
+ /**
221
+ * Reason for a rejection, recorded in the server log.
222
+ *
223
+ * It is deliberately NOT sent to the client: the SMTP listener answers every
224
+ * failed authentication with the same `535 5.7.8 Authentication credentials
225
+ * invalid`, so a caller cannot probe which usernames exist. Use this to make
226
+ * an operator's log say why a binding was refused.
227
+ */
228
+ message?: string;
229
+ /**
230
+ * Send-authorization scope for the resulting session, enforced identically
231
+ * to a configured account's scope for the lifetime of that session.
232
+ *
233
+ * Absent scope = unrestricted, matching `ISmtpAuthAccount.scope`. A hook
234
+ * that authenticates tenants MUST return a scope; without one the session
235
+ * may send as any sender to any recipient.
236
+ */
237
+ scope?: ISmtpAuthAccountScope;
238
+ }
198
239
  /**
199
240
  * Context for route evaluation
200
241
  */
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2020 the fiat-crypto authors (see
4
+ https://github.com/mit-plv/fiat-crypto/blob/master/AUTHORS).
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.