Commit graph

1039 commits

Author SHA1 Message Date
Andris Reinman
5af8f24ddb
Merge branch 'master' of github.com:nodemailer/wildduck 2024-04-29 13:18:05 +03:00
Andris Reinman
ecbdc9be5f
fix(SNI): disable SNI certificate autogeneration by default 2024-04-29 13:18:00 +03:00
NickOvt
82133df0c9
fix(api-submit): Added submission api endpoint to api docs generation (#676) 2024-04-29 13:11:27 +03:00
Andris Reinman
61c03e1725
fix(SNI): delete expired autogenerated SNI certificate 2024-04-29 10:38:35 +03:00
Andris Reinman
40db519d9c
feat(SNI): Autogenerate TLS certificates for SNI 2024-04-29 09:57:37 +03:00
Andris Reinman
cd8596a84d
feat(autoacme): Allow setting up automatic ACME certificate generation 2024-04-25 15:18:51 +03:00
NickOvt
16c6fb8b7c
fix(api-messages): messages fix response types (#673) 2024-04-22 09:31:40 +03:00
NickOvt
9d9fbd25c4
fix(api-messages-intro): Take intro from HTML if possible ZMS-112 (#672)
* if message has html part, use intro from it

* move intro creration into a separate function
2024-04-15 10:58:45 +03:00
NickOvt
02a43c6330
fix(api-settings): Added all Settings API endpoints to API docs generation ZMS-145 (#671)
* added list registered settings api endpoint to api docs generation

* Added Create or Update Setting api endpoint to api docs generation

* added get setting value api endpoint to api docs generation
2024-04-15 10:00:04 +03:00
NickOvt
c846b66e17
fix(api-domainaccess): Added all DomainAccess endpoints to api docs generation ZMS-144 (#670)
* added add domain to whitelist/blocklist api endpoints to api docs generation

* added all get and del domainaccess endpoints to api docs generation
2024-04-11 11:51:06 +03:00
NickOvt
6e251c5bae
fix(api-messages): Added all messages endpoints to api docs generation ZMS-140 (#666)
* added Update Message information api endpoint to api docs generation

* fix response types

* Added delete a message api endpoint to api docs generation

* Added Delete all messages from a Mailbox api endpoint to api docs generation

* fix some response types. Added delete an outbound message api endpoint to api docs generation
2024-04-11 11:50:02 +03:00
NickOvt
d9834776f3
fix(api-dkim): Fix empty p value in dnsText.value if no private key initially given ZMS-142 (#664)
* fix dkim issue

* make better test
2024-04-11 11:47:03 +03:00
NickOvt
1f27778ae8
fix(api-messages-attachment-download): is sendAsString param is set, and is set to true then decode the original file and send back as UTF-8 ZMS-134 (#655)
* add attachment charset in the indexer

* test adding a field

* test another way

* walk through mimetree to find the attachment charset and decode the message using this charset. Decoding is piped to the output stream

* test

* revert last change

* use regex for check, fix piping

* fixes
2024-04-08 09:47:27 +03:00
NickOvt
f55ddea06d
fix(api-certs): Certs API endpoints added to API docs generation ZMS-141 (#663)
* Added list registered TLS certificates api endpoint to api docs generation. Add examples to res types

* fix last commit's typo

* Resolve ID for a server name api endpoint added to api docs generation. Add examples to res types

* added create or update TLS sertificate for server name api endpoint to api docs generation

* add acme to response of last commit's changes

* added Delete a TLS certificate api endpoint to api docs generation

* delete cert api endpoint change certs -> cert path param

* fix cert-handler typo and bug. Added Request TLS certificate information api endpoint to api docs generation

* last commit add certs.js
2024-04-03 11:45:44 +03:00
NickOvt
9f9c55a886
fix(api-ApplicationPassword): Added all ApplicationPasswords API endpoints to API docs generation ZMS-136 (#645)
* List Application Passwords and Request ASP information endpoints added to API docs generation

* fixes. Added Create new Application Password endpoint to API docs generation

* Added Delete an Application Password api endpoint to API docs generation
2024-03-18 10:37:16 +02:00
NickOvt
b9e3f94c6f
fix(api-audit): Added all Audit API endpoints to API docs generation ZMS-135 (#642)
* Added Create new audit api endpoint to API docs generation

* Request Audit info API endpoint added to API docs generation

* added Export Audited Emails API endpoint to API docs generation
2024-03-18 10:28:56 +02:00
Andris Reinman
b1ba513a55
fix(move): Extend move operaiton lock automatically 2024-03-14 11:38:03 +02:00
Andris Reinman
b7f0aa6a22
fix(move): Increase lock time for moving messages 2024-03-14 10:59:02 +02:00
Andris Reinman
1931d22993
Merge branch 'master' of github.com:nodemailer/wildduck 2024-03-12 14:54:26 +02:00
Andris Reinman
3b7f28c128
fix(password-hash): Rehash pbkdf2 if required iterations count increases 2024-03-12 14:54:22 +02:00
Taavi Eomäe
46654da594
fix(password-hash): Update PBKDF2 iteration count to more closely align with OWASP recommendations (#648) 2024-03-12 14:53:52 +02:00
NickOvt
5af8126e54
fix(api-domainaliases): Added DomainAliases API endpoints to API docs generation ZMS-132 (#641)
* added List registered Domain Aliases endpoint to API docs generation

* added Create new Domain Alias API endpoint to API docs generation

* added Resolve ID for a domain alias API endpoint to API docs generation

* added Delete an Alias API endpoint to API docs generation

* Added Request Alias information API endpoint to API docs generation
2024-03-07 10:25:14 +02:00
NickOvt
64c6b5e63c
fix(api-quota): Quota reset now also logs storage diff. Log now includes zero valued fields ZMS-128 (#640)
* Log storage diff for quota usage recalculation API endpoint. Also logs 0

* include _set as required key as well
2024-02-29 10:32:40 +02:00
NickOvt
f6f5f5eb65
fix(api-autoreplies): Added logging to graylog. Autoreply docs have a created field now ZMS-127 (#633)
* Update Autoreply information api endpoint added to api docs generation

* Delete Autoreply information api endpoint added to api docs generation

* Request Autoreply information api endpoint added to api docs generation

* autoreply now contains the created field to check when it was created. Added logging to graylog

* make created timestamp second precision. Fix tests

* autoreply.js add optional chaining
2024-02-26 11:08:25 +02:00
NickOvt
0efae19f9e
fix(api-2fa): Added 2FA API endpoints to API docs generation ZMS-124 (#626)
* added Generate TOTP seed api endpoint to API generation

* added Enable TOTP api endpoint to API docs generation

* added Disable TOTP auth api endpoint to API docs generation

* added Validate TOTP token api endpoint to API docs generation

* added Disable 2FA api endpoint to API docs generation

* Added Enable custom 2FA for a user api endpoint for API docs generation

* Disable custom 2FA for a user endpoint added to API docs generation. Fix imports

* added Get WebAuthN credentials for a user api endpoint to api docs generation

* WebAuthN del and registration endpoints added to API docs generation

* webAuthN authentication challenge and attestation endpoints added to API docs generation

* fix rpId descriptions

* add response objects to endpoints
2024-02-26 09:57:39 +02:00
NickOvt
78a9e1b2a8
fix(api-dkim): Add all DKIM API endpoints to API docs generation ZMS-129 (#630)
* added List registered DKIM keys to API docs generation

* Added Resolve ID for a DKIM domain api endpoint to API docs generation

* Added Delete a DKIM key api endpoint to API docs generation

* Added Request DKIM information api endpoint to api docs generation. Fix typo

* added create or update dkim key for domain api endpoint to api docs generation
2024-02-26 09:34:36 +02:00
Andris Reinman
f61111e3cc
fix(pop3-starttls): ensure default SNICallback option 2024-02-26 09:16:46 +02:00
NickOvt
aa60ef93fe
fix(api-autoreply): Autoreply API endpoints added to API docs generation ZMS-130 (#632)
* Update Autoreply information api endpoint added to api docs generation

* Delete Autoreply information api endpoint added to api docs generation

* Request Autoreply information api endpoint added to api docs generation
2024-02-23 13:31:08 +02:00
NickOvt
7e9e62ea7a
fix(api-addresses): Fix tags typo in addresses.js (#627) 2024-02-23 13:28:39 +02:00
NickOvt
3d7d0a6d6a
fix(api-dkim): DKIM now supports ED25519 keys, both in PEM and raw format as input ZMS-125 (#617)
* dkim, add support for ed25519

* add support for raw ED25519 private key

* magic value make variable. Remove unnecessary variables. Refactor

* add new tests for ED25519
2024-02-19 09:46:46 +02:00
NickOvt
6f0e4b54be
fix(api-filters): Filter creation is now logged to graylog and authlog ZMS-34 (#616)
* log filter creation to logs

* api.js, filterroutes, remove unnecessary loggelf param

* instead of dumping all filter data, create a human readable description of it using getFilterStrings

* separate getFilterStrings data into _filter_query and _filter_action fields, make them human-readable by joining
2024-02-19 09:45:46 +02:00
NickOvt
95f829d16a
fix(api-filters): Add Filters API endpoints to API docs generation ZMS-121 (#611)
* added List all FIltes endpoint to api docs generation

* List Filters for a User endpoint added to API docs generation

* Request Filter information endpoint added to API docs generation. Add schemas

* fix description

* added Delete a Filter api endpoint to API docs generation

* New schemas for filter api endpoints. Added Create a mew Filter api endpoint to API docs generation

* fix schemas. Added Update Filter information endpoint to api docs generation
2024-02-05 10:30:02 +02:00
NickOvt
c7a1ab4987
fix(api-generate): Move API generation code into separate package and use it ZMS-119 (#613)
* test initial design of API generation as a restify plugin. next extract it into separate npm package and add more checks/logs etc.

* remove API docs generation from the WILDDUCK specific tools.js file into a separate file. Do appropriate changes

* move api generation into separate npm package, currently local

* add restifyapigenerate package and use it, fix path

* separate API docs generation config into a separate file. Fix API docs generation package version
2024-02-05 10:29:24 +02:00
NickOvt
84ab0c09dc
feat(api-health): Added /health endpoint to check Wildduck API health during runtime ZMS-120 (#607)
* add health api endpoint to check health of API

* fixes and add graylog logging

* round timestamp, cast to string. Use mongodb ping instead of topology.isConnected check

* add timeout to redis commands so that the health api endpoint will return a value
2024-01-26 10:23:01 +02:00
Louis Laureys
816114f655
fix(message-threading): Take non-standard but conventional subject prefixes into account (#605) 2024-01-25 09:02:55 +02:00
NickOvt
85e09ecc77
feat(api-addresses): ZMS-115 (#608)
* List registered Addresses API endpoint added to API docs generation

* Create new Address API endpoint to API generation

* Create new Address API endpoint to API generation. List registered Addresses for a User api endpoint added to api generation

* Request Addresses information api endpoint added to api generation

* Update Address information api endpoint added to api endpoint generation

* Delete an Address endpoint added to api generation

* List addresses from communication register endpoint added to api docs generation. Add example to userId

* Create new forwarded Address api endpoint added to api docs generation

* Update forwarded Address information API endpoint added to API docs generation

* Delete a forwarded Address endpoint added to API docs generation

* Request forwarded Addresses information endpoint added to API docs generation

* Get Address info endpoint added to API docs generation

* Rename domain in addresses endpoint added to API docs generation
2024-01-24 10:07:30 +02:00
NickOvt
76d0e8f9e2
feat(api-mailboxes): Mailboxes API endpoints added to automatic API docs generation ZMS-114 (#602)
* added List Mailboxes for a User endpoint to API generation

* Request Mailbox information endpoint added to API generation

* Update Mailbox information endpoint added to API generation

* added Delete a Mailbox endpoint to API generation. Add example to Request Mailbox information API endpoint

* fix mailbox path param in Request Mailbox information

* GetMailboxesResult retention should be not required, fix accidental typo
2024-01-12 12:54:56 +02:00
NickOvt
5721047bc1
fix(journal-parse): Improve idle CPU performance ZMS-109 (#597)
* optimize CPU performance, reduce amount of calls to JSON.parse

* default to needFullParse, otherwise do not do full parse
2024-01-05 10:31:07 +02:00
NickOvt
8b7f6c923e
feat(api-upload): Allow to upload a draft message with incorrect (non-emal) to addresses ZMS-117 (#595)
* strip to adresses that are incorrect but still save the message

* toObj.to fix to toObj.address as per the model
2024-01-04 13:30:27 +02:00
NickOvt
6bdeeaa164
feat(upload): ZMS-111 (#584) 2024-01-04 13:22:04 +02:00
Andris Reinman
eecb31ac9a
fix(pop3): if connection is closed during authentication, then do not process the response. Fixes #596 2024-01-04 10:38:33 +02:00
Louis Laureys
a4ae3d7113
feat(api-search): Allow searching for messages by uid (#587) 2024-01-02 13:23:43 +02:00
NickOvt
5165f3e172
Merge branch 'master' into ZMS-118 2024-01-02 13:16:32 +02:00
Nikolai Ovtsinnikov
b0d0e7b955
fix securitySchemes 2024-01-02 13:10:04 +02:00
NickOvt
fae91d1484
fix(api-docs): Fixed requestBody in API docs ZMS-118 (#593)
* optimize CPU usage

* fix requestBody issues in API docs generation

* fix requestBody issues for API generation

* Revert "optimize CPU usage"

This reverts commit b4fde61884.
2024-01-02 12:50:06 +02:00
Nikolai Ovtsinnikov
3b6ba9ae03
Revert "optimize CPU usage"
This reverts commit b4fde61884.
2024-01-02 12:34:20 +02:00
Nikolai Ovtsinnikov
17232dd5e0
fix requestBody issues for API generation 2024-01-02 12:33:05 +02:00
Nikolai Ovtsinnikov
713a06c216
fix requestBody issues in API docs generation 2024-01-02 12:28:13 +02:00
Andris Reinman
c886383d26
Merge branch 'master' of github.com:nodemailer/wildduck 2024-01-02 11:24:35 +02:00
Andris Reinman
43365542a3
fix(api-search): Fixed or query. Fixes #592 2024-01-02 11:24:28 +02:00