You can specify Email Gateway Defense as an inbound mail gateway through which all incoming mail for your domain is filtered before reaching your Amazon WorkMail account. Email Gateway Defense filters out spam and viruses, then passes the mail on to Amazon SES (Simple Email Service).
You can also specify Email Gateway Defense as the outbound mail gateway through which all mail is sent from your domain via your Amazon WorkMail account to the recipient. As the outbound gateway, Email Gateway Defense processes the mail by filtering out spam and viruses before final delivery. Enable Simple Mail Transfer Protocol (SMTP) gateways for use with outbound email flow rules to route email messages sent from your Amazon WorkMail organization through the SMTP gateways.
Configure Inbound Mail
Launch the Email Gateway Defense Setup Wizard
The setup wizard includes steps to identify your email server, add MX records, and remove MX records. Each of the domains where you want to filter email must be verified by Email Gateway Defense for proof of ownership; Email Gateway Defense does not process email for a domain until the verification process is complete.
Log into Barracuda Cloud Control. If this is your first time launching the Email Gateway Defense setup wizard, you will be redirected to the Barracuda Trials Hub page. Click Set Up under Email Gateway Defense.
Alternatively, if you have started the setup wizard but did not complete it, after logging into Barracuda Cloud Control, select Email Gateway Defense on the left side. In the top banner, click Set Up Now to launch the setup wizard.
The Email Gateway Defense wizard launches.
Select the Region for your data center. Then click Confirm region.
After you select your region, you cannot change it.
Enter a valid email address from the email server domain you want to protect with Email Gateway Defense. Click Detect email server.
The system automatically auto-fills your destination mail server. If this is not the correct server, click Edit, enter the correct details, and then click Update.
After you have determined that the settings are correct, click Verify server.
Note that mail servers can take up to 48 hours to be discoverable for new domains.
Once your email server is verified, a green check markwill appear at Step 1 and the Status will show. You can now move on to Step 2 Add new MX records.
To add new MX records:
Log into your DNS hosting account.
Add the primary and backup MX records shown in the Add new MX records section. Instructions for your DNS hosting provider will vary; you can use search terms such as add, edit, manage, or MX records.
Add the MX records with a low priority, for example, 99. Adding the new MX records to your existing list should look similar to this:
After updating your MX records, allow at least 24-48 hours before completing the next step to allow time for your changes to propagate.
Verify that the new Email Gateway Defense MX records have been added by clicking on the Verify records button.
Once your MX records are added, a green check markwill appear at Step 2 and the Status will show. You can now move on to Step 3 Remove old MX records.
To remove old MX Records:
Log into your DNS hosting account.
Remove the existing MX records shown in the Remove old MX records section. Instructions for your DNS hosting provider will vary; you can use search terms such as add, edit, manage, or MX records.
Update the priority of your primary and backup Barracuda MX records to 1 and 10.
In the Email Gateway Defense wizard, verify that your non-Barracuda Networks MX records have been removed by clicking on the Verify update button.
Once your MX records are removed, a green check markwill appear at Step 3 and the Status will show.
After you have successfully completed all the steps in the Email Gateway Defense setup wizard, click the Complete setup button. To exit the wizard and come back at a later time, click Save & exit.
Configure Outbound Filtering
Step 1. Set Up Custom MAIL FROM Domain
By default, Amazon WorkMail uses an amazonses.com domain in the MAIL FROM [envelope] sender. To relay your outbound mail through Barracuda Networks, you must configure WorkMail to use your custom domain instead.
If you have already completed this step, proceed to Step 2. Create an SMTP Gateway.
Navigate to AmazonSES https://console.aws.amazon.com/ses.
Under Configuration, select Identities, and then select your custom email domain.
Scroll down to the Custom MAIL FROM domain section, and click Edit.
Check the box to Use custom MAIL FROM domain and enter a value, such as ses, in the MAIL FROM domain field.
Click Save changes.
Under the Custom MAIL FROM domain section, follow the instructions to publish the MX and SPF (type TXT) records to the DNS server of the custom MAIL FROM domain to verify your domain.
Once your custom domain shows a Successful status, continue to the next step.
Step 2. Create an SMTP Gateway
Open the Amazon WorkMail console at https://console.aws.amazon.com/workmail/.
In the navigation pane, select Organizations, and then select the name of an organization.
In the navigation pane, select Organization settings.
The Organization settings page appears and displays a set of tabs.Select the SMTP gateways tab, and then select Create gateway.
Enter the following:
Gateway name – Barracuda
Gateway address – The outbound SMTP smarthost from your Email Gateway Defense interface
Port number – 25
Username and Password – Enter a period. These values are not needed for outbound relay.
Select Create.
The SMTP gateway is now available for use with outbound email flow rules.
Step 3. Update SPF Record
Log into your DNS provider and locate the SPF record created for your custom [sub] domain, which was required as part of Step 1. Set Up Custom MAIL FROM Domain.
Add the Barracuda include statement for your region. See Sender Policy Framework for Outbound Mail for the relevant SPF INCLUDE based on the region you selected for Email Gateway Defense.
An example SPF record for the US region:v=spf1 include:amazonses.com include:spf.ess.barracudanetworks.com ~all
Step 4. Create Outbound Email Flow Rules
Open the Amazon WorkMail console at https://console.aws.amazon.com/workmail/.
In the navigation pane, select Organizations, and then select the name of an organization.
In the navigation pane, select Organization settings.
The Organization settings page appears and displays a set of tabs.Select the Outbound rules tab, and then click Create.
Enter the following:
Rule name – Barracuda Outbound
Action – Route to SMTP gateway
SMTP Gateway – Select the SMTP gateway you created in Step 2 Create a SMTP Gateway
Sender domains or addresses – *
Destination domains or addresses – *
Click Create.