Skip to content
  • There are no suggestions because the search field is empty.

Outbound Security setup for Google Workspace: Segmented mail routing (by domain)

This configuration can be used to direct email from specific domains out via Paubox, rather than directing all email traffic from your organization out via Paubox. This is done in the Google Workspace Admin Console by creating a route & defining domains with a RegExp. 

If you are setting up traffic segmentation, you must notify support@paubox.com so we can make matching adjustments on the Paubox side.

Note: The complete setup instructions for Outbound Security for Google Workspace are here. The configuration below can be used in place of Part II: Google Workspace - Adjust Gmail Settings.

Note: This method CANNOT be used if there is an existing outbound gateway set in Google Workspace. 

A Paubox subscription or trial subscription is required (don't have one? sign up here!)

Questions? Stuck? We’re here for you!  support@paubox.com 


Step-by-step guide

A: Set a host (mail route)

  1. Go to your Google Admin Console (admin.google.com) 
  2. Click Apps (9 dots on the left side panel)
  3. Click Google Workspace (two options below in the drop down)
  4. Click Gmail (below Google Workspace)
  5.  On the next screen (Gmail), click Hosts
  6.  On the right side of the screen, click ADD ROUTE 
    • Name: Paubox Outbound
    • Single Host
    • During setup, you'll be provided with the value for "Enter host name:"
    • To the right of the colon enter: 587
    • Check the box for: Require mail to be transmitted via a secure (TLS) connection
  7. Click SAVE
kb_Outbound Security setup for Google Workspace- Segmented mail routing2

B: Set the routing

  1. Go back to the main Google Admin Console (admin.google.com) 
  2. Click Apps (9 dots on the left side panel)
  3. Click Google Workspace (two below apps)
  4. Click Gmail (5 below Google Workspace)
  5. On the next screen (Gmail), scroll down and click Routing 
  6. Find the subsection called Routing, and click on CONFIGURE when it appears
  7. In the Add Setting popup:
    • Short description: Paubox Regexp Routing
    • Messages to affect: Outbound and Internal - Sending kb_Outbound Security setup for Google Workspace- Segmented mail routing3
    • Check the box for: Route
    • ... on the drop-down change Normal routing to:  Paubox Outboundkb_Outbound Security setup for Google Workspace- Segmented mail routing4
    • Find Encryption at the bottom of the page.
    • Check the box for Required secure transport (TLS)
    • Click on Show options at the bottom of the page. kb_Outbound Security setup for Google Workspace- Segmented mail routing5
    • Scroll down to Envelope Filter at the bottom of the page.
    • Check Only affect Specific Envelope Senders
    • Change Single Email Address to: Pattern Match
    • On the line under RegExp, enter the reg expression for your domain:
      [^@]+@(?:.+\.)?domain\.com
      • If your domain is "example.net" use the regexp:
        [^@]+@(?:.+\.)?example\.net
      • If your domains are "example.net" and "example2.com" use the regexp:
        [^@]+@(?:.+\.)?(?:example\.net|example2\.com)

 

8. Click Save