snake Posted February 9 Share Posted February 9 I have switched to a new domain and am having issues connecting to Gmail. On the old domain I was using an app password, which was working fine. But on the new domain it won't work, just says "The Mail Import test failed: last request failed: [AUTH] Username and password not accepted." I have reset it many times, same issue. The app password is correct. So I tried setting up Oauth, but the docs seem to be outdated, as the setup is more complex now and you have to setup more scopes. I added the scopes mentioned in the docs as well as the gmail API related scopes as well. But this also will not connect. The Mail Import test failed: Unauthorized. Error: invalid_client. I setup the Google Cloud project using my workspace admin account, as opposed to the support@ USER that is being used for whmcs tickets. I also added the support@ user as owner of the project in case that was an issue, still same error. any help appreciated. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted Tuesday at 02:18 PM WHMCS Support Manager Share Posted Tuesday at 02:18 PM Hi @snake, Google no-longer permits the use of basic password authentication or app passwords. So you will need to use OAuth2 to import emails. For more information please see: https://help.whmcs.com/m/troubleshooting/l/1938069-troubleshooting-a-last-request-failed-auth-username-and-password-not-accepted-error-with-gmail An invalid_client error typically has two potential causes: 1. The Client ID is invalid. Correct the Client ID value entered into the WHMCS Mail Provider configuration modal and click the Connect button again. Ensure the OAuth credentials are correctly created per this guide: https://docs.whmcs.com/support/support-tutorials/set-up-email-importing-google/ The scopes you need are: userinfo.email userinfo.profile openid 2. The Callback URL has not been entered into the "Authorized redirect URIs" section in the Google Application on the Google Cloud Developer site. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.