An email security gateway, or SEG, is a security product that sits inline in your mail flow and inspects inbound and outbound email for spam, phishing, malware and policy violations before messages reach their destination. It usually works by rerouting mail through the gateway with an MX record change, then blocking, quarantining or tagging anything suspicious.
Key takeaways
- A secure email gateway inspects mail before delivery, using reputation, signatures, machine learning, sandboxing and policy rules.
- SEGs are strongest at pre-delivery filtering and outbound control, but they cannot see internal mail or mail that bypasses them.
- Cloud-first teams often pair an SEG with API-based email security, DMARC at p=reject and phishing-resistant MFA for full coverage.
Almost every serious cyber attack still starts in an inbox. A password reset, an invoice, a message from the boss — email is where attackers reach your staff directly, and where a single click can hand them a password, a payment or a foothold. An email security gateway is the checkpoint you put in front of that inbox.
What is an email security gateway?
An email security gateway, also called a secure email gateway or SEG, is a security product that sits inline in your mail flow and inspects email before it reaches its destination. It checks inbound and outbound messages for spam, phishing, malware and policy violations.
Proofpoint defines it plainly: an SEG "sits inline with mail flow" and "inspects routed inbound and outbound email and applies threat-detection and policy rules before messages reach their destination." Cloudflare adds that modern gateways use signature analysis and machine learning to catch phishing and malware before they reach inboxes.
Think of it as a border checkpoint for email. Every message passes through, gets checked against reputation lists, authentication results, content rules and threat intelligence, and is then allowed through, quarantined, blocked, tagged or encrypted — depending on your policy.
How does an email security gateway work?
An email security gateway works by rerouting your mail through itself, inspecting each message, applying a verdict, and then acting on that verdict. Most deployments start with a DNS change.
- Route mail through the gateway. You change your domain MX record, or use a connector or mail-flow rule, so inbound mail goes to the gateway first. Outbound mail can be routed the same way.
- Inspect the message and its context. The gateway checks sender reputation, SPF, DKIM and DMARC results, content, URLs, attachments and other threat signals.
- Apply a verdict. Each message is classed as acceptable, suspicious, malicious or subject to a policy rule.
- Take action. The gateway delivers, rejects, quarantines, tags, reroutes, sanitises or encrypts the message.
- Coordinate with other controls. API-based email security can add mailbox-level and post-delivery visibility that an inline gateway cannot see.
That sequence — route, inspect, verdict, action — is the core of every SEG, even though vendors differ in how they detect threats and how much they automate. See the Proofpoint SEG definition for the full breakdown.
What does an email security gateway do?
Most gateways combine the same core jobs: filter and validate mail, detect phishing, inspect links and attachments, enforce policy, and manage quarantined messages. The details vary by vendor, but the list below covers what to expect.
| Capability | What it does | Why it matters |
|---|---|---|
| Spam and reputation filtering | Blocks mail from known spam sources using IP reputation and blocklists | Cuts noise and stops most bulk attacks at the door |
| Anti-phishing and BEC detection | Uses machine learning to spot impersonation and social engineering | Catches attacks with no link or malware attached |
| Malware and attachment scanning | Scans attachments against signatures and in a sandbox | Stops ransomware and malware delivered by email |
| URL inspection and rewriting | Checks links at delivery and again at click time | Catches links that turn malicious after delivery |
| Data loss prevention (DLP) | Scans outbound mail for sensitive data patterns | Stops accidental or deliberate data leaks |
| Encryption and policy | Encrypts or routes sensitive outbound mail | Meets compliance and client requirements |
| Quarantine and reporting | Holds suspicious mail for review and reports detections | Lets admins release false positives safely |
Sandboxing deserves a special note. A gateway can detonate a suspicious attachment in an isolated virtual machine and watch what it does before delivering it. That catches malware that no signature list has seen yet — but it adds a short delay to delivery.
SEG vs API-based email security: what is the difference?
An SEG and API-based email security protect email at different points. An SEG sits in mail flow; API-based security connects directly to your cloud mailbox. Neither replaces the other for every team.
| Secure email gateway (SEG) | API-based email security | |
|---|---|---|
| Connection | Inline mail routing, usually via MX records | Direct integration with cloud email APIs |
| Timing | Before delivery; outbound policy on routed mail | In-mailbox and post-delivery inspection |
| Mail-flow changes | Usually required | Usually not required |
| Internal mail visibility | Limited to routed mail | Can see internal and direct-send mail |
| Best fit | Pre-delivery filtering, hybrid mail, outbound control | Cloud-first teams needing post-delivery response |
Cloudflare makes the same distinction: SEGs typically operate via MX record redirection or API integration, and the API route lets a product monitor mail once it reaches the inbox and remove it retroactively. Many organisations now run both — the gateway for pre-delivery control, and API-based security for what slips through or arrives internally. Our guide to what DMARC is covers the authentication layer that both approaches rely on.
What threats can an email security gateway stop?
An SEG can stop a wide range of email threats, but it is strongest against threats with a detectable signal — a bad link, a known malware signature, a spoofed sender — and weakest against pure social engineering.
- Spam: high-volume unwanted mail, filtered by reputation and content rules.
- Malware and ransomware: attachments and malicious pages linked from email, caught by scanning and sandboxing.
- Phishing: fake login pages and credential-harvesting mail, caught by URL and content analysis.
- Business email compromise: impersonation and payment fraud — harder, because these messages often contain no malicious link or attachment.
- Data exfiltration: outbound mail carrying sensitive data, caught by DLP rules.
The scale is large. The FBI's Internet Crime Complaint Center received 191,561 phishing and spoofing complaints in 2025, making it the most-reported internet crime that year, and business email compromise caused about $3.05 billion in reported US losses. Those figures come from the FBI IC3 2025 Annual Report, and they only count reported cases.
Who needs an email security gateway?
Not every organisation needs a separate gateway. Microsoft 365 and Google Workspace already include email security, and for a small team that may be enough — especially if you also use DMARC, MFA and staff training.
You are more likely to need an SEG if you run hybrid mail (some on-premises, some cloud), handle regulated data, need strong outbound DLP or encryption, face targeted phishing, or want a second, independent layer on top of your cloud provider. Regulated sectors such as finance, healthcare and legal work often fall into this group.
If you are a small business with cloud-only mail and no special compliance needs, start with the built-in protections, DMARC at p=reject, and phishing-resistant MFA. Add a gateway when you can name the specific gap it closes. Our small business cybersecurity checklist walks through those basics in order.
What are the limitations of an email security gateway?
An SEG is one layer, not a complete email security strategy. Its own vendors are clear about its limits, and you should plan around them.
- It only sees routed mail. Internal mail between colleagues, and mail sent directly to your mail server bypassing the gateway, is invisible to it.
- It struggles with pure social engineering. A short, polite BEC message with no link or attachment can look like ordinary business mail.
- It can delay or block good mail. Sandboxing adds latency, and aggressive rules create false positives that need admin time to release.
- It needs care to deploy. Changing MX records is a real risk: a mistake can delay or lose mail, so test with a small group first.
- It does not fix accounts. A compromised mailbox sending mail from inside your organisation will pass most gateway checks.
CISA's joint phishing guidance makes the same point from the other side: technical controls help, but phishing-resistant MFA, DMARC and user reporting are the controls that stop the attacks gateways miss. Read it at CISA's phishing guidance.
How do you choose an email security gateway?
Choose by fit, not by feature count. Start with your mail architecture, then test detection against real threats, then check operations and cost.
- Match your architecture. Cloud, on-premises or hybrid? Does it support your mail platform, routing model and outbound controls?
- Test detection. Run a trial against real phishing, BEC, impersonation and malware samples — including attacks with no known signature.
- Check lifecycle coverage. What can it see before delivery, in the mailbox, after delivery, at click time, and in internal mail?
- Review outbound controls. Confirm the DLP, encryption and routing rules you actually need.
- Count the admin work. Quarantine workflows, reporting, SIEM integration and false-positive handling all cost staff time.
- Ask for evidence. Independent efficacy tests, false-positive rates and customer references in your sector.
Run the trial with your own mail, not the vendor's demo data. A gateway that looks perfect on a sales call can still miss the exact BEC pattern your finance team sees every week. You can check how well your own domain is protected today with our free email security score.
How do you set up an email security gateway?
Setup is a mail-flow change, so treat it like one: plan, test with a pilot group, then roll out. A rushed MX change is how mail gets lost.
- Record your current MX, SPF, DKIM and DMARC settings before you change anything, so you can roll back.
- Point a test subdomain or pilot group through the gateway first and watch for blocked legitimate mail.
- Tune policies for spam, phishing, attachments and DLP, and set up quarantine notifications users will actually read.
- Update SPF to include the gateway, and check that DKIM and DMARC still pass for outbound mail routed through it.
- Switch the MX record for the whole domain, with a low TTL so you can revert quickly if needed.
- Monitor for a week — delivery delays, false positives, and any mail that bypasses the gateway.
The bottom line
An email security gateway is a strong first checkpoint: it filters spam, phishing and malware before delivery and gives you control over outbound mail. It is not a complete defence on its own, because it cannot see internal mail or stop every social-engineering attack.
Pair it with DMARC at p=reject, phishing-resistant MFA, API-based post-delivery protection where you need it, and staff who report suspicious mail fast. Check your domain's current email authentication with the free DMARC checker — that is the cheapest layer to fix first.
Frequently asked questions
What is an email security gateway?
An email security gateway, or SEG, is a product that sits in the path of your email and inspects messages for spam, phishing, malware and policy violations before they reach inboxes. It can block, quarantine, tag, reroute or encrypt messages based on your rules.
How does an email security gateway work?
It reroutes mail through itself, usually by changing your domain MX record, then checks sender reputation, authentication, content, links and attachments. It applies a verdict to each message and either delivers it, quarantines it, blocks it or tags it as suspicious.
What is the difference between a secure email gateway and a spam filter?
A spam filter mainly blocks unwanted bulk mail. A secure email gateway adds phishing and malware analysis, link and attachment inspection, quarantine, routing and outbound policy enforcement such as data loss prevention.
Do I still need an email security gateway with Microsoft 365 or Google Workspace?
It depends. Microsoft 365 and Google Workspace include built-in email security, and many small teams do not need a separate gateway. Larger or regulated organisations add one for stronger phishing and business email compromise detection, outbound controls or hybrid mail routing.
What is the difference between an SEG and API-based email security?
An SEG sits inline in mail flow and filters before delivery, which usually needs an MX record change. API-based email security connects directly to your cloud mailbox and can inspect internal mail and remove messages after delivery. Many teams use both.
Can an email security gateway stop business email compromise?
It helps, but it cannot stop it alone. Business email compromise messages often contain no link or malware, so a gateway must use machine learning and behaviour analysis, and you still need DMARC, a payment verification rule and phishing-resistant MFA.
How much does an email security gateway cost?
Most SEGs are priced per user per month or per year, and enterprise pricing is usually quoted rather than published. Expect to pay more for sandboxing, data loss prevention and API-based post-delivery protection. Always get a quote for your user count and required features.
What are the limitations of an email security gateway?
An SEG only sees mail routed through it, so it misses internal mail, direct-send mail and mail sent from a compromised account inside your organisation. It can also add latency, false positives and admin work, and it struggles with sophisticated attacks that use no known malicious indicators.
Sources
- Proofpoint — What Is a Secure Email Gateway (SEG)?
- Cloudflare — What is a secure email gateway (SEG)?
- CISA — Phishing Guidance: Stopping the Attack Cycle at Phase One
- NIST — SP 800-45 Version 2, Guidelines on Electronic Mail Security
- FBI Internet Crime Complaint Center — 2025 IC3 Annual Report
- Microsoft Learn — Microsoft Defender for Office 365
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Proofpoint and Cloudflare SEG definitions, CISA phishing guidance, NIST SP 800-45 and the FBI IC3 2025 report.
How we write and fact-check →