Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› SMTP Relay Restrictions
Architecture & Implementation

SMTP Relay Restrictions

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: Architecture & Implementation

SMTP relay restrictions are the rules a mail server uses to decide who may send mail through it to other domains. They usually check client IP address, authentication state, sender domain, or envelope recipient, and they prevent an open relay that could be abused for spam or unauthorised mail routing.

How SMTP relay restrictions work

SMTP relay restrictions are enforcement rules on a mail transfer agent that decide whether a client may hand off mail for delivery to an external domain. In practice, the server evaluates signals such as source IP, SMTP AUTH state, sender identity, and recipient domain before it permits relaying, which is what stops the server from becoming an open relay.

These checks matter because relay is not the same as local message submission. A server can accept mail for its own domain while still refusing to forward unauthorised mail outward, and that distinction is central to secure mail flow.

Why open relay prevention matters

An unrestricted relay turns a mail server into an abuse platform. Attackers and spammers look for relays because they can send bulk mail through a trusted host, hide the true origin of messages, and drive reputation damage against the organisation’s domain or IP space. For operators, the problem is both security and deliverability, since abuse can trigger blacklisting and downstream service disruption.

Relay restriction policy is therefore a trust boundary control. It should allow the mail paths the business actually needs, while blocking unauthenticated or non-approved forwarding paths that create outbound abuse risk.

Common relay decision signals

Most relay controls combine multiple decision points rather than relying on one test alone. IP-based rules are common for trusted scanners, printers, or internal applications on managed networks, while authenticated submission is used for users and systems that must prove who they are before sending through the server.

Sender and recipient checks add another layer of control. Binding relay to approved sender identities or approved destination patterns helps prevent a mailbox or device from being used to forward mail on behalf of a different account or to arbitrary external recipients.

Where mail servers support it, the strongest model is to separate local delivery from relay permission and to make relay explicit rather than implied. Network ports and protocols security is also relevant here because SMTP exposure on the wrong listener or port often becomes the first sign of a misconfigured mail path.

How organisations validate and tune relay controls

Administrators usually confirm relay exposure by testing from outside the trusted network, reviewing whether anonymous clients can submit externally addressed mail, and checking whether authenticated submission is restricted to the intended users or devices. Vendor guidance for the specific MTA should be the authoritative source for exact rule syntax and listener behaviour.

Exim and Postfix Mail Server Hardening Guide is a practical reference for relay control, SMTP AUTH under TLS, sender binding, logging and rate limiting, while Google Workspace Less Secure Apps Retirement and Exchange Online SMTP AUTH Basic Auth Retirement show how relay and authenticated submission change when legacy authentication is removed.

Risk and Threat Considerations

Relay restrictions fail most dangerously when a server is left able to forward mail for unauthorised clients, because that creates spam abuse, reputation damage, and possible credential or API-key abuse on mail-enabled systems. The same weakness can also mask compromised devices or scripts that are quietly sending mail through a trusted relay.

Failure mechanism: Mis-scoped allow rules, permissive listener settings, or fallback authentication paths let an untrusted sender use the server as an outbound mail gateway.

Impact: The organisation can inherit spam complaints, blocklisting, abnormal mail volume, and investigation work to identify which host, account, or application was abused.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementRelay access depends on approved accounts and authenticated submission paths.
Recommendation — Restrict SMTP relay to approved accounts and remove unused mail send paths.
NIST SP 800-53 Rev 5AC-4 — Information Flow EnforcementSMTP relay rules enforce whether mail may flow from one trust boundary to another.
IA-5 — Authenticator ManagementAuthenticated SMTP relay depends on managing credentials, tokens, or other authenticators.
Recommendation — Enforce outbound mail flow restrictions at the relay boundary. Rotate and govern SMTP authenticators used for relaying.
ISO/IEC 27001:2022A.8.20 — Network securityRelay restriction is a network-facing control that governs permitted mail traffic.
Recommendation — Configure mail servers to permit only approved relay paths.

Practitioner Guidance

Why practitioners should care: Relay restrictions are one of the simplest controls that still has a direct abuse-prevention payoff. If they are too loose, the mail server becomes a standing outbound channel; if they are too tight, legitimate scanners, applications, and authenticated users can break in ways that are hard to diagnose.

Governance implication: Treat relay policy as an explicit ownership decision, not a one-time mail server default. The allowed sources, authentication method, and permitted destinations should be documented and reviewed whenever mail flow changes.

Practitioner takeaway: Validate the policy from both inside and outside the trusted network, then keep logging and rate limits in place so relay abuse is visible before it becomes a reputation incident.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org