@push.rocks/smartmta 13.0.1 → 14.0.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.
Files changed (26) hide show
  1. package/changelog.md +37 -0
  2. package/dist_rust/mailer-bin_linux_amd64_musl +0 -0
  3. package/dist_rust/mailer-bin_linux_amd64_musl.third-party-notices.json +0 -51
  4. package/dist_rust/mailer-bin_linux_amd64_musl.third-party-notices.txt +1 -291
  5. package/dist_rust/mailer-bin_linux_amd64_musl.tsrust-build.json +5 -5
  6. package/dist_rust/mailer-bin_linux_arm64_musl +0 -0
  7. package/dist_rust/mailer-bin_linux_arm64_musl.third-party-notices.json +0 -51
  8. package/dist_rust/mailer-bin_linux_arm64_musl.third-party-notices.txt +1 -291
  9. package/dist_rust/mailer-bin_linux_arm64_musl.tsrust-build.json +5 -5
  10. package/dist_ts/00_commitinfo_data.js +1 -1
  11. package/dist_ts/mail/routing/classes.unified.email.server.d.ts +17 -14
  12. package/dist_ts/mail/routing/classes.unified.email.server.js +80 -71
  13. package/dist_ts/security/classes.rustsecuritybridge.d.ts +108 -1
  14. package/dist_ts/security/classes.rustsecuritybridge.js +187 -50
  15. package/native-notices/manifest.json +1 -64
  16. package/native-notices/readme.md +3 -3
  17. package/package.json +10 -11
  18. package/readme.md +22 -14
  19. package/ts/00_commitinfo_data.ts +1 -1
  20. package/ts/mail/routing/classes.unified.email.server.ts +82 -75
  21. package/ts/security/classes.rustsecuritybridge.ts +264 -49
  22. package/native-notices/crates/charset-0.1.5/copyright +0 -12
  23. package/native-notices/crates/charset-0.1.5/license-apache +0 -202
  24. package/native-notices/crates/charset-0.1.5/license-mit +0 -25
  25. package/native-notices/crates/mailparse-0.16.1/license +0 -13
  26. package/native-notices/crates/quoted_printable-0.5.2/license +0 -13
@@ -1,7 +1,7 @@
1
1
  Third-party notices
2
2
 
3
3
  The native executable this file accompanies was built by tsrust for linux_arm64_musl (aarch64-unknown-linux-musl),
4
- statically linked against musl. It contains code from the following 205
4
+ statically linked against musl. It contains code from the following 202
5
5
  third-party component(s): Rust crates (cargo:), C and C++ libraries that crates compile in
6
6
  (native:), the Rust standard library and its runtime (rust:) and the C runtime (runtime:).
7
7
  Each entry reproduces the license and notice files of the component, or the text the
@@ -3835,258 +3835,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
3835
3835
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
3836
3836
  DEALINGS IN THE SOFTWARE.
3837
3837
 
3838
- ================================================================================
3839
- cargo:charset@0.1.5
3840
- License: Apache-2.0 OR MIT
3841
-
3842
- --- copyright ---
3843
-
3844
- charset is copyright 2013-2016 Mozilla Foundation.
3845
-
3846
- Licensed under the Apache License, Version 2.0
3847
- <LICENSE-APACHE or
3848
- https://www.apache.org/licenses/LICENSE-2.0> or the MIT
3849
- license <LICENSE-MIT or https://opensource.org/licenses/MIT>,
3850
- at your option. All files in the project carrying such
3851
- notice may not be copied, modified, or distributed except
3852
- according to those terms.
3853
-
3854
- Test code within encoding_rs is dedicated to the Public Domain when so
3855
- designated (see the individual files for PD/CC0-dedicated sections).
3856
-
3857
- --- license-apache ---
3858
-
3859
-
3860
- Apache License
3861
- Version 2.0, January 2004
3862
- http://www.apache.org/licenses/
3863
-
3864
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
3865
-
3866
- 1. Definitions.
3867
-
3868
- "License" shall mean the terms and conditions for use, reproduction,
3869
- and distribution as defined by Sections 1 through 9 of this document.
3870
-
3871
- "Licensor" shall mean the copyright owner or entity authorized by
3872
- the copyright owner that is granting the License.
3873
-
3874
- "Legal Entity" shall mean the union of the acting entity and all
3875
- other entities that control, are controlled by, or are under common
3876
- control with that entity. For the purposes of this definition,
3877
- "control" means (i) the power, direct or indirect, to cause the
3878
- direction or management of such entity, whether by contract or
3879
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
3880
- outstanding shares, or (iii) beneficial ownership of such entity.
3881
-
3882
- "You" (or "Your") shall mean an individual or Legal Entity
3883
- exercising permissions granted by this License.
3884
-
3885
- "Source" form shall mean the preferred form for making modifications,
3886
- including but not limited to software source code, documentation
3887
- source, and configuration files.
3888
-
3889
- "Object" form shall mean any form resulting from mechanical
3890
- transformation or translation of a Source form, including but
3891
- not limited to compiled object code, generated documentation,
3892
- and conversions to other media types.
3893
-
3894
- "Work" shall mean the work of authorship, whether in Source or
3895
- Object form, made available under the License, as indicated by a
3896
- copyright notice that is included in or attached to the work
3897
- (an example is provided in the Appendix below).
3898
-
3899
- "Derivative Works" shall mean any work, whether in Source or Object
3900
- form, that is based on (or derived from) the Work and for which the
3901
- editorial revisions, annotations, elaborations, or other modifications
3902
- represent, as a whole, an original work of authorship. For the purposes
3903
- of this License, Derivative Works shall not include works that remain
3904
- separable from, or merely link (or bind by name) to the interfaces of,
3905
- the Work and Derivative Works thereof.
3906
-
3907
- "Contribution" shall mean any work of authorship, including
3908
- the original version of the Work and any modifications or additions
3909
- to that Work or Derivative Works thereof, that is intentionally
3910
- submitted to Licensor for inclusion in the Work by the copyright owner
3911
- or by an individual or Legal Entity authorized to submit on behalf of
3912
- the copyright owner. For the purposes of this definition, "submitted"
3913
- means any form of electronic, verbal, or written communication sent
3914
- to the Licensor or its representatives, including but not limited to
3915
- communication on electronic mailing lists, source code control systems,
3916
- and issue tracking systems that are managed by, or on behalf of, the
3917
- Licensor for the purpose of discussing and improving the Work, but
3918
- excluding communication that is conspicuously marked or otherwise
3919
- designated in writing by the copyright owner as "Not a Contribution."
3920
-
3921
- "Contributor" shall mean Licensor and any individual or Legal Entity
3922
- on behalf of whom a Contribution has been received by Licensor and
3923
- subsequently incorporated within the Work.
3924
-
3925
- 2. Grant of Copyright License. Subject to the terms and conditions of
3926
- this License, each Contributor hereby grants to You a perpetual,
3927
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3928
- copyright license to reproduce, prepare Derivative Works of,
3929
- publicly display, publicly perform, sublicense, and distribute the
3930
- Work and such Derivative Works in Source or Object form.
3931
-
3932
- 3. Grant of Patent License. Subject to the terms and conditions of
3933
- this License, each Contributor hereby grants to You a perpetual,
3934
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
3935
- (except as stated in this section) patent license to make, have made,
3936
- use, offer to sell, sell, import, and otherwise transfer the Work,
3937
- where such license applies only to those patent claims licensable
3938
- by such Contributor that are necessarily infringed by their
3939
- Contribution(s) alone or by combination of their Contribution(s)
3940
- with the Work to which such Contribution(s) was submitted. If You
3941
- institute patent litigation against any entity (including a
3942
- cross-claim or counterclaim in a lawsuit) alleging that the Work
3943
- or a Contribution incorporated within the Work constitutes direct
3944
- or contributory patent infringement, then any patent licenses
3945
- granted to You under this License for that Work shall terminate
3946
- as of the date such litigation is filed.
3947
-
3948
- 4. Redistribution. You may reproduce and distribute copies of the
3949
- Work or Derivative Works thereof in any medium, with or without
3950
- modifications, and in Source or Object form, provided that You
3951
- meet the following conditions:
3952
-
3953
- (a) You must give any other recipients of the Work or
3954
- Derivative Works a copy of this License; and
3955
-
3956
- (b) You must cause any modified files to carry prominent notices
3957
- stating that You changed the files; and
3958
-
3959
- (c) You must retain, in the Source form of any Derivative Works
3960
- that You distribute, all copyright, patent, trademark, and
3961
- attribution notices from the Source form of the Work,
3962
- excluding those notices that do not pertain to any part of
3963
- the Derivative Works; and
3964
-
3965
- (d) If the Work includes a "NOTICE" text file as part of its
3966
- distribution, then any Derivative Works that You distribute must
3967
- include a readable copy of the attribution notices contained
3968
- within such NOTICE file, excluding those notices that do not
3969
- pertain to any part of the Derivative Works, in at least one
3970
- of the following places: within a NOTICE text file distributed
3971
- as part of the Derivative Works; within the Source form or
3972
- documentation, if provided along with the Derivative Works; or,
3973
- within a display generated by the Derivative Works, if and
3974
- wherever such third-party notices normally appear. The contents
3975
- of the NOTICE file are for informational purposes only and
3976
- do not modify the License. You may add Your own attribution
3977
- notices within Derivative Works that You distribute, alongside
3978
- or as an addendum to the NOTICE text from the Work, provided
3979
- that such additional attribution notices cannot be construed
3980
- as modifying the License.
3981
-
3982
- You may add Your own copyright statement to Your modifications and
3983
- may provide additional or different license terms and conditions
3984
- for use, reproduction, or distribution of Your modifications, or
3985
- for any such Derivative Works as a whole, provided Your use,
3986
- reproduction, and distribution of the Work otherwise complies with
3987
- the conditions stated in this License.
3988
-
3989
- 5. Submission of Contributions. Unless You explicitly state otherwise,
3990
- any Contribution intentionally submitted for inclusion in the Work
3991
- by You to the Licensor shall be under the terms and conditions of
3992
- this License, without any additional terms or conditions.
3993
- Notwithstanding the above, nothing herein shall supersede or modify
3994
- the terms of any separate license agreement you may have executed
3995
- with Licensor regarding such Contributions.
3996
-
3997
- 6. Trademarks. This License does not grant permission to use the trade
3998
- names, trademarks, service marks, or product names of the Licensor,
3999
- except as required for reasonable and customary use in describing the
4000
- origin of the Work and reproducing the content of the NOTICE file.
4001
-
4002
- 7. Disclaimer of Warranty. Unless required by applicable law or
4003
- agreed to in writing, Licensor provides the Work (and each
4004
- Contributor provides its Contributions) on an "AS IS" BASIS,
4005
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
4006
- implied, including, without limitation, any warranties or conditions
4007
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
4008
- PARTICULAR PURPOSE. You are solely responsible for determining the
4009
- appropriateness of using or redistributing the Work and assume any
4010
- risks associated with Your exercise of permissions under this License.
4011
-
4012
- 8. Limitation of Liability. In no event and under no legal theory,
4013
- whether in tort (including negligence), contract, or otherwise,
4014
- unless required by applicable law (such as deliberate and grossly
4015
- negligent acts) or agreed to in writing, shall any Contributor be
4016
- liable to You for damages, including any direct, indirect, special,
4017
- incidental, or consequential damages of any character arising as a
4018
- result of this License or out of the use or inability to use the
4019
- Work (including but not limited to damages for loss of goodwill,
4020
- work stoppage, computer failure or malfunction, or any and all
4021
- other commercial damages or losses), even if such Contributor
4022
- has been advised of the possibility of such damages.
4023
-
4024
- 9. Accepting Warranty or Additional Liability. While redistributing
4025
- the Work or Derivative Works thereof, You may choose to offer,
4026
- and charge a fee for, acceptance of support, warranty, indemnity,
4027
- or other liability obligations and/or rights consistent with this
4028
- License. However, in accepting such obligations, You may act only
4029
- on Your own behalf and on Your sole responsibility, not on behalf
4030
- of any other Contributor, and only if You agree to indemnify,
4031
- defend, and hold each Contributor harmless for any liability
4032
- incurred by, or claims asserted against, such Contributor by reason
4033
- of your accepting any such warranty or additional liability.
4034
-
4035
- END OF TERMS AND CONDITIONS
4036
-
4037
- APPENDIX: How to apply the Apache License to your work.
4038
-
4039
- To apply the Apache License to your work, attach the following
4040
- boilerplate notice, with the fields enclosed by brackets "[]"
4041
- replaced with your own identifying information. (Don't include
4042
- the brackets!) The text should be enclosed in the appropriate
4043
- comment syntax for the file format. We also recommend that a
4044
- file or class name and description of purpose be included on the
4045
- same "printed page" as the copyright notice for easier
4046
- identification within third-party archives.
4047
-
4048
- Copyright [yyyy] [name of copyright owner]
4049
-
4050
- Licensed under the Apache License, Version 2.0 (the "License");
4051
- you may not use this file except in compliance with the License.
4052
- You may obtain a copy of the License at
4053
-
4054
- http://www.apache.org/licenses/LICENSE-2.0
4055
-
4056
- Unless required by applicable law or agreed to in writing, software
4057
- distributed under the License is distributed on an "AS IS" BASIS,
4058
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4059
- See the License for the specific language governing permissions and
4060
- limitations under the License.
4061
-
4062
- --- license-mit ---
4063
-
4064
- Copyright Mozilla Foundation
4065
-
4066
- Permission is hereby granted, free of charge, to any
4067
- person obtaining a copy of this software and associated
4068
- documentation files (the "Software"), to deal in the
4069
- Software without restriction, including without
4070
- limitation the rights to use, copy, modify, merge,
4071
- publish, distribute, sublicense, and/or sell copies of
4072
- the Software, and to permit persons to whom the Software
4073
- is furnished to do so, subject to the following
4074
- conditions:
4075
-
4076
- The above copyright notice and this permission notice
4077
- shall be included in all copies or substantial portions
4078
- of the Software.
4079
-
4080
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
4081
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
4082
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
4083
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
4084
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
4085
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
4086
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
4087
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
4088
- DEALINGS IN THE SOFTWARE.
4089
-
4090
3838
  ================================================================================
4091
3839
  cargo:cipher@0.4.4
4092
3840
  License: MIT OR Apache-2.0
@@ -19879,25 +19627,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
19879
19627
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19880
19628
  DEALINGS IN THE SOFTWARE.
19881
19629
 
19882
- ================================================================================
19883
- cargo:mailparse@0.16.1
19884
- License: 0BSD
19885
-
19886
- --- license ---
19887
-
19888
- Copyright (C) 2019 by Kartikaya Gupta
19889
-
19890
- Permission to use, copy, modify, and/or distribute this software for any
19891
- purpose with or without fee is hereby granted.
19892
-
19893
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
19894
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19895
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19896
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19897
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19898
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19899
- PERFORMANCE OF THIS SOFTWARE.
19900
-
19901
19630
  ================================================================================
19902
19631
  cargo:memchr@2.7.6
19903
19632
  License: Unlicense OR MIT
@@ -24229,25 +23958,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24229
23958
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24230
23959
  DEALINGS IN THE SOFTWARE.
24231
23960
 
24232
- ================================================================================
24233
- cargo:quoted_printable@0.5.2
24234
- License: 0BSD
24235
-
24236
- --- license ---
24237
-
24238
- Copyright (C) 2019 by Kartikaya Gupta
24239
-
24240
- Permission to use, copy, modify, and/or distribute this software for any
24241
- purpose with or without fee is hereby granted.
24242
-
24243
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24244
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24245
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
24246
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24247
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24248
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24249
- PERFORMANCE OF THIS SOFTWARE.
24250
-
24251
23961
  ================================================================================
24252
23962
  cargo:rand@0.9.5
24253
23963
  License: MIT OR Apache-2.0
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "0c3a0c4ad7a774b1797521e287aad257f2bf10a65bd8d2b7cdc35917a8692113",
3
+ "binarySha256": "aa892288957fc2ee81c78bfa96f1c0ba4e2bfc949c1eec4e165df4255287f7b8",
4
4
  "buildInfo": {
5
5
  "projectName": "@push.rocks/smartmta",
6
- "projectVersion": "13.0.1",
7
- "gitCommit": "e7bc2248fd9d2e90a3299bd05bfdabefa193f008",
6
+ "projectVersion": "14.0.0",
7
+ "gitCommit": "1ea58f5962b8944d41c60bff6496152377a229d2",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-15T11:25:18.459Z",
10
- "tsrustVersion": "4.6.0",
9
+ "builtAt": "2026-10-20T19:07:25.006Z",
10
+ "tsrustVersion": "1.1.1",
11
11
  "binary": "mailer-bin",
12
12
  "target": "linux_arm64_musl"
13
13
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartmta',
6
- version: '13.0.1',
6
+ version: '14.0.0',
7
7
  description: 'A high-performance, enterprise-grade Mail Transfer Agent (MTA) built from scratch in TypeScript with Rust acceleration.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHlIQUF5SDtDQUN2SSxDQUFBIn0=
@@ -508,6 +508,8 @@ export declare class UnifiedEmailServer extends EventEmitter {
508
508
  start(): Promise<void>;
509
509
  private startDeliveryPipeline;
510
510
  private startDeliveryProcessing;
511
+ /** The SMTP size limit, which the bridge's IPC line cap derives from. */
512
+ private getMaxMessageSize;
511
513
  private startRustBridge;
512
514
  private initializeDkimAndDns;
513
515
  private startDnsValidation;
@@ -664,21 +666,14 @@ export declare class UnifiedEmailServer extends EventEmitter {
664
666
  private resolveSessionSenderScope;
665
667
  /**
666
668
  * The mailbox addresses of every From header field, one list per field in
667
- * message order. Groups are flattened into their member mailboxes, and a
668
- * repeated From field is kept rather than collapsed to one occurrence,
669
- * because scope enforcement and Email.from must see every mailbox a
670
- * recipient's client might display. A field that yields no mailbox, such
671
- * as an empty group or an encoded word in place of an address, gives an
672
- * empty list.
669
+ * message order, as the Rust parser read them (`parsed.fromFields`). Groups
670
+ * are flattened into their member mailboxes, and a repeated From field is
671
+ * kept rather than collapsed to one occurrence, because scope enforcement and
672
+ * Email.from must see every mailbox a recipient's client might display. A
673
+ * field that yields no mailbox, such as an empty group or an encoded word in
674
+ * place of an address, gives an empty list.
673
675
  */
674
- private parseFromHeaderFields;
675
- /**
676
- * The From header fields of the header section of a raw message, see
677
- * parseFromHeaderFields. Parsing stops at the first CRLFCRLF header
678
- * boundary when present (the Rust receiver normalizes line endings to
679
- * CRLF); a bodyless message without one is parsed whole.
680
- */
681
- private parseHeaderFromFields;
676
+ private fromFieldAddresses;
682
677
  /**
683
678
  * Header-From alignment for scoped authenticated accounts at DATA. The
684
679
  * envelope MAIL FROM is enforced per recipient via resolveRecipientPolicy
@@ -721,7 +716,15 @@ export declare class UnifiedEmailServer extends EventEmitter {
721
716
  * Handle an emailReceived event from the Rust SMTP server.
722
717
  */
723
718
  private handleRustEmailReceived;
719
+ /**
720
+ * Builds the Email of stored message bytes (the replay paths
721
+ * dispatchAcceptedEnvelope and processEmailByMode(Buffer)) with the parser
722
+ * and setting of the DATA path, through mailer-bin's parseMessage, so a
723
+ * replay rebuilds the Email the live path built for the same bytes.
724
+ */
724
725
  private createEmailFromBuffer;
726
+ /** The Email of a message the Rust parser read (docs/cleanroom/mailer-mime.md section 2.2). */
727
+ private createEmailFromParsed;
725
728
  private isStandardParsedHeader;
726
729
  /**
727
730
  * Compute SCRAM-SHA-256 credential fields from a plaintext password with a