Patrick Pohl
application design custom solutions system architecture

Technical description

Centrix Email Gateway 1.0 – an overview of architecture, requirements, providers and operation.

Back to the product page

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 systemWindows x64 (Windows Server or Windows 10/11)
Runtimeno installation required – self-contained EXE with built-in .NET 10
PermissionsAdministrator for installation
Inbound (internal)Web frontend TCP 8025 (configurable), SMTP port per account, e.g. 2525
OutboundHTTPS 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

ProviderMethodAuthenticationMax. size
Microsoft 365Microsoft Graph APIOAuth 2.0, app registration with Mail.Send3 MB
Google WorkspaceGmail APIService account with domain-wide delegation (gmail.send)25 MB
GmailSMTP smtp.gmail.com:587, STARTTLSApp password25 MB
SMTP serverany server, TLS/STARTTLSnone, password or OAuth2 (XOAUTH2)50 MB
Test mailboxstored 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.Send or gmail.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

ProductCentrix Email Gateway 1.0
PlatformWindows x64, Windows service
DatabaseSQLite, embedded locally
InboundSMTP, one listener per port
OutboundMicrosoft Graph, Gmail API, SMTP
AuthenticationOAuth 2.0, XOAUTH2, app password, SMTP AUTH
ManagementWeb frontend, default port 8025
Licenceone-time per installation: 1 account €149, up to 5 accounts €249, unlimited on request (net)
Trial version14 days free of charge

Download trial version Ask a technical question