Repository navigation
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
- .NET 10 runtime: Binary releases now require .NET 10.
- Listen address:
Smtp:Hostnow explicitly defines the bind address (previous versions bound to all interfaces regardless of setting). Set to0.0.0.0and configureRELAYWAY_ALLOWED_NETWORKSto accept LAN traffic. - Docker (#1): The default image setting is now
RELAYWAY_SMTP_HOST=0.0.0.0. Containers usingSmtp__Host=localhostwill halt on boot with log output detailing the solution. - Recipients: Delivery is strictly governed by the envelope (
RCPT TO). Bcc recipients will receive emails, but addresses listed solely in theToheader will be skipped. - SMTP replies: Errors now map specifically to
451for Graph throttling, service outages, and token failures, or554for Graph delivery rejections (replacing the generic501status 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_NETWORKSto accept comma-separated IP addresses or CIDR blocks; unauthorized clients receive a550rejection. - 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 theMail.ReadWritepermission. - National clouds: Added
RELAYWAY_CLOUDsupport forGlobal(includes EU tenants/EU Data Boundary),USGovernment(GCC High),USGovernmentDoD, andChina. - Environment aliases: Introduced
RELAYWAY_*variable aliases for all settings, including_FILEsuffixes for loading Docker and Kubernetes secrets. -
.envsupport: Reads.envfiles located next to the binary or specified viaRELAYWAY_ENV_FILE. Malformed entries, duplicates, and unrecognized keys are safely logged without exposing values. - Attachments: Expanded attachment support to handle inline
cid:images, attached.emlfiles, and unnamed payloads.
Fixes
- Fix: Improved parsing and header support for
CC,BCC, andReply-To. - Fix: Prevented client secrets from appearing in startup logs.
- Fix: Resolved issue where
Smtp:Host=localhostunintendedly 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 foundstartup warning (#1). - Fix: Enforced payload limits to prevent unbounded message sizes.
- Fix: Guaranteed a
554error 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 legacySection__Keydeclarations take priority overRELAYWAY_*aliases and will trigger a diagnostic warning. - The
MailboxSettings.Readscope is no longer required. Messages exceeding 4 MB requireMail.ReadWrite; restrict this scope to the designatedSendFromaccount using RBAC for Applications. - For Docker and LAN deployments: expose port
2525:2525and defineRELAYWAY_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