com2 Posted March 7, 2020 Share Posted March 7, 2020 (edited) It is the first time I managed to set up with a normal gmail account. I just share here my settings in the hope that it might help somebody. Preparations: Sign up with some VPN service close to your server location or create your own on the same server. Build up the VPN connection Log-in to the Gmail account you want to use for WHMCS Go to https://myaccount.google.com/lesssecureapps Set to Yes to allow less secure apps Go to https://accounts.google.com/displayunlockcaptcha Click continue Go to https://clientes.comunica2.net/admin/configgeneral.php?tab=5 Set Mail Type SMTP Mail Encoding 8bits SMTP Port 587 SMTP Host tls://smtp.gmail.com SMTP Username <your gmail address> SMTP Password <your gmail password> SMTP SSL Type TLS Now send a test message using a test account. It worked. Why I used VPN? Because Google checks where you are logging in. When the location changes it locks the service and it will stop your WHMCS notifications going out to your clients. I read the issue in another community post and I experienced it myself and therefore stopped using Gmail. I now created a totally seperate Gmail account that I won't use for anything else but SMTP. In the Gmail settings I forward all email to my own domain address. Whenever I need to do something with that account I will have to access it with the same VPN connection not to trigger Google's GeoIP intrusion detection. Question: The https://accounts.google.com/displayunlockcaptcha step, is one time sufficient? Will I need to repeat it? How long is it valid? When I later go back there it still asks the same question, it is not a setting really. Someone can share their experience please? Edited March 7, 2020 by com2 0 Quote Link to comment Share on other sites More sharing options...
com2 Posted March 7, 2020 Author Share Posted March 7, 2020 (edited) After logging out from the Gmail account it directly stopped working. This is still not a solution. Any one knows how to improve this? Edited March 7, 2020 by com2 0 Quote Link to comment Share on other sites More sharing options...
com2 Posted March 7, 2020 Author Share Posted March 7, 2020 Another possible piece in this puzzle. The used VPN server's IP addresses (IPv4) might be considered in different location than my server. I reported the IP addresses and true location of both to https://support.google.com/websearch/contact/ip where possible errors can be reported. The best way though it to create your own VPN service on the same server as your WHMCS. From then on Gmail will see you always in the exact same location. 0 Quote Link to comment Share on other sites More sharing options...
Faizal1 Posted March 7, 2020 Share Posted March 7, 2020 You don't need to use vpn or anything. It will stop working because you need to create and use a App Password and then use that only or else it will keep blocking you. See here: https://support.google.com/accounts/answer/185833?hl=en 0 Quote Link to comment Share on other sites More sharing options...
com2 Posted March 8, 2020 Author Share Posted March 8, 2020 I can confirm. I never saw the App password setting because I had no 2-Step authentication activated. Thanks for the link where it is explained clearly. 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.