Configure Black Pearl Mail routing for users based on group membership for Google Workspace

Configure Black Pearl Mail routing for users based on group membership for Google Workspace

These steps will route users through the Black Pearl Mail platform who are members of a specified group. 
To carry out the following steps, you will require a Google Workspace account with global administrator permissions.

STEP 1 – Create a Group

1) Go to your Gmail Administrator settings: http://admin.google.com/
2) From the left-hand menu, select Directory > Groups.


3)  Click Create group.


4) Enter Black Pearl Mail as the name, and blackpearlmail as the group email and click Next.


5) Click on the drop-down menu next to Who can join the group and select Only invited users. Click Create group.


6) Click Add members to Black Pearl Mail.

7) Click Add members.


8) This is the part where we add all the members that we want to route through Black Pearl Mail. Enter the email address of the user in the search field and then select it from the list.


9) Once you have added all the members, click Add to group.



STEP 2 – Set up a New Mail Route

1) From the left-hand menu, select Apps > Google Workspace > Gmail.

2) Click the Hosts.


3) Click the Add Route.


In the popup, enter the following:
  1. Name: Black Pearl Mail
  2. Ensure that the Specified email server is set to single host.
  3. Hostname (case sensitive): smtp-global.blackpearlmail.com
  4. Port number: 25
  5. Ensure Require secure transport (TLS) is checked.
  6. Ensure Require CA signed certificate is checked.
  7. Ensure Validate certificate hostname is checked.


4) Click Test TLS connection and ensure it passes.


5) Click Save.


STEP 3 – Setting up SMTP Relay Service

1) Go Back to Settings for Gmail.


2) Scroll to the bottom of the page and click Routing.


3) Scroll down to the SMTP relay service and click Configure or Add Another Rule.


4) Enter the following:
  1. Enter the description as Black Pearl Relay.
  2. Change allowed senders to Only addresses in my domain.
  3. Check Only accept mail from the specified IP addresses.
Add the following IP ranges:
  1. Black Pearl West US - 13.86.181.222
  2. Black Pearl East 1 US - 13.86.126.189
  3. Black Pearl East 2 US - 40.88.53.55
  4. Black Pearl Central US - 52.224.189.79
All other fields can be left blank.

5) Click Add Setting or Save.
       

STEP 3 – Configure Compliance Settings 

1) Go back to Settings for Gmail.


2) Scroll down to the bottom of the page and select Compliance.


3) Scroll down to Content Compliance and click Configure or Add another rule.


4) Set the description to Black Pearl Compliance.
  1. Under 1. Email messages to affect check Outbound and Internal Sending.  
  2. Under 2. Add expressions that describe the content you want to search for in each message, make sure that you have If ALL of the following match the message selected in the drop-down, then:
    1. Choose to add an expression.
    2. Select Advanced content match.
    3. Location should be set to Full headers.
    4. Match type set to not contains text.
    5. Enter X-BP to Content and Save the expression.
    6. Click Save.
            

5) Click Add to add another expression.

  1. Select Advanced content match.
  2. Select Location to Headers + Body.
  3. Select Match type to Not contains text.
  4. Enter BEGIN:VCALENDAR into the Content area.
  5. Click Save.

      
6) Click Add to add another expression.

  1. Select Advanced content match.
  2. Select Location to Envelope Sender.
  3. Select Match type to Not contains text.
  4. Enter google.com into the Content area.
  5. Click Save.


7) Click Add to add another expression.


  1. Select Advanced content match.
  2. Select Location to Full headers.
  3. Select Match type to Not matches regex.
  4. Enter (\W|^)(From:)*(<calendar-notification@google\.com>)(\W|$) into the Regex area.
  5. Click Test expression and then select Save.


8) Scroll to If the above expressions match do the following.
  1. Under Headers - Check “Add X-GM-Original-To header”.
  2. Under Route - Check “Change Route”.
  3. Select Black Pearl Mail from the dropdown.

      

9) Scroll right down to the bottom of the page and select Show options.


10) Scroll down to Envelope filter and tick the box next to Only affect specific envelope senders.

11) Click Select groups.

12) Select the Black Pearl Mail group we created in the previous steps.

13) Click on the cross in the top left-hand corner.


14) Click Save.


That completes the settings needed in Google Workspace. All members of the Black Pearl Mail group are now configured to route with Black Pearl Mail. These settings can take up to an hour to complete. 

Next, you'll want to create signature templates, add user details, and lastly turn on signatures for your users. We have great Getting Started articles that you can reference below.
  1. Getting Started: Use the Same Branded Email Template for all Users
  2. Getting Started: Use Different Branded Email Templates for Different Groups of Users