# Google Workspace (server-side)

## Part 1: Add host

In order to route your emails through Scribe secure servers, you have to create a host in your Google Workspace Gmail

### Step 1

In your [Google Admin](https://admin.google.com/), go to Apps -> Google Workspace -> Gmail\
On the next page, click on "Hosts" item

<figure><img src="/files/pziwumD96s5PPDoAEGPR" alt="" width="563"><figcaption><p>Hosts item in Google Workspace admin Gmail settings</p></figcaption></figure>

### Step 2

Click on "ADD ROUTE" link and fill in the next form with the following informations:

* Name: Scribe
* Select "Single host"
* Host name or IP: smtp.server.scribe-mail.com
* Port: 25
* Select the options like in the screenshot below

<div data-full-width="false"><figure><img src="/files/yw3rfkozuNLhTmPhF7AZ" alt="" width="563"><figcaption><p>Scribe host form in Google Workspace</p></figcaption></figure></div>

You can now click on the "Save" button

## Part 2: Configure the SMTP relay service

To receive email back from Scribe for routing to the end recipients:

### Step 1

In your [Google Admin](https://admin.google.com/), go to Apps -> Google Workspace -> Gmail\
On the next page, click on "Routing" item

<figure><img src="/files/EEefLrptBE0ceCQ2Pcxd" alt="" width="563"><figcaption><p>Routing item in Google Workspace admin Gmail settings</p></figcaption></figure>

### Step 2

In the next page, click on configure under "SMTP relay service"<br>

<figure><img src="/files/gwhxE4DPELOfltlx6YYl" alt="" width="563"><figcaption><p>Configure SMTP relay service</p></figcaption></figure>

Fill-in the next form with the following informations:

* Description: Receive from Scribe
* Authentication: Check "Only accept mail from the specified IP addresses" and add those two ips:\
  15.236.243.144  and  51.44.50.107
* Select "Require TLS encryption"
* Click save

<figure><img src="/files/TcGPRqr2D7AlScFtj5tg" alt="" width="563"><figcaption></figcaption></figure>

## Part 3: Route your emails through the created Host

### Step 1

In your [Google Admin](https://admin.google.com/), go to Apps -> Google Workspace -> Gmail\
On the next page, click on "Compliance" item

<figure><img src="/files/ulKvqkZ6DNvBW1l3Ik6B" alt="" width="563"><figcaption><p>Compliance item in Google Workspace admin Gmail settings</p></figcaption></figure>

### Step 2

In the next page, click on configure under "Content compliance"<br>

<figure><img src="/files/K34TadP8I1cAbVsFuJN5" alt="" width="563"><figcaption><p>Configure compliance</p></figcaption></figure>

Fill in the following form like on the screenshot:

* Description: Route to Scribe
* Select "Outbound" and "Internal - sending" in "Email messages to affect"
* In the second configuration item, you have to add an expression with:\
  Location: Full headers\
  Math type: Not contains text\
  Content: X-Scribe-Processed\
  We want to avoid processing your email multiple time.
* In the third configuration item, you change the route to the host you create at the part 1 of this help article.
* Select Require secure transport (TLS)
* Click "Save"

<figure><img src="/files/5hGXgiToH0ECgeiEmmwB" alt="" width="563"><figcaption><p>Compliance rule configuration</p></figcaption></figure>

<figure><img src="/files/bQQpSPFt8fhhqYW51eQ3" alt="" width="563"><figcaption><p>Compliance rule expression</p></figcaption></figure>

## Part 4: Configure DKIM

Go to Scribe -> Settings -> DNS and configure DKIM for your sending domains

**You are done** :tada:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.scribe-mail.com/scribe/install-signatures/automated-installation/server-side-installation/google-workspace-server-side.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
