# Migrating Outgoing Mail Connections

This section provides information on how to migrate outgoing mail connections from Server to Cloud.

Note: Settings configured under **Outgoing Mail Connections** on Server can be configured under **Outgoing Mail Connections** on Cloud.

Note: If connections use OAuth2, Client Credentials need to be migrated first, so that they are available when the connections are replicated on Cloud. For more information on migrating OAuth2 credentials, see: [Migrating OAuth2 Credentials](https://docs.meta-inf.hu/email-this-issue/email-this-issue-for-jira-server-data-center/server-to-cloud-migration/server-to-cloud-manual-migration-guide-for-email-this-issue/migrating-other-settings/migrating-oauth2-credentials)

1. On the Server interface, display the SMTP connections that you want to migrate as follows:
   1. Select **Outgoing Mail Connections** under the **OUTGOING EMAILS ADMINISTRATION** section of the sidebar.
   2. Click the three dots next to the Outgoing connection you want to migrate, and select **Edit**

2. In a separate browser tab, log in to the Cloud interface and migrate SMTP connections as follows:

   1. Select **Outgoing Mail Connections** under the **OUTGOING MAILS** menu item of the **Administration** configuration tab, and click **Add**.

3. Copy and paste the content from the **Outgoing Mail Connection** panel on Server to the **Edit Outgoing Mail Connection** panel on Cloud as follows:
   1. As shown in the image below, make sure to copy and paste the content of the following fields:
      * **Name → Name**
      * **Description → Description**
      * **From Address → From Email Address**
      * **Prefix → Email Prefix**
      * **Connect Mode → Service provider**
      * **Encryption → Encryption**
      * **Username → Username**
      * **Password → Password**

   2. As shown in the image below, make sure to copy and paste the content of the following fields as well:
      * **Host → Host**
      * **Port → SMTP Port**
      * **Debug → Debug**

   3. In case of an OAuth2 setting, make sure to copy and paste the content of the following fields.
      * **Connect mode → Service Provider**
      * **OAuth2 Credentials → OAuth2 Credentials**

4. On the Cloud interface, click **Save**.

5. Repeat this procedure for all your connections.

Result: Your Outgoing Mail Connection settings are migrated from Server to Cloud.

For more information, see:

Server documentation: [Outgoing Mail Connections](https://docs.meta-inf.hu/email-this-issue/email-this-issue-for-jira-server-data-center/documentation/administration/outgoing-mail-connections)

Cloud documentation: [SMTP Servers](https://docs.meta-inf.hu/email-this-issue/administration/email-this-issue-for-jira-cloud-smtp-servers)
