Configuring G Suite (Google Apps)

Situation – Trying to set-up Spambrella with Google’s GSuite service.

Solution – Outline to setting up GSuite in conjunction with Spambrella.

This article explains how to configure G Suite to use Spambrella as your mail gateway.

What Is G Suite?

G Suite (also known as Google Apps) is a cloud-based solution from Google which offers email, messaging, security, archiving, and other capabilities delivered from Google’s worldwide network of cloud data centers.

For more information please see: https://gsuite.google.com/together

Before You Start

Before continuing with the provisioning and configuration of the Spambrella service, it is recommended that you have the information listed below.

INFORMATION NEEDED FOR CONFIGURING SPAMBRELLA

  • MX record(s) for domain(s) you are configuring

INFORMATION NEEDED FOR CONFIGURING G SUITE

Setup Inbound Mail Flow

Spambrella is deployed between the customer’s G Suite environment and the Internet. Inbound mail is routed to Spambrella by changing the customer’s MX records. After email is processed by Spambrella it is routed to G Suite.

Configure Spambrella

LOCATE YOUR MX RECORD FOR THE DOMAIN IN G SUITE

  1. Sign-In to the Google Admin console.
  2. From the dashboard go to Apps > G Suite > Gmail > Advanced Settings.

L6GNXFskjSlAYCcqKWnO_nUFIJPc_rbN3g.png

  1. While on the General Settings tab, scroll down to Setup > MX records and make note of all the Points to values (you can also enter MX records in the search field).

These values will be necessary when you add your domains to Spambrella.

ADDING DOMAIN(S) TO SPAMBRELLA

  1. Sign-in to the Spambrella user interface.
  2. Navigate to ‘Administration‘ and click Account Management > Domains > New Domain.
  3. Enter the domain name you wish to configure.
  4. Ensure Relay is selected for domain purpose.
  5. Enter the delivery and failover destinations values.
  6. Choose the method you wish to use for domain verification.

You can verify your domain at this stage or you can verify at a later time. However, the domain must be verified before it can be enabled.

  1. Click Verify Now OR Verify later.
  2. Repeat if you are adding more than 1 domain.

The delivery and failover destinations refers to the points to values captured in the previous section.

Configure G Suite

CONFIGURE INBOUND MAIL GATEWAY

Skipping Inbound Mail Gateway Configuration

Skipping this step has been verified to cause bounce errors if the original sender side has a valid SPF or DMARC configuration in place. Please ensure to set this in order to ensure mail delivery.

  1. Sign-In to the Google Admin console.
  2. From the dashboard go to Apps > G Suite > Gmail > Advanced Settings.
  3. While on the General Settings tab, scroll down to the Spam > Inbound Gateway (you can also enter Inbound Gateway in the search field).

-QMIKxGCkH69s6Vb0VSNcQ6t9n8eoi0DYw.png

  1. Hover the cursor to the right of Inbound gateway. To create a new inbound gateway setting, click Configure.
  2. Under Gateway IPs, enter the IP addresses, then enable.

XxEJHG1keePcmPi16DCozAbSHenatQ09Cg.png

  1. Check Automatically detect external IP.

When this setting is enabled, Gmail scans the message header to locate the first occurrence of an IP address that is not listed in the Gateway IPs. This is referred to as the “external IP.” Gmail considers the “external IP” as the sending IP and uses this IP for SPF checks and spam evaluation.

  1. Check Reject all mail not coming from gateway IPs.
  2. Check Require TLS for connection from the email gateways listed above.
  3. Click Add Setting.                                                     VETzQAG0U-HBRaIm3c_CCK5D6ULR7IBd0Q.png
    DzQnGj_ZGsZOZlWY3KGRFy8BpIXPUdbowg.png

 

UPDATE SAFETY SETTINGS

G Suite’s safety settings allow organizations to enable or disable policies related to viewing and accessing email. If you have enabled some or all of these settings you may experience some delivery issues. Please review the following steps to ensure your settings are supported.

  1. While signed in to the Google Admin console, go to Apps > G Suite > Gmail.
  2. Click Safety to expand options.

No changes to Attachments settings or Links and external images are required. You can leave these settings as they are.

  1. DMARC Errors – If you have Spoofing and authentication settings enabled (either all or customized) consider the following setting:
    • Protect against any unauthenticated emails
      • Spambrella has already scanned incoming emails for SPF and/or DKIM issues. Emails with issues are scored accordingly and quarantined if they exceed your spam threshold.
      • This setting needs to be disabled. If it is enabled it may cause unexpected delivery issues for incoming email.

Not disabling this feature has also been known to cause bounce back errors indicating a DMARC issue. Please ensure you disable this as instructed.

The error message would be: Unauthenticated email from proofpoint.com is not accepted due to domain’s DMARC policy

Setup Outbound Mail Flow

Spambrella is deployed between the customer’s G Suite environment and the Internet. Outbound mail is routed to Spambrella by configuring an outbound mail gateway. This will route all outbound mail to Spambrella.

Configure Spambrella

ENABLE OUTBOUND RELAYING

  1. Sign-in to the Spambrella user interface.
  2. Navigate to the ‘Administration‘ area and click Account Management > Features
  3. Check Enable Outbound Relaying.

kI_0Dg4EAOgiKTaqwF55sxRcWQxOBvEmtQ.png

  1. Click Save.

ADD SERVICE IP ADDRESSES TO YOUR INBOUND GATEWAY

  1. While logged into the Spambrella user interface, navigate to the ‘Administration‘ area and click Account Management > Domains
  2. Click Managed Hosted Services.

7ToNvAUcSvhAxgF7FAQT7v0nFXpX_T3lDQ.png

  1. Choose Google Apps.

XxEJHG1keePcmPi16DCozAbSHenatQ09Cg.png

  1. Click Save.

Configure G Suite

CONFIGURE OUTBOUND MAIL GATEWAY

  1. Sign-In to the Google Admin console.
  2. From the dashboard go to Apps > G Suite > Gmail > Advanced Settings.
  3. While on the General Settings tab, scroll down to the Routing > Outbound Gateway (you can also enter Outbound Gateway in the search field).

SlLZ1DMrNcXevWJYA7gK1W-S6I-MmFy0JQ.png

 

  1. In the Outbound Gateway text field, enter the Spambrella Smart host value.
  2. Click Save.

UPDATE SENDER POLICY FRAMEWORK (SPF)

When sending outbound email through the Spambrella gateway, recipients receive mail sent from Spambrella rather than G Suite mail servers. If the recipient’s mail service attempts to verify that the message came from your domain, it must confirm that the gateway server is an authorized mail server for your domain.

To enable this, you need to add the Spambrella SPF record to your domain.