How to Generate APP Password for Gmail Account usage in Yeastar

As the security of Google's email account is gradually improved, some clients may not be able to directly create a Google account even if you have checked a lot of possible failure reasons. In fact, many applications have enabled 2-step verification function to enhance security performance, such as having to enter the code in SMS or verification code in email again then you will be able to log into its server, but for mail clients such as pbx or outlook that cannot use 2-step verification function, you might have to try Google's APP password in system email setup.

Reference: https://support.google.com/accounts/answer/185833?hl=en

mceclip16.png

Below debug log in SSH shows authentication failure even you use correct password for your gmail id.

mceclip0.png

Below steps are shown how to enable 2-step verification and then generate APP password for gmail email id becase only have enabled 2-step verification function for your gmail id then you will be able to generate APP password.

Step1. Launch google website and click on 'Sign in' on right up corner.

mceclip0.png

Step2. Input your google account mail id then click on 'Next'.

mceclip1.png

Step3. Input password for your google account and click on 'Next'.

mceclip2.png

Step4. Click on avatar on right up corner then click on 'Google Account'.

mceclip21.png

Step5. Choose 'Security' tab then click on '2-Step Verification'.

mceclip1.png

Step6. Click on 'GET STARTED'.

mceclip2.png

Step7. Input password for your google account then click on 'Next'.

 mceclip3.png

Step8. Choose your country, input your mobile phone number, choose 'Text message' then click on 'Next'. Your phone will receive one SMS with 6-digit verification code.

mceclip4.png

Step9. Input the code then click on 'Next'.

mceclip5.png

Step10. Click on 'TURN ON' to turn on 2-step verification.

mceclip6.png

 

Step11. You will see 2-step verification is on then rolling to the bottom of page and click on 'App passwords'.

 

Step12.Input the name and create the APP password

 

Step13. You will see 16-character app password generated and you have to enter it in system email setup in pbx first then click on 'DONE' because you won't see the password again after clicking on 'DONE'.

mceclip17.png

Step14. Save email configurations in pbx and test again.

mceclip15.png

Step15. After testing it successfully, click on 'DONE' in step13 then you will see the device you have added and in security tab in google account you will see one app password you have generated for 'Yeastar-IPPBX' device.

 

Step16. If you need to set up gmail email in some more PBXS, you can follow step12 to generate more app passwords.

 

Have more questions? Submit a request

3 Comments

  • 0
    Avatar

    This article also applies to the another error code- 535 which represent the authentication failure.

  • 0
    Avatar

    Please note if you change password for gmail account, app password will be removed and system email test will be failed, so the solution is go to step 12 and regenerate app password and replace the password in system email setup in PBX.

  • 0
    Avatar

    If you can't find two-factor authentication on the 'Security' tab, you can search through the search bar on the Google account settings page itself.

Please sign in to leave a comment.