Skip to content

2026.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Sep 11:07
· 1 commit to main since this release

Warning

Breaking changes. Requires upgrading to .NET 10 (LTS). Note that Docker containers configured with Smtp__Host=localhost will fail to launch. Remove this environment variable prior to upgrading.


Changes

Upgraded to .NET 10 LTS and Microsoft Graph SDK v6. Recipient handling now aligns with the SMTP envelope, Graph rate limits trigger retryable 451 errors, and emails up to 150 MB are handled via Graph upload sessions. Configuration now supports RELAYWAY_* environment variables, .env files, and secret files.

Breaking changes

  1. .NET 10 runtime: Binary releases now require .NET 10.
  2. Listen address: Smtp:Host now explicitly defines the bind address (previous versions bound to all interfaces regardless of setting). Set to 0.0.0.0 and configure RELAYWAY_ALLOWED_NETWORKS to accept LAN traffic.
  3. Docker (#1): The default image setting is now RELAYWAY_SMTP_HOST=0.0.0.0. Containers using Smtp__Host=localhost will halt on boot with log output detailing the solution.
  4. Recipients: Delivery is strictly governed by the envelope (RCPT TO). Bcc recipients will receive emails, but addresses listed solely in the To header will be skipped.
  5. SMTP replies: Errors now map specifically to 451 for Graph throttling, service outages, and token failures, or 554 for Graph delivery rejections (replacing the generic 501 status used previously).

New in 2026.9.0

  • .NET 10 LTS: Updated base dependencies to net10.0, Microsoft Graph SDK 6.7, Azure.Identity 1.21, and MimeKit 4.18.
  • Allowed networks: Added RELAYWAY_ALLOWED_NETWORKS to accept comma-separated IP addresses or CIDR blocks; unauthorized clients receive a 550 rejection.
  • Large messages: Emails 4 MB or larger now stream via draft upload sessions. Configurable via RELAYWAY_MAX_MESSAGE_SIZE_MB (default 35 MB, max 150 MB); requires the Mail.ReadWrite permission.
  • National clouds: Added RELAYWAY_CLOUD support for Global (includes EU tenants/EU Data Boundary), USGovernment (GCC High), USGovernmentDoD, and China.
  • Environment aliases: Introduced RELAYWAY_* variable aliases for all settings, including _FILE suffixes for loading Docker and Kubernetes secrets.
  • .env support: Reads .env files located next to the binary or specified via RELAYWAY_ENV_FILE. Malformed entries, duplicates, and unrecognized keys are safely logged without exposing values.
  • Attachments: Expanded attachment support to handle inline cid: images, attached .eml files, and unnamed payloads.

Fixes

  • Fix: Improved parsing and header support for CC, BCC, and Reply-To.
  • Fix: Prevented client secrets from appearing in startup logs.
  • Fix: Resolved issue where Smtp:Host=localhost unintendedly bound to all network interfaces.
  • Fix: Corrected behavior where throttled Graph requests were permanently dropped instead of retried.
  • Fix: Fixed inline images being stripped from HTML message bodies.
  • Fix: Prevented Graph API from rejecting attachments missing a filename.
  • Fix: Eliminated the persistent Mailbox settings not found startup warning (#1).
  • Fix: Enforced payload limits to prevent unbounded message sizes.
  • Fix: Guaranteed a 554 error status is returned when encountering unparseable messages.
  • Fix: Corrected Docker automated builds to publish from release tags instead of main.
  • Fix: Startup now halts cleanly with a specific log error when configuration keys are missing or invalid.
  • Fix: Included SHA-256 checksums alongside release archives.

Upgrade notes

  • Existing environment settings (Graph__TenantId, SendFrom) remain fully functional. Note that legacy Section__Key declarations take priority over RELAYWAY_* aliases and will trigger a diagnostic warning.
  • The MailboxSettings.Read scope is no longer required. Messages exceeding 4 MB require Mail.ReadWrite; restrict this scope to the designated SendFrom account using RBAC for Applications.
  • For Docker and LAN deployments: expose port 2525:2525 and define RELAYWAY_ALLOWED_NETWORKS.
  • Windows deployments: ensure the .NET 10 Runtime is installed before overwriting files in C:\Relayway.

We recommend pinning your container deployment to ghcr.io/melosso/relayway:2026.9.0 to guard against unexpected breaking changes in future updates.

Full Changelog: 2025.12.0...2026.9.0