Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Mail Gateway

Direct answer

A mail gateway (secure email gateway) filters inbound and outbound mail for spam, phishing, malware and data leaks, with sandboxing, URL rewriting and policy enforcement before mail reaches users.

When to use this

Use this when filtering mail for spam, phishing, malware and data leaks at the gateway.

First 30 seconds

1. A mail gateway (SEG/cloud) filters inbound/outbound mail.

2. Attachment sandboxing, URL rewriting, DLP.

3. Integrated cloud mail protections.

4. Avoid bypass routes to the mail server.

5. Monitor queues.

Operational verification

internet → gateway → mail platform

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Mail server still accepts direct connections from the internet, bypassing the gateway.
  • Gateway allow lists that trust spoofable sender addresses.
  • Outbound mail not routed through the gateway, so DLP and signing are skipped.
  • DKIM signing done before the gateway modifies the message (adds banners), breaking signatures.
Platform / version applicability
Security architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformSecurity architecture and operations
Scope / prerequisiteUse this when filtering mail for spam, phishing, malware and data leaks at the gateway.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Sandboxing catches unknown attachments.
  • URL rewriting protects at click time.
  • Outbound filtering catches compromised accounts.
Key checks
  • Gateway health and queue — status
  • Policies: attachments, URLs, sandbox — protection
  • swaks --to <user> --attach-type application/zip --server <gw> — test policy (lab)
ReferenceWhy it matters1 section · depth on demand

Gateway functions

Inbound: spam/phishing filtering, malware and sandbox analysis, URL rewriting with time-of-click checks, impersonation detection. Outbound: DLP, encryption, rate limits. Deployment: MX points to the gateway (cloud SEG) or API-based integration with Microsoft 365/Google (ICES). When using an MX gateway, lock the mail server to accept mail only from the gateway, or attackers bypass it.

ReferenceImportant terms & boundaries2 sections · depth on demand

Deployment

  • Cloud gateways (Microsoft Defender for Office 365, Proofpoint, Mimecast) change MX records to the gateway.
  • Lock down the mail server to accept only from the gateway, or attackers bypass it by sending directly.
  • Configure enhanced filtering / skip listing when the gateway sits in front of Microsoft 365, so SPF/DMARC checks use the real sender IP.

In depth

A mail gateway (secure email gateway or cloud email security service) filters inbound and outbound email: spam, malware, phishing, impersonation, DLP and encryption. It may sit in front of the mail system as the MX record, or integrate via APIs with Microsoft 365 or Google Workspace.

DeploymentCharacteristics
MX-based gatewayAll mail flows through it; can block before delivery
API-based (integrated cloud email security)Scans inside the mailbox; can remove messages after delivery
Native (Defender for Office 365, Gmail)Built-in, tightly integrated

When using an MX gateway in front of a cloud mailbox, lock the mailbox to accept mail only from the gateway (connector restrictions), or attackers can bypass filtering by delivering directly.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docSecurity architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Email Security → Mail Gateway. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7489 · confidence 94%
Confirmation

Confirm action

Continue?