Do you use your main credentials or custom password only for 3rd party app? Afaik for google mail to give access to 3rd party apps you have to create unique password
I use the main at the moment. Not sure how to add 3rd party app passwords to google. I did all possible changes on dedicated server and I still get SMTP connect failed.