Gmail SMTP with app configuration not working on Ghost

I am trying to configure Ghost Email with Gmail app password, but it is not working. I tried multiple ways, but always got an error. I also tried ports 465 and 587, but neither is working. My SMTP login credentials are working fine.

“mail”: {
“transport”: “SMTP”,
“options”: {
“host”: “smtp.gmail.com”,
“port”: “587”,
“secure”: true,
“auth”: {
“user”: “xxxx@gmail.com”,
“pass”: “xxxx xxxx xxxx xxxx”
}
}
},

“from”: “xxxx@gmail.com”,
“transport”: “SMTP”,
“options”: {
“service”: “Gmail”,
“host”: “smtp.gmail.com”,
“port”: “465”,
“secure”: true,
“auth”: {
“user”: “xxxx@gmail.com”,
“pass”: “xxxx xxxx xxxx xxxx”
}
}

Working example here:

But note the last paragraph. Could your host be blocking outbound email?