> ## Documentation Index
> Fetch the complete documentation index at: https://kb.mochahost.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up Gmail to access your Mochahost e-mail account

> Learn how to set up Gmail to access a Mochahost e-mail account.

This article demonstrates how to set up Gmail to access a Mochahost e-mail account. With Gmail access, you can view and manage both incoming and outgoing messages for your Mochahost account from the Gmail interface.

To set up Gmail to access a Mochahost e-mail account, follow these steps:

1. Make sure you have already created at least one e-mail account for your domain in cPanel or Plesk.

2. Log in to the Gmail account.

3. Click the Gmail settings icon, and then click **See All Settings**:\
   ![](https://static.hosting.com/kb/kb-email-gmail-settings.png)

   > 📘 Note
   >
   > The user interface displayed in these images may differ slightly from the version you have installed.

4. Click the **Accounts and Import** tab:\
   ![](https://static.hosting.com/kb/kb-gmail-accounts-import-tab.png)

5. On the **Accounts and Import** tab, in the **Check mail from other accounts** section, click **Add a mail account**:\
   ![](https://static.hosting.com/kb/kb-email-gmail-add-mail-account.png)

6. In the **Email address** text box, type the Mochahost e-mail address that you want to access from Gmail (for example, [*gmail@example.com*](mailto:_gmail@example.com_) ), and then click **Next**:\
   ![](https://static.hosting.com/kb/kb-email-gmail-email-address.png)

7. Click **Import emails from my other account (POP3)**, and then click **Next**:\
   ![](https://static.hosting.com/kb/kb-gmail-import-emails-pop3.png)

8. In the **Username** text box, type the full e-mail address of the Mochahost account (for example, [*gmail@example.com*](mailto:_gmail@example.com_) ):\
   ![](https://static.hosting.com/kb/kb-gmail-mail-settings.png)

9. In the **Password** text box, type the password for the Mochahost account.

10. In the **POP Server** text box, type *mail.example.com*, where ***example.com*** represents your domain name.

11. In the **Port** list box, select **995**.

12. If you want to keep copies of messages on the Mochahost server, select the **Leave a copy of retrieved message on the server** check box.

    > 📘 Note
    >
    > If you do not select this option, Gmail will download messages and automatically remove them from the Mochahost account.

13. Select the **Always use a secure connection (SSL) when retrieving mail** check box.

14. If you want to apply a label to messages, select the **Label incoming messages** check box and select a label.

15. If you want to automatically archive new messages, select the **Archive incoming messages (Skip the Inbox)** check box.

16. Click **Add Account**. You should receive a **Your mail account has been added** message. If you do not receive this message, verify the information you provided in steps 6 to 11, and then try again.

17. You can now retrieve messages from the Mochahost account.

    * If you want to be able to send messages for the account from Gmail, click **Yes** and go to the next step.

    * If you do not want to send messages for the account from Gmail, click **No**, click **Finish**, and then you are done.

      ![](https://static.hosting.com/kb/kb-gmail-send-option.png)

18. If you selected **Yes** in the previous step, you must configure the outgoing mail server settings. Click **Next**.

19. In the **Add another email address you own** dialog box, in the **Name** text box, type the name you want to appear on messages that you send from the account:\
    ![](https://static.hosting.com/kb/kb-gmail-send-name.png)

20. If you want to treat the account as an alias, select the **Treat as an alias** check box.

    > 👍 Tip
    >
    > For detailed information about what this option does, please see [https://support.google.com/a/answer/1710338](https://support.google.com/a/answer/1710338).

21. To specify a different reply-to address, type it in the **Reply-to address** text box.

22. Click **Next Step**.

23. In the **SMTP Server** text box, type *mail.example.com*, where ***example.com*** represents your domain name:\
    ![](https://static.hosting.com/kb/kb-gmail-smtp-server.png)

24. In the **Port** list box, select **465**.

25. In the **Username** text box, type the full e-mail address of the Mochahost account (for example, [*gmail@example.com*](mailto:_gmail@example.com_) ).

26. In the **Password** text box, type the password for the Mochahost account.

27. Select the **Secured connection using SSL** option.

28. Click **Add Account**. You should receive a confirmation message:\
    ![](https://static.hosting.com/kb/kb-gmail-success-verification.png)

29. Check the inbox of the Mochahost account (for example, [*gmail@example.com*](mailto:_gmail@example.com_) ). There should be a message from Gmail that resembles the following:\
    ![](https://static.hosting.com/kb/kb-gmail-sample-verification-email.png)

30. In your web browser, go to the link shown in the message. The following message appears:\
    ![](https://static.hosting.com/kb/kb-gmail-verification-1.png)

31. Click **Confirm**. The following confirmation message appears:\
    ![](https://static.hosting.com/kb/kb-gmail-verification-2.png)

32. You are now ready to send email for your Mochahost account through Gmail. To do this, when you compose a message select the correct identity in the **From** list box:\
    ![](https://static.hosting.com/kb/kb-gmail-sender-identity.png)
