Set up Gmail as an Email Server

This topic describes how to set up Gmail as an email server in Yeastar P-Series PBX System.

Prerequisites

Make sure Yeastar P-Series PBX System can access Google Server.

Step1. Create an app password on Google Account

To ensure that the PBX can access Gmail server, you need to turn on 2-Step verification and create an app password as follows.

  1. Sign in to Google Account by your Gmail account.
  2. On the left navigation bar, click Security.
  3. Turn on 2-Step Verification.
    1. In the Signing in to Google section, click 2-Step Verification and enter your Gmail password to verify your account.
    2. On the 2-Step Verification page, click GET STARTED and enter your Gmail password to verify your account.
    3. Select a verification method, verify your account according to the prompt.
    4. Click TURN ON to turn on 2-step verification.

  4. Right above the page, click to back to the security page.
  5. Create an app password.
    1. In the Signing in to Google section, click App passwords and enter your Gmail password to verify your account.
    2. In the Select app drop-down list, select Other (Custom name).
    3. In the text field, enter a name to help you identify the app password. For example, enter Yeastar PBX.
    4. Click GENERATE.

    An app password is generated. Note down the password, which is used to verify your Gmail account when you configure Gmail as the mail server in the PBX.

Step2. Configure Gmail as mail server of Yeastar P-Series PBX System

To ensure that the PBX can access Gmail server via your Google account, you need to proceed as follows:

  1. Log in to PBX web portal, go to System > Email > Email Server.
  2. In the Type of Email Server drop-down list, select Custom Email Server.
  3. Configure email server settings.
    • Sender Email Address: Enter your Gmail address, which will appear as the From address for outgoing emails sent by the PBX.
    • Email Address or Username: Enter your Gmail address.
    • Password: Enter the 16-digit app password, which is used to access Gmail server.
    • Outgoing Mail Server (SMTP): Retain the default value smtp.gmail.com.
    • Port: Retain the default value 587.
    • Enable TLS Encryption: Keep the option unselected.
  4. Test if the mail server can successfully send emails.
    1. Click Test.
    2. In the pop-up window, enter a recipient's email address in the Email Address field.
    3. Click Test.
  5. Click Save.

Result

  • If the test email is sent successfully, the page displays "Success" and the recipient's mailbox would receive the email.
  • If the test email is failed to be sent, the page displays "Failed to send" and prompts you an error message. You can check the error in Email Sent Logs.