Problem with outgoing emails with google cloud

I have deployed discourse on google cloud using Bitnami. But I am unable to configure outgoing emails on it.

When we send a test email. It shows please check your settings.

Bitnami installs aren’t supported here.

Spin up a new server and follow the official install guide: discourse/ at master · discourse/discourse · GitHub