如何在Digitial ocean/AWS/GCP中运行Express App并使用来自cpanel(webmail)的mailservice [英] How to run an express App in Digitial ocean/AWS/GCP and use mailservice from cpanel(webmail)

查看:189
本文介绍了如何在Digitial ocean/AWS/GCP中运行Express App并使用来自cpanel(webmail)的mailservice的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的方案是在没有cpanel的云平台上运行我的服务器,我拥有的是另一种具有cpanel支持的普通共享托管服务.有什么方法可以在云中运行网站并使用共享托管提供商提供的网络邮件服务来获取我的域名?如果有的话,任何人都可以解释一下该怎么做,因为我不想花钱来设置gsuite类的服务. 预先感谢

My scenario is am running my server in cloud platform which doesn't have cpanel, what I have is another normal shared hosting service with cpanel support . is there any way to run the site in cloud and use the webmail service provided by shared hosting provider for my domain name? if there is anyway can anyone please explain how to do this as I don't want to shell out money to setup gsuite kind of service. Thanks in advance

推荐答案

最后,我通过对Google的研究自行弄清了这一点.

finally, I figured it out on my own with some research in google.

  • 1)在您的计算机中添加新的A记录(如果可能/允许添加名称@) 共享/托管/面板服务,并将其指向您的云提供商 IP(运行您的应用程序的IP).
  • 2)添加另一个名称为www的A记录,并将其指向您的IP 在云端运行的服务.
  • 3)删除名为mail的CNAME记录.
  • 4)添加带有邮件名称的新A记录并将其指向您的cpanel/ 网络邮件服务提供商IP.
  • 5)添加MX记录并将其指向目标mail.yoursitename.tld,然后 将优先级设置为0
  • 1) Add new A record ( if possible/allowed add with name @ ) in your shared/hosting/cpanel service, and point it to your cloud providers IP(the IP on which your app is running).
  • 2) Add another A record with name www and point it to the IP of your service running in the cloud.
  • 3) Delete the CNAME record called mail.
  • 4)Add new A record with name mail and point it to your cpanel / webmail service providers IP.
  • 5)Add MX record and point it to destination mail.yoursitename.tld and set the priority as 0

至此,您将能够发送邮件.

  • 6)添加SPF记录(TXT记录)或转到身份验证设置" cpanel中的电子邮件"部分并启用SPF.

  • 6) Add SPF record ( TXT record ) or go to Authentication settings in the Email section in your cpanel and enable SPF.

7)转到cpanel中电子邮件"部分的电子邮件路由",然后选择 您的域,然后在配置电子邮件"下选择本地邮件交换器" 路由.就这样,您现在也可以接收电子邮件.

7)Go to Email Routing in the Email section in your cpanel and select your domain then choose Local Mail Exchanger under Configure Email Routing. That's it now you will be able to receive emails also.

这些是我要使其正常运行所要遵循的步骤,我的应用程序托管在GCP中,并且正在使用cpanel-webmail(Hostgator)提供的邮件服务.

These were the steps I followed to make it work, my app is hosted in GCP and I am using the mail service provided by cpanel-webmail(Hostgator).

此链接对我的初始步骤很有帮助,(用户jtittle1的回答) https://www.digitalocean.com/community/questions/how-to-solve-emails-problems-after-site-is-migrated-to-digital-ocean

This link helped me a lot to figure out the initial steps ,( Answer by the user jtittle1 ) https://www.digitalocean.com/community/questions/how-to-solve-emails-problems-after-site-is-migrated-to-digital-ocean

这篇关于如何在Digitial ocean/AWS/GCP中运行Express App并使用来自cpanel(webmail)的mailservice的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆