sending and receiving emails with GCP

0 votes
I'm moving to GCP from a shared hosting company. I merely needed to create a new email address in the directadmin panel and use squirrelmail to send and receive emails on the shared hosting because I have a domain name (domain.com).

The issue is that I am unsure of how to accomplish this on GCP.

I have updated the nameservers for the domain name at my hosting provider and added a new zone in the cloud DNS for the domain name (where the domain name is parked).

I'm now seeking for a solution that would allow me to use the domain name (connected to a VM) while still sending and receiving emails conveniently.

Can you recommend a (paid or free) option that isn't too complicated to setup and maintain? I had considered setting up a mailserver using postfix and postfixadmin, however GCP bans outgoing mail, so I must use a service like sendgrid or mailgun to send emails. Additionally, I must install postfix in order to receive emails. To be completely honest though, I've never done this before, and I can't seem to find any helpful tutorials online.

I tried using this instruction (https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailgun) to send emails using my mailgun account, but they are not delivered.

Is there a website or similar service that I can link my domain name to in order to send and receive emails? I attempted to find out more by searching for "external mail server" and I searched for "free mail server," but I came up empty-handed.
Nov 7, 2022 in GCP by Tejashwini
• 5,380 points
2,298 views

1 answer to this question.

0 votes

If you're still considering using Mailgun on GCP, make sure that you've set up a firewall rule to permit outbound traffic [1]. You might not be receiving the emails because of this step.
These setup instructions [2] may be helpful if you're looking for a reliable resource.
I've heard that you already use G Suite [3], in which case this option is excellent and will greatly simplify the process.

I hope this helps!

Check out our Google Cloud Certification program to learn more about GCP.

Thanks!

answered Nov 8, 2022 by Ashwini
• 5,430 points