
Any server or service that relays email on your behalf is a target. If it accepts mail from the wrong people, it becomes a spam cannon with your domain's name on it. If its connections aren't encrypted, credentials and messages can be exposed. This guide covers what makes a secure SMTP relay: authentication, encryption, sender and IP restrictions, credential hygiene, MTA-STS and monitoring, whether you run your own relay or use a hosted one.
💡 TL;DR
A secure SMTP relay requires every sender to authenticate (SMTP AUTH with strong, unique credentials, or tight IP allowlists), enforces TLS on submission, restricts which sender addresses and domains can be used, and never accepts mail from anyone without checks, which would make it an open relay. Store credentials in a secrets manager and rotate them, give each app its own credentials, publish SPF, DKIM and DMARC for every relayed domain, consider MTA-STS to enforce TLS on inbound mail, and monitor volume and failures to catch compromised accounts fast. For cloud relays such as Google Workspace's, require both IP and SMTP authentication where possible.
By LiteMail · Prices/data checked on November 25, 2026
Table of Contents
Why Does SMTP Relay Security Matter?
Secure SMTP Relay Controls at a Glance
Step 1: Require Authentication
Step 2: Enforce TLS
Step 3: Restrict Allowed Senders
Step 4: Protect Credentials
Step 5: Authenticate Your Domains
Step 6: Monitor for Abuse
Securing Hosted Relays
Secure SMTP Relay Checklist
Relays and Cold Email
Final Verdict: Authenticate, Encrypt, Restrict, Monitor
Frequently Asked Questions
Why Does SMTP Relay Security Matter?
A relay sends mail with your domain's reputation attached. If an attacker can use it, through a stolen password, a misconfigured allowlist or an open relay, they can send spam or phishing that looks like it came from you. The fallout includes blocklistings, account suspensions and real harm to people who trust your domain.
Unencrypted relay connections add another risk: credentials and message contents exposed on the network.
By the end of this, you'll know the controls that make a secure SMTP relay and how to check yours.
Secure SMTP Relay Controls at a Glance
Here are the controls that matter, in rough order of importance.
Control | What it prevents | Priority |
|---|---|---|
No open relaying | Anyone using your relay | Critical |
Authentication (SMTP AUTH or IP allowlist) | Unauthorized senders | Critical |
TLS on submission | Credential and content exposure | Critical |
Sender address restrictions | Spoofing other domains via your relay | High |
Unique, rotated credentials | Long-lived stolen credentials | High |
SPF, DKIM, DMARC | Spoofing and unauthenticated mail | High |
Monitoring and rate limits | Undetected abuse | High |
MTA-STS | Downgrade attacks on inbound TLS | Medium |
🚩 Test for open relaying
An open relay accepts mail from anyone to anyone. It will be found and abused quickly. Test any relay you operate with an external open-relay checker.
How We Built This Guide
This guide draws on SMTP and TLS standards, MTA-STS (RFC 8461), and relay security guidance from Google Workspace and Microsoft 365 documentation, checked on November 25, 2026. It's written for administrators securing legitimate relays.
The content gap
Most relay guides focus on getting mail flowing. This one focuses on keeping the relay from being misused, which is where real-world incidents come from.
Step 1: Require Authentication
Every message through the relay should come from a known sender.
Method | Strength | Watch for |
|---|---|---|
SMTP AUTH (username and password) | Strong if credentials are protected | Credential theft |
IP allowlist | Strong if IPs are static and controlled | Shared or dynamic IPs |
Both | Strongest | More setup |
Certificate-based connectors | Strong for system-to-system | Certificate management |
Google Workspace's SMTP relay, for example, lets admins require IP authentication, SMTP authentication or both; Google notes SMTP authentication requires TLS.
Whichever method you choose, document which devices and applications use the relay and how each authenticates. That inventory is what lets you revoke access quickly when a device is retired or a credential leaks.
Step 2: Enforce TLS
Encrypt connections to the relay so credentials and messages aren't sent in clear text.
Use port 587 with STARTTLS, or 465 with implicit TLS, for submission.
Require TLS rather than making it optional.
Use current TLS versions and valid certificates.
Disable plaintext authentication on unencrypted connections.
Check older devices in particular. Printers and legacy applications sometimes only support outdated TLS versions or none at all. Rather than weakening the relay for them, route them through a separate, tightly restricted path or replace them.
Step 3: Restrict Allowed Senders
Limit which From and envelope sender addresses the relay will accept.
Allow only your own domains.
Where possible, allow only addresses tied to registered users.
Avoid "any address" settings; Google, for example, warns this increases abuse risk.
Give each application a dedicated sender address.
Restrictions like these also limit the damage if credentials are stolen: an attacker can only send as approved addresses on your domains, which makes abuse easier to spot and contain.
Step 4: Protect Credentials
Stolen relay credentials are a common route to abuse.
Give each application or device its own credentials.
Store them in a secrets manager, not in code or config files in source control.
Use app passwords or service accounts with minimal rights.
Rotate credentials on a schedule and after staff changes.
Revoke credentials immediately if a device is lost or an app is retired.
Treat relay credentials like any other privileged secret. They're often forgotten in old scripts and device settings, which is exactly why attackers look for them.
Step 5: Authenticate Your Domains
Relay security also depends on DNS records that tell receivers which mail is genuine.
SPF: include the relay's sending servers.
DKIM: sign relayed mail with your domain.
DMARC: publish a policy and move toward enforcement.
MTA-STS (RFC 8461): tell other servers to require TLS when delivering to you.
Our SPF, DKIM and DMARC guide covers the first three.
Publishing these records also helps receivers trust the mail your relay sends legitimately, which reduces false positives in spam filters.
Step 6: Monitor for Abuse
Even well-configured relays need watching.
Signal | Possible cause | Action |
|---|---|---|
Sudden volume spike | Compromised credentials or app bug | Throttle, investigate, rotate credentials |
Many bounces | Spam or bad lists | Pause sender, investigate |
Mail to unusual destinations | Abuse | Block and investigate |
Authentication failures | Brute-force attempts | Lock out, alert |
Set rate limits per sender so a single compromised app can't send unlimited mail.
Review relay logs at least weekly even when nothing seems wrong. Gradual increases in volume or new sending addresses are easier to catch in a routine review than in the middle of an incident.
Securing Hosted Relays
If you use a hosted relay service or a cloud provider's relay, your responsibilities shift but don't disappear.
Protect API keys and SMTP credentials like passwords.
Use scoped keys with minimal permissions.
Turn on account security features such as multi-factor authentication for the console.
Watch bounce and complaint rates; providers suspend accounts that exceed thresholds.
Microsoft 365 admins should also review Direct Send behavior; our Direct Send spoofing guide in this series covers that.
Review who has access to the relay provider's console as well. A compromised console login can be worse than a leaked SMTP password, because it can create new credentials and change sending settings.
Secure SMTP Relay Checklist
Use this to audit any relay.
Check | Pass if |
|---|---|
Open relay test | Relay refuses unauthenticated external relaying |
Authentication | Every sender authenticates by credentials, IP or certificate |
TLS | Required on submission |
Sender restrictions | Only your domains and approved addresses |
Credentials | Unique per app, stored securely, rotated |
DNS | SPF, DKIM, DMARC published; MTA-STS considered |
Monitoring | Alerts on volume, bounces and auth failures |
Relays and Cold Email
A secure relay is still the wrong tool for cold outreach. Relays are built for system and transactional mail, and most hosted relay services prohibit unsolicited email. Cold email belongs on real mailboxes on separate outreach domains.
Litemail pre-warmed inboxes provide those mailboxes with authentication pre-configured. Our guide to SMTP relay services for cold email in this series explains why relays don't fit.
What Real Users Say
Administrators commonly report that relay abuse usually starts with leaked or reused credentials, or settings that allow any sender address. Security teams consistently recommend unique credentials per application, required TLS and alerting on unusual volume.
Final Verdict: Authenticate, Encrypt, Restrict, Monitor
A secure SMTP relay never relays for strangers, requires authentication from every sender, enforces TLS, restricts sender addresses, protects and rotates credentials, publishes SPF, DKIM and DMARC, and is monitored for abuse. Those controls apply whether you run the relay or use a hosted one.
And keep relays for system and transactional mail; send outreach from real mailboxes.
Secure, Authenticated Mailboxes for Outreach
Litemail pre-warmed Google Workspace and Microsoft 365 inboxes come with SPF, DKIM and DMARC pre-configured, dedicated US and EU IPs and full admin access. From $39/month for 5 inboxes.
Get Pre-Warmed Inboxes from $39/mo →
Google Workspace & Microsoft 365 · Full admin access · Dedicated US and EU IPs · Plans from 5 inboxes
About Litemail — Litemail provides pre-warmed Google Workspace and Microsoft 365 inboxes for cold email outreach. From $39/month for 5 inboxes with automated DNS, dedicated US and EU IPs, and full admin access. View pre-warmed inbox plans →
Related reading: SPF, DKIM and DMARC Setup Guide · Blacklist Prevention for B2B Teams · Inbox Monitoring for Enterprise Teams · Google Workspace Inboxes · Litemail Pre-Warmed Inboxes — Plans and Pricing
Key Takeaways
Never run an open relay; test for it.
Require SMTP authentication, IP restrictions or both.
Require TLS on submission ports 587 or 465.
Restrict sender addresses to your own domains.
Use unique, securely stored, rotated credentials per app.
Monitor volume, bounces and authentication failures.
Frequently Asked Questions
What is a secure SMTP relay?
A relay that only accepts mail from authenticated, authorized senders, encrypts connections and is monitored for abuse.
What is an open relay?
A relay that accepts mail from anyone to anyone. It will be abused and blocklisted.
Which port should a secure SMTP relay use?
Typically 587 with STARTTLS or 465 with implicit TLS for submission.
Is IP allowlisting enough?
It can be, with static, controlled IPs. Combining it with SMTP authentication is stronger.
What is MTA-STS?
A standard (RFC 8461) that lets a domain require TLS for mail delivered to it.
How do I know if my relay was abused?
Watch for volume spikes, bounces, unusual destinations and repeated authentication failures.
Should I send cold email through a relay?
No. Use real mailboxes on separate outreach domains, such as Litemail inboxes from $39/month for 5 inboxes.
Buy Pre-Warmed Email Inboxes & Domains | Litemail
Buy pre-warmed email accounts, inboxes and domains from $39/month for 5 inboxes. Google Workspace & Microsoft 365. Automated DNS, US & EU IPs. Setup in 5 minutes.
View Plans & Pricing → Related reading: Microsoft 365 Inboxes · Cold Email Deliverability Guide · Outlook Subject Line Display · Pre-Warmed Domains · Litemail Home


