Email Service to send and receive email in google compute engine - email

I'm new to google compute engine, i used dedicated server before where i get cpanel to configure email so i can send and receive but in google cloud it's not available. so how can i use email service in GCE please help

See the docs on sending email from GCE:
Google Compute Engine does not allow outbound connections on ports 25, 465, and 587 but you can still set up your instances to send mail through ports 587 and 465 using servers provided through partner services, such as SendGrid. This document discusses how to set up your instances to send email using SendGrid.
If you wish to send mail through a corporate mail server, you can use a VPN to bypass these restrictions. This would require running a VPN client on your Compute Engine node, and a VPN server on your corporate network router. This would allow your Compute Engine node to appear "inside" your corporate firewall, and allow unrestricted access to your corporate mail server. There are security implications for this configuration, and you should ensure that your Compute Engine node only has access to the services it requires, and nothing more.
SendGrid is a partner service that provides Google Compute Engine customers with a free or paid SendGrid account that you can use to send mail from Google Compute Engine instances. SendGrid offers a number of advantages:
free tier* to Google Compute Engine customers that includes 25,000 transactional email messages per month
Ability to send emails from addresses other than #gmail.com
No daily limit on the number of transactional email messages
The footnote on free* is:
Google will be compensated for customers who sign up for a non-free account.
See the document for details on how to sign up or set this up on your account.

Use email provider's API to send mail from Google Compute Engine. For that you need the end point url, and authentication key. This is easiest way as ports such as 25, 465 and 587 are blocked in Google Cloud.

You may use your email providers API to send email from GC to avoid

Related

Configure IMAP/SMTP on existing Server for existing Domain (Ubuntu 20.04)

I have a Server (DigitalOcean Droplet) with a domain/website hosted on it using LAMP. I want to add a webmail server, to be able to send e-mails through SMTP and receive e-mails to forward them to external IMAP clients.
I need to send e-mails for app/site notifications, I send e-mails through simple SMTP scripts. And I need to receive e-mails being sent to my email#domain.com to then forward them to external IMAP clients.
I want to configure it with the minimum requirements, cause I want to have it in the same server where I host my site and I don’t want it to consume too much memory/cpu.
Any recommendations?
I’ve seen this Postfix steps (https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-20-04) but I don’t know if it’s what I need.
I also believe that I need to configure some DNS records, such as MX, SPF, DMARC and DKIM. But these are not mentioned on above link.
Notes:
I do not own any e-mail hosting server, my intention is to create one with this. Is Postfix what I need?
I want to create e-mail accounts such as: noreply#domain.com, help#domain.com, sales#domain.com
I don’t want to control an external e-mail account, I want to host it here in this server.
Thanks in advance.

Sending mail using GCP on private network

More than a simple question-answer, this is more of a recommendation post. Want to see what ideas I have to work with. I am working on porting my company's work to the cloud (GCP) Most of this work is in the form of a pipeline. I'd like to notify completion via email.
The company I work for has a private network. And so the only way to use their mail config is to send it through their internet, and so, cannot use their SMTP-config from GCP.
What's the best way around this?
I'm looking into creating a VPN between GCP and our local network, however, that may not be possible (IT restrictions)
Do I have any other options?
EDIT
What an SMTP Relay work? This guy.
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

How can I encrypt the Node-RED email login?

I'm using Node-RED in IBM's Bluemix. There are nodes to get email in and send email out. However, the email credentials do not seem to be encrypted when sent over the internet. I'm a bit concerned about that. Is there a way to find email receive and email send nodes for Node-RD where they login to the email server using TLS (or SSL)?
If you configure the email nodes to point at SSL/TLS ports then they will connect via a secure channel.
Also I believe that if the mail servers support the STARTTLS command then they will upgrade the connection once connected.

How to set up email on Amazon EC2

I have domain. I have my website on an Amazon EC2 instance. I have pointed the domain there, so website is accessible with the domain now. all is working fine but I want to set up the email now, I should be able to create email id and manage emails.
Someone suggested Amazon SES to be set up, I did that but then what to do?
Any ideas greatly appreciated.
You don't want to run your email on EC2.
Amazon SES is for outgoing email only, i.e. it can replace your SMTP server, so for example if your website generates emails, you could use SES to send them out, but its not a full 'email' service in the traditional sense.
For normal email operations, you need to use an email provider such as gmail, outlook, rackspace email etc.
AWS also offers AWS Workmail as an option. I use both Rackspace email and outlook email for various domains that I have hosted on EC2 instances.
If you are accustomed to using a shared hosting service, i.e. discountasp.net where the web hosting and email is all bundled together as a single packaged service for you, you need to think of things differently when you start running and managing your own ec2 server instances. Its upto you to string the parts together.
Since you have hosted website on AWS EC2 and Domain name pointed to Instance. I would suggest that you use AWS WorkMail to send Email. This is new service which has been introduced. AWS WorkMail is available on US East (N. Virginia) and EU (Ireland) region. It is easy to configure and you can use your domain name to create email Ids, say info#domainname.com.
After configuration you will have your own console for where you can manage and access all your emails. To access emails AWS have own console similar to webmail.

How to configure email accounts like support#xyz.com or feedback#xyz.com on AWS

I registered my domain with godaddy.com. Want to use EC2 with SES to host my website on amazon web services.
On my website there would be few email accounts like support#xyz.com or feedback#xyz.com. How can I configure these email accounts on my SES server ( or my ec2 server ); so that I could receive any emails sent to these email addresses ( through some mail client like Outlook, Thunderbird)
This is the answer I received from the AWS team via the AWS forum:
Hello,
I'm sorry to say that SES doesn't handle inbound email today. We are
an outbound email delivery service only. However, you could (with some
effort) set up a postfix server and a POP3 server on an EC2 instance,
get a static IP bound to that EC2 instance, and list that on your MX
records. It is a bit more of a challenge than using gmail.com for
example, but it would provide you what are looking for.
Thanks, and please let me know if I can help further.
Paolo
You can sign your domain up for free Google Apps. During the setup, Google will direct you to modify your domain's MX records in Godaddy in order to receive mail. Then you can use AWS SES to send mail and mail will be received by your domain's Gmail user.