MX Deployment vs. Inline Deployment in Email Gateway Defense
Email Gateway Defense supports two deployment methods for filtering inbound mail: MX deployment and inline deployment. Outbound mail is filtered the same way regardless of deployment method. Both methods provide Barracuda Networks email security, but they route inbound mail differently and are designed for different operational requirements. Use this article to understand how each method works and which method best fits your organization.
MX Deployment
With MX deployment, you update your domain's DNS MX records to point to Email Gateway Defense. All inbound mail for your domain is received by Barracuda Networks first, filtered, and then delivered to your mail platform.
Typical mail flow: Internet > Email Gateway Defense > Mail platform (for example, Microsoft 365)
How MX Deployment Works with Microsoft 365
Your domain's MX records point to Email Gateway Defense, so Barracuda Networks is the first hop for all inbound mail.
Barracuda Networks scans each message (anti-spam, anti-phishing, anti-malware, content filtering, reputation services, and policy and compliance) before delivery.
Messages that are blocked or quarantined by Email Gateway Defense are not delivered to Microsoft 365. These messages are visible in the Email Gateway Defense Message Log and quarantine.
Allowed messages are forwarded to Microsoft 365. When Enhanced Filtering for Connectors is configured, Microsoft 365 can identify the original sender IP address, and Exchange Online Protection applies its own filtering.
Microsoft 365 delivers the message to the user's Inbox or Junk folder, or holds it in Microsoft 365 hosted quarantine, depending on your Microsoft 365 settings.
Key Characteristics
Widely adopted deployment model across organizations of different sizes.
Supports Email Continuity capabilities.
Integrates with Microsoft 365 using Enhanced Filtering for Connectors.
Provides pre-delivery inspection before messages reach the destination mail platform.
Compatible with Microsoft 365, Google Workspace, Amazon WorkMail, on-premises mail servers, and other mail platforms.
Requires access to your DNS hosting account to update MX records.
Inline Deployment
Inline deployment is available only for Microsoft 365. Instead of routing mail with MX records, the setup wizard configures Microsoft 365 mail flow rules and connectors that route mail through Barracuda Networks for scanning before final delivery. Microsoft 365 remains the initial recipient of inbound mail. Microsoft refers to this type of deployment as in-and-out mail routing. For Microsoft's guidance, see Integrate non-Microsoft security services with Microsoft 365.
Typical mail flow: Internet > Microsoft 365 > Barracuda Networks > Microsoft 365 > User mailbox
How Inline Deployment Works
Inbound mail is received by Microsoft 365 first, where Microsoft 365 applies its email protection and processing before messages are routed to Barracuda Networks. Enhanced Filtering for Connectors is not supported with inline deployment.
A mail flow rule routes inbound messages from Microsoft 365 to Barracuda Networks for scanning before final delivery to the user's mailbox.
Barracuda Networks scans the message. Messages that Barracuda Networks blocks or quarantines are not returned to Microsoft 365. These messages are visible in the Email Gateway Defense Message Log and quarantine.
Allowed messages are returned to Microsoft 365. The connection filtering policy trusts Barracuda Networks IP addresses and stamps the message with a spam confidence level (SCL) of -1.
Microsoft 365 processes the returned message as a new message and applies its own actions, such as delivering it to the user's Inbox or Junk folder, or holding it in Microsoft 365 hosted quarantine.
Note: Setting SCL to -1 bypasses spam, high confidence spam, and phishing filtering only. Messages that Microsoft 365 identifies as high confidence phishing or malware can still be held in Microsoft 365 hosted quarantine and not delivered to the user.
Key Characteristics
Designed specifically for Microsoft 365 environments.
Uses Microsoft 365 mail flow controls and connectors.
Allows Microsoft 365 to remain the initial point of mail acceptance.
Offers flexibility for organizations with established Microsoft 365 routing requirements.
Business continuity relies on Microsoft 365 services.
For inline deployment requirements, Microsoft 365 changes, and operational considerations, see Inline Deployment Considerations and Requirements.
Comparing Deployment Methods
The following table summarizes the differences between the two deployment methods. Review these differences to decide which method best fits your environment.
| MX Deployment | Inline Deployment |
|---|---|---|
Supported mail platforms | Microsoft 365, Google Workspace, Amazon WorkMail, on-premises, and others | Microsoft 365 only |
How mail is routed | DNS MX records | Microsoft 365 mail flow rules and connectors |
First recipient of inbound mail | Email Gateway Defense | Microsoft 365 |
Email Continuity and spooling | Available | Not available |
Licensing | Email Gateway Defense (standalone) or Email Protection | Email Protection (Email Gateway Defense, Integrated Email Protection) |
Enhanced Filtering for Connectors | Supported | Not supported |
Choosing the Right Deployment Method
Consider MX deployment if you want:
Email Continuity and spooling
Support for multiple mail platforms
A dedicated pre-delivery email security layer
To use Email Gateway Defense as a standalone product
Consider inline deployment if you want:
A Microsoft 365-specific deployment model
Microsoft 365 to remain the initial recipient of inbound mail
Alignment with existing Microsoft 365 mail routing workflows
Organizations that require email continuity, message spooling, or support for non-Microsoft mail platforms may want to evaluate whether an MX deployment is a better fit for their requirements.
Both deployment methods deliver Barracuda email security capabilities. The best choice depends on your organization's operational preferences, business continuity requirements, and email infrastructure design.
If you are considering inline deployment, see Inline Deployment Considerations and Requirements before you begin.