0

We have just setup a brand new Google Cloud Hosting account and installed a WP website on it.

We aren't using Gmail on it, as we want to connect outgoing mail via SMTP to our external Server.

When we do this on a non GCH account, it works. But on it, it fails. It times out.

So is this because GCH simply refuses to let you use an external one? In which case - why would it do that?

If not, and we are forced to use Gmail, then how do we set that up? We tried twice and failed.

  • Perhaps: cloud.google.com/compute/docs/tutorials/sending-mail "Note: Port 25 is always blocked and can't be used, even through an SMTP relay using G Suite." – ceejayoz Nov 21 '19 at 20:25
  • You will need an SMTP service that works on a port other than 25, and a Wordpress plugin that enables SMTP for email delivery. – Tim Nov 21 '19 at 21:19
0

By default, Compute Engine allows outbound connections on all ports but port 25,so if you need to send an email from the instance you have to use port 465 or 587.

GCP explecitely recomends using other third-party tools such as SendGrid, Mailgun, and Mailjet because they offer a free tier package, you can skip all that and connect your instance to Gmail SMTP Relay Service. You will need a Google Account to connect (gmail or Gsuite).

Instructions to configure the Google Account are HERE , I tested sending emails from my MySQL server and Debian 9

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.