Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Feb 14, 2024
1 parent 8471706 commit 9472456
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ body:
label: Version
description: What version of our software are you running?
options:
- v0.6.x
- v0.5.x
- v0.4.x
- v0.3.x or lower
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ body:
label: Is your feature request related to a problem?
description: Write a clear and concise description of what the problem is.
placeholder: Tell us what the problem is!
value: "I'm always frustrated when..."
value: "I'm having a problem with..."
- type: checkboxes
id: terms
attributes:
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).

## [0.6.0] - 2024-02-14

This version introduces breaking changes in the configuration file. Please read the [UPGRADING.md](UPGRADING.md) file for more information on how to upgrade from previous versions.

## Added
- Distributed and fault-tolerant SMTP message queues.
- Distributed rate-limiting and fail2ban.
- Expressions in configuration files.

### Changed

### Fixed
- Do not include `STATUS` in IMAP `NOOP` responses (#234).
- Allow multiple SMTP `HELO` commands.
- Redirect OAuth using a `301` instead of a `307` code.

## [0.5.3] - 2024-01-14

Please read the [UPGRADING.md](UPGRADING.md) file for more information on how to upgrade from previous versions.
Expand Down
8 changes: 8 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Upgrading from `v0.5.3` to `v0.6.0`
-----------------------------------

- In order to support [expressions](https://stalw.art/docs/configuration/expressions/overview), version `0.6.0` introduces multiple breaking changes in the SMTP server configuration file. It is recommended to download the new SMTP configuration files from the [repository](https://github.com/stalwartlabs/mail-server/tree/main/resources/config/smtp), make any necessary changes and replace the old files under `INSTALL_DIR/etc/smtp` with the new ones.
- Message queues are now distributed and stored in the backend specified by the `storage.data` and `storage.blob` settings. Make sure to flush your SMTP message queue before upgrading to `0.6.0` to avoid losing any outgoing messages pending delivery.
- Replace the binary with the new version.
- Restart the service.

Upgrading from `v0.5.2` to `v0.5.3`
-----------------------------------

Expand Down
2 changes: 2 additions & 0 deletions crates/smtp/src/core/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ pub const VARIABLES_MAP: &[(&str, u32)] = &[

pub const FUNCTIONS_MAP: &[(&str, u32, u32)] = &[
("is_local_domain", F_IS_LOCAL_DOMAIN, 2),
("is_local_address", F_IS_LOCAL_ADDRESS, 2),
("key_get", F_KEY_GET, 2),
("key_exists", F_KEY_EXISTS, 2),
("dns_query", F_DNS_QUERY, 2),
];

impl SMTP {
Expand Down
1 change: 0 additions & 1 deletion crates/smtp/src/reporting/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ impl SMTP {
#[cfg(not(feature = "test_mode"))]
{
use rand::Rng;
use std::time::Duration;

let delivery_time = rand::thread_rng().gen_range(0u64..10800u64);
for domain in &mut message.domains {
Expand Down
Binary file modified resources/config.zip
Binary file not shown.
4 changes: 0 additions & 4 deletions resources/config/smtp/queue.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# SMTP server queue configuration
#############################################

[queue]
path = "%{BASE_PATH}%/queue"
hash = 64

[queue.schedule]
retry = "[2m, 5m, 10m, 15m, 30m, 1h, 2h]"
notify = "[1d, 3d]"
Expand Down
2 changes: 0 additions & 2 deletions resources/config/smtp/report.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#############################################

[report]
path = "%{BASE_PATH}%/reports"
hash = 64
#submitter = "%{HOST}%"

[report.analysis]
Expand Down

0 comments on commit 9472456

Please sign in to comment.