Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Email Gateway Defense
Results will update as you type.
  • Release Notes
  • Upcoming Change with Admin Sender Policies to Override User Policies
  • How to Protect Against Gateway Bypass and Direct Send Risks
  • Getting to Know Email Gateway Defense
  • Getting Started
    • MX Deployment vs. Inline Deployment in Email Gateway Defense
    • How to Configure MX Records to Direct Mail Flow to Barracuda
    • How to Manage MX Records With the Setup Wizard
    • Microsoft 365 Deployment
    • Google Workspace Deployment
    • Amazon WorkMail Deployment
    • Exchange 2016 and Newer Deployment
      • Step 1 - Set Up Email Gateway Defense for Exchange 2016 and Newer
      • Step 2 - Configure Email Gateway Defense for Exchange 2016 and Other On-Premise Mail Servers
  • Moving from Barracuda Email Security Gateway to Email Gateway Defense
  • How the Service Works
  • Email Gateway Defense IP Ranges Used for Configuration
  • Partner Accounts
  • Sender Policy Framework for Outbound Mail
  • How to Set Up MX Records for Domain Verification
  • Security Warnings
  • Understanding User Accounts
  • Sender Authentication
  • Inbound Filtering Policy
  • Outbound Filtering Policy
  • Advanced Configuration
  • Managing Domains
  • Logs and Reports
  • User Guides
  • Tools and Add-Ins
  • API Overview
  • Troubleshooting, Error Messages, and Additional Tips
  • Known Behaviors and FAQs
  • Online Service Terms

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Step 2 - Configure Email Gateway Defense for Exchange 2016 and Other On-Premise Mail Servers
    Published Mar 13

    Step 2 - Configure Email Gateway Defense for Exchange 2016 and Other On-Premise Mail Servers

    Subscribe

    Email Gateway Defense follows the lifecycle policy of each supported vendor and does not support versions that are end of life or end of support as indicated by the product vendor.

    Use this article to deploy Email Gateway Defense for Exchange 2016 and other on-premise mail servers in your environment.

    Important

    Exchange user interfaces can change; refer to Microsoft documentation for configuration details.

    Step 1. Ensure Connectivity and Redundancy

    • Open your firewall ports to allow the IP address ranges based on your Barracuda Networks instance; see Email Gateway Defense IP Ranges Used for Configuration for a list of ranges based on your Barracuda Networks instance

    • Where relevant, verify your network subnet is granted access to your mail server ACL and LDAP server

    • Block all port 25 traffic except for that originating from Email Gateway Defense IP Ranges Used for Configuration based on your Barracuda Networks instance

    Step 2. Launch the Email Gateway Defense Setup Wizard

    Alternatively, you can manually set up Email Gateway Defense using the web interface.

    1. Log into Email Gateway Defense, and click the link to launch the Email Gateway Defense Setup wizard.

    2. Select the Region for your Data Center. Then click Get Started.

       The Specify Primary Email Domain page displays. 

    3. Enter the primary Exchange domain you want to filter, for example: cudaware.com

    4. Click Next. The Specify Email Servers page displays. Enter the mail server hostname (FQDN) or IP address for the domain entered in the previous step. Use default port 25 for the mail server port.

    5. Click Add. Enter an email address to test the server configuration, and click Test All Mail Servers.

    6. Once the mail server is verified, the Verified () icon displays in the status column and a confirmation message displays at the top of the page. 

    7. Click Next. The Configure Settings page displays. Select from the following options:

      1. Virus Protection – Set to On to direct Email Gateway Defense to detect and block viruses on inbound email.

      2. Spam Protection – Set to On to direct Email Gateway Defense to evaluate inbound mail for spam based on a score assigned to each processed message. When set to Off inbound mail is not scanned for spam.

      3. Spam Scoring – Set Spam Protection to On to enable Spam Scoring. Scoring ranges from 1 (definitely not spam) to 10 (definitely spam). Setting a score of '1' will likely block legitimate messages while setting a score of '10' will allow more messages through the system. Based on this score, Email Gateway Defense blocks messages that appear to be spam and logs these messages in the user's Message Log with Score as the reason for the block.

    8. Click Next. The Route Email Through Barracuda page displays.

    9. To verify your domain, replace your current MX records with the Email Gateway Defense Primary and Backup MX records displayed on the page:

      editRecord.png

       

      routeEmail.png
    10. If you choose not to change your MX records, you can use another method to verify your domain. Select I do not want to route my e-mail through Barracuda at this time:

    11. Select the verification option:

      1. CNAME Records – To use the CNAME records method to verify the domain ownership:

        1. Log into your DNS Server and, under this domain, create a subdomain whose name is created by concatenating 'barracuda' and the CNAME token shown in the Route Email Through Barracuda page. For example: barracuda30929916985.corpdomain.com

        2. Point the CNAME record of that subdomain to ess.barracuda.com 

        3. Click Confirm Validation in the Route Email Through Barracuda page.

      2. Email to Technical Contact – This method sends a verification email to the technical contact email address, if it exists, listed on your domain's WHOIS entry.

      3. Email to the postmaster – This method sends a verification email to the postmaster email address for your domain. The confirmation email includes a link that the recipient must click to verify the domain.

    12. Click Next, and click Next again.

    13. On the Select Data Center Region page, select the data center for your locale, and click Get Started.

    14. Complete the wizard pages.

    15. The Confirmation page displays. Confirm domain ownership, and then click Done.

    Step 3. Set Up User Accounts

    You can add users manually, or use your organization's LDAP server or Microsoft Entra ID service to automatically synchronize Email Gateway Defense with your active directory server. To create a few test accounts during the evaluation period, use the Manually Add Users steps below.

    Decide whether or not you want to enable user quarantine. When enabled, users have quarantine accounts and can decide whether or not mail is spam. Users can also create their own sender allow list and block list. Manually add a few test accounts on the Users > Add/Update Users page, and set Enable User Quarantine to Yes. The first time Email Gateway Defense receives an email for that user and the message is quarantined, the user receives a quarantine notification email at the scheduled quarantine notification interval.

    Depending on how you have configured the quarantine notification interval on the Users > Quarantine Notification page, the user receives a quarantine digest at a specified time. From the Users > Quarantine Notification page you can also allow the user to set their own quarantine notification interval.

    Manually Add Users
    Automatically Add Users

    You can configure user authentication via your organization's LDAP server or Microsoft Entra ID service. For complete setup details, see the following articles:

    • How to Configure User Authentication with Microsoft Entra ID

    • How to Configure User Authentication Using LDAP

    Step 4. Configure Outbound Mail Scanning

    1. Log into Email Gateway Defense, and go to Outbound Settings > Sender IP Address Ranges.

    2. Enter the IP Address and Domain Name (logging domain) and optional Comment for IP address ranges allowed to send outgoing email from your domains. Click Add.

    3. Add all IP addresses from which outgoing mail is allowed to flow through Email Gateway Defense. The Logging Domain is the domain name that appears in the Message Log as the sending domain for the associated IP address. 

    Note that if there are multiple domains sending from a single IP address through Email Gateway Defense, you only need to configure one Logging and Policy Domain entry.

    Step 5. Configure Sender Policy Framework for Outbound Mail

    To ensure Barracuda Networks is the authorized sending mail service of outbound mail from Email Gateway Defense, add the following to the Sender Policy Framework (SPF) record INCLUDE line of the SPF record for your sending mail server for each domain sending outbound mail. Select the relevant SPF INCLUDE based on the region you selected for your Barracuda Networks instance:

    AU (Australia)

    include:spf.ess.au.barracudanetworks.com -all

    CA (Canada)

    include:spf.ess.ca.barracudanetworks.com -all

    DE (Germany)

    include:spf.ess.de.barracudanetworks.com -all

    IN (India)

    include:spf.ess.in.barracudanetworks.com -all

    UK (United Kingdom)

    include:spf.ess.uk.barracudanetworks.com -all

    US (United States)

    include:spf.ess.barracudanetworks.com -all

    See Sender Authentication for more information.

    • If you have an SPF record set up for your domain, edit the existing record, and add the following to the INCLUDE line for each domain sending outbound mail based on your Barracuda Networks instance. For example: include:spf.ess.barracudanetworks.com -all

    • If you do not have an SPF record set up for your domain, use the following value to create a TXT record that creates a HARD Fail SPF for your domain based on your Barracuda Networks instance. For example: v=spf1 include:spf.ess.barracudanetworks.com -all

    For additional configuration options and features, log into the web interface, and click Help.

    Step 6. Configure Your Exchange Mail Server

    If you have multiple domains configured on Exchange, you only need to create one send connector. You can use any one of the outbound smarthosts to make the send connector.

    Each of the domains that you want to be able to send email must be added to Email Gateway Defense. Be sure to add all of your accepted domains into Email Gateway Defense before configuring outgoing email in this section.

    Before you begin, log into Email Gateway Defense, and go to Domains > Domain Manager. Note the Outbound Hostname for the domain that is to relay outbound mail. You will use this information in Step 4c below.

    1. Log into your Exchange Admin Center.

    2. In the left navigation panel, select Mail Flow, then Send Connectors.

    3. Click the Plus icon to create a new send connector. Enter the following information:

      1. Name: Outbound to Barracuda

      2. Type: Custom

    4. Click Next.

      1. Select Route mail through smart hosts.

      2. Click the Plus icon.

      3. Enter the Outbound Smart Host for the domain that is to relay outbound mail. This is the Outbound Hostname you noted earlier from the Domain Manager in Email Gateway Defense.

    5. Click Next. Ensure that the Authentication is set to None. Click Next again.

    6. Click the Plus icon and type an asterisk for the FQDN. Click Save, then click Next.

    7. Click the Plus icon and add your source servers. These are any servers that will be sending email.

    8. Click Finish.

    Step 7. Verify Mail is Flowing

    1. Log into Email Gateway Defense.

    2. In the Dashboard page, verify inbound and outbound messages are being logged for the selected domain.

    Step 8. Enable Advanced Threat Protection

    Files blocked by ATP display on the Dashboard.

    1. Go to  ATP Settings, and select the desired option:

      • Deliver First, then Scan – Attachments are delivered with the message to the recipient and then scanned by the ATP service; if a virus is detected, an email notification is sent to the email recipient. Additionally, if Notify Admin is set to Yes, and a virus is detected in the scanned attachment, an email is sent to the administrator.

      • Scan First, then Deliver – Attachments are scanned by the ATP service before delivery. If a virus is detected in the attachment the message is blocked, otherwise it is delivered to the recipient.

    2. Select whether to Notify Admin if a virus is detected in a scanned attachment. When set to Yes, enter the ATP Notification Email address in the associated field.

    When ATP is set to either Deliver First, then Scan or Scan First, then Deliver, you can exempt sender email addresses, sender domains, recipient email addresses, recipient domains, or sender IP addresses from ATP scanning in the ATP Exemptions section on the ATP Settings page.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 29, "requestCorrelationId": "e33d7a727c764c33a9073cb4970fe21a"}