Technical description
Centrix Email Gateway 1.0 – an overview of architecture, requirements, providers and operation.
Overview
The gateway is an SMTP relay for Windows. It accepts mail from applications and devices on the internal network via SMTP, stores it in a local SQLite queue and delivers it through a configured account at the provider. It runs as a Windows service and is managed through a built-in web frontend.
How the communication works
Each account has its own SMTP listener. The local port determines the account used for sending. If several accounts share a port, the sender address decides.
System requirements
| Operating system | Windows x64 (Windows Server or Windows 10/11) |
|---|---|
| Runtime | no installation required – self-contained EXE with built-in .NET 10 |
| Permissions | Administrator for installation |
| Inbound (internal) | Web frontend TCP 8025 (configurable), SMTP port per account, e.g. 2525 |
| Outbound | HTTPS 443 to Microsoft or Google; for SMTP accounts the respective port (e.g. 587 or 465) |
Installation & setup
During installation, the application registers itself as a Windows service – with automatic start, restart on failure and a matching firewall rule. Everything else is done conveniently in the web frontend: a wizard guides you step by step through connecting to your mail provider and finally generates the instructions for your application.
Supported providers
| Provider | Method | Authentication | Max. size |
|---|---|---|---|
| Microsoft 365 | Microsoft Graph API | OAuth 2.0, app registration with Mail.Send | 3 MB |
| Google Workspace | Gmail API | Service account with domain-wide delegation (gmail.send) | 25 MB |
| Gmail | SMTP smtp.gmail.com:587, STARTTLS | App password | 25 MB |
| SMTP server | any server, TLS/STARTTLS | none, password or OAuth2 (XOAUTH2) | 50 MB |
| Test mailbox | stored locally as .eml | – | 50 MB |
Microsoft 365
Mail is sent via the Microsoft Graph API, not via SMTP – so the deprecation of SMTP AUTH does not affect the gateway. With automatic setup, an administrator signs in using a device code. The gateway then creates the app registration in the tenant, a client secret (valid for 24 months) and the permissions Mail.Send and User.Read.All including admin consent. Alternatively, an existing app registration can be entered manually.
Senders configured as “Allowed senders” are sent through their own mailbox. All others go through the default mailbox, and the original sender is set as the reply-to address.
SMTP intake
- SMTP port and network adapter per account
- Allowed networks or IP addresses, e.g.
192.168.10.0/24 - optional SMTP authentication with username and password
- maximum message size per account
Intake is unencrypted and intended for the internal network.
Queue & retry
The application receives the confirmation as soon as the mail has been stored. On temporary errors (throttling, server errors, network problems, expired credentials), delivery is retried after 1, 2, 5, 10, 15 and 30 minutes and hourly thereafter, by default for up to 48 hours. Permanent errors such as missing permissions are shown immediately; the mail can be resent once the issue has been fixed.
Security
- Passwords, secrets and keys are stored encrypted with Windows DPAPI
- minimal permissions at the provider (
Mail.Sendorgmail.send) - password-protected web frontend, initial setup only directly on the server
- Mails and credentials go only to your own mail provider, not to centrix
The web frontend should only be reachable from the internal network.
Technical specifications
| Product | Centrix Email Gateway 1.0 |
|---|---|
| Platform | Windows x64, Windows service |
| Database | SQLite, embedded locally |
| Inbound | SMTP, one listener per port |
| Outbound | Microsoft Graph, Gmail API, SMTP |
| Authentication | OAuth 2.0, XOAUTH2, app password, SMTP AUTH |
| Management | Web frontend, default port 8025 |
| Licence | one-time per installation: 1 account €149, up to 5 accounts €249, unlimited on request (net) |
| Trial version | 14 days free of charge |