Exchange Connection Problems

Route Microsoft 365 Outbound Mail Through Barracuda

Olivia MillerOlivia Miller Nov 27, 2026 868 views

Question details

Route outbound Microsoft 365 email through an on-premises Barracuda spam firewall for filtering.

Route Microsoft 365 Outbound Mail Through Barracuda
Product
Microsoft 365 Exchange Online and Barracuda Email Security Gateway
Device & OS
not provided
Scenario
A hybrid Exchange organization wants messages sent to external recipients to pass through its Barracuda firewall.
Observed behavior
Outbound messages can bypass Barracuda, and a connector configured with only its public IP may fail validation or report DNS query errors.
Before you start

Identify the Barracuda gateway's publicly reachable smart-host address and confirm that it accepts and relays outbound mail from Exchange Online. Check its DNS, SMTP access, and TLS certificate requirements, and ensure that its outbound route will not send the same messages back to Microsoft 365.

Solution 1Recommended

Create a Barracuda smart-host connector and mail-flow rule

Use this approach to direct selected outbound Exchange Online messages through Barracuda for filtering.

1
Create an outbound connector

In the Exchange admin center, go to Mail flow > Connectors and select Add a connector. Set the connection from Office 365 to a partner organization, then name the connector.

2
Configure the smart host

Choose to use the connector when a transport rule redirects messages to it. Route email through a smart host and enter the Barracuda gateway's publicly reachable address, preferably a DNS-resolvable hostname. Configure TLS to match the gateway's supported settings and certificate.

3
Validate the connector

Use the connector validation screen to test delivery to an external recipient. If validation reports a DNS or connection error, check the smart-host address, public DNS, SMTP access, and Barracuda relay settings before retrying.

4
Add a mail-flow rule

Go to Mail flow > Rules and add a rule. Set conditions for messages sent from inside the organization to recipients outside the organization, then choose the action to redirect the messages to the Barracuda connector. Add any exceptions needed to avoid routing loops.

5
Test outbound delivery

Send a message from a Microsoft 365 mailbox to an external address. Check Exchange Online message trace and Barracuda logs to verify that the message passed through the gateway and was delivered.

Create a Barracuda smart-host connector and mail-flow rule
Avoid mail loops: Configure Barracuda to deliver filtered outbound messages to their external destinations rather than returning them to the same Exchange Online routing path.
Free Microsoft Office alternative

Use WPS Office for everyday document work

WPS Office is a free, lightweight alternative for creating and editing office files, with a familiar interface that makes it easy to move existing documents. It does not configure Exchange Online connectors or Barracuda mail routing.

Work with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Use a familiar interface for documents, spreadsheets, and presentations.Keep working with office files while an administrator manages Exchange mail routing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Barracuda connector report a DNS query error?

Check the smart-host address in Exchange admin center > Mail flow > Connectors. If you use a hostname, confirm that it resolves publicly to the Barracuda gateway and that the gateway accepts SMTP connections from Exchange Online.

Why is outbound mail still bypassing Barracuda?

A connector scoped to a transport rule is used only when a matching rule redirects the message to it. Check the rule under Mail flow > Rules, including its sender, recipient, action, and exception settings, then verify the path in message trace and Barracuda logs.

Does centralized mail transport automatically filter mail through Barracuda?

No. Centralized mail transport sends applicable outbound cloud mail through on-premises Exchange. The on-premises outbound connector must also route that mail through Barracuda.

How can I inspect the outbound connector settings?

In Exchange Online PowerShell, run Get-OutboundConnector -Identity "Connector name" | Format-List to review properties such as SmartHosts, UseMXRecord, and IsTransportRuleScoped. Also check the configured TLS settings against the Barracuda gateway.