# Relay Domains

In order for Hermes SEG to deliver email, you must first set the domain(s) that Hermes SEG will process email for along with their corresponding email server(s). You can add as many domains and email servers as required. An email server can be configured as an IP address or a Host Name as long as the Hermes SEG can reach it over Port TCP/25. Multiple domains can be pointed to the same email server if necessary.

### Add Relay Domain with IP Address Destination

1. Under the **Relay Domain Destination Type**, select the **IP Address Destination** option.
2. In the **Relay Domain** field enter the domain name and in the **Dest IP** fields, enter the email server's IP address and click the **Add** button (**Figure 1**).

**Figure 1**

[![image-1606159087277.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159087277.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159087277.png)

3. After adding a Relay Domain and IP Address Destination, the entry will show up below the **Edit/Delete domains &amp; Destinations** section (**Figure 2**).

**Figure 2**

[![image-1606159096831.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159096831.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159096831.png)

### Add Relay Domain with Host Name Destination

1. Under the **Relay Domain Destination Type**, select the **Host Name Destination** option.
2. In the **Relay Domain** field enter the domain name, in the **Dest Host Name** field, enter the email server's Host Name part of the FQDN address (without the domain part), in the **Dest Host Domain** field, enter the email server's domain part of the FQDN address and then click the **Add** button (**Figure 3**).

**Figure 3**

[![image-1606159106034.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159106034.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159106034.png)

3. After adding a Relay Domain and Host Name Destination, the entry will show up below the **Edit/Delete domains &amp; Destinations** section (**Figure 4**).

**Figure 4**

[![image-1606159116207.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159116207.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159116207.png)

### Edit Existing Relay Domain Mapping

1. Click on the edit icon ![](http://www.deeztek.com/default/assets/File/edit_icon.jpg) under the **Edit** column of the **Domain** you wish to edit.
2. On the **Edit Existing Relay Domain Mapping** page, select either the **IP Address Destination** or the **Host Name Destination** option (**Figure 5**).

**Figure 5**

[![image-1606159130229.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159130229.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159130229.png)

**IP Address Destination**

Selecting **IP Address Destination** will enable the IP Address Destination entry. Enter the IP Address of the destination email server under the **Dest IP** field and click the **Edit** button to save your changes (**Figure 6**). Note that the **Relay Domain** field is already pre-filled and cannot be changed.

**Figure 6**

[![image-1606159138595.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159138595.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159138595.png)

**Host Name Destination**

Selecting Host name Destination will enable the Host Name Destination entry. Enter the host name (without the domain) of the destination email server under the **Dest Host** Name field, enter the domain of the destination email server under the **Dest Host Domain** field and click the **Edit** button to save your changes (**Figure 7**). Note that the **Relay Domain** field is already pre-filled and cannot be changed.

**Figure 7**

[![image-1606159147071.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159147071.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159147071.png)

3. When finished making your changes, click on the **Back to Relay Domains** button on the bottom of the page to return to the **Relay Domains** page (**Figure 8**).

**Figure 8**

[![image-1606159155109.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159155109.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159155109.png)

### Delete Existing Relay Domain Mapping

**Note: Deleting existing Relay Domain mappings can only be accomplished if there are are no existing Internal Recipients assigned to that domain. If there are existing Internal Recipients assigned to the domain, you will receive the following message under the Delete column of the Edit/Delete Domains &amp; Destination section (Figure 9). In order to delete the domain, you must first navigate to Gateway --&gt; Internal Recipients, delete all the Internal Recipients for that domain and then return to this section to delete the domain.**

**Figure 9**

[![image-1606159162930.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159162930.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159162930.png)

1. Click on the [![image-1606159178896.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159178896.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159178896.png)icon under the Delete column of the Domain you wish to delete.
2. On the confirmation page, click on the **Yes** button to proceed with deleting the domain. Clicking on the **No** button will take you back to the **Relay Domains** page (**Figure 10**).

**Figure 10**

[![image-1606159194706.png](https://docs.deeztek.com/uploads/images/gallery/2020-11/scaled-1680-/image-1606159194706.png)](https://docs.deeztek.com/uploads/images/gallery/2020-11/image-1606159194706.png)