1and1 域名、Heroku 托管 - 如何设置电子邮件?

发布于 2024-11-28 12:56:32 字数 235 浏览 1 评论 0原文

我刚刚从 1and1 购买了一个域名,并将 cname 设置为指向我在 heroku 上的应用程序。不过,我想要一封电子邮件[电子邮件受保护]。我需要通过 1and1 或 heroku 执行此操作吗?我该如何操作?

I just purchased a domain name from 1and1 and set the cname to point to my app on heroku. However, I want to have an email [email protected]. Do I need to do this via 1and1 or heroku, and how do I go about it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝眸 2024-12-05 12:56:32

这更多的是一个超级用户的问题。

简而言之,如果您拥有该域,则可以在任何您想要的地方运行邮件 - 只需将 MX DNS 记录设置为指向您想要为您处理邮件的任何服务器即可。不过,一般来说,您不想运行邮件,因为这是一个非常令人头疼的问题,并且它伴随着您可能不想承担的责任(正如您在 Stack Overflow 上提出的问题所证明的那样,而不是超级用户或服务器故障) 。所以实际上你有两个选择:

  1. 自己运行邮件
  2. 让其他人为你运行邮件

我不推荐#1,但如果你愿意,我认为在 1 和 1 上运行邮件会更幸运。我有一个朋友在更换提供商之前在 1and1 上的 VPS 上运行邮件大约四年了。因此,如果这就是您想要做的,请阅读 Postfix 并将其安装在 1and1 上,将您的 MX 设置为指向那个服务器。

在我看来,你不能在 Heroku 上运行邮件,但我远不是这方面的专家。

我推荐的选项#2 是让其他人来处理它。例如,Google Apps 会执行此操作,并且如果您作为非营利组织,您可以免费获得它。这就是免费的 Gmail,我认为它是我自己提供的邮件类型的升级版。我还遇到了这个 SendGrid 服务,它似乎有 与 Heroku 上的 Rails 应用程序集成的详细(虽然很长)说明

This is more of a Super User question.

The nutshell answer is that if you own the domain, you can run mail wherever you want—just set the MX DNS record to point at whatever server you want to handle mail for you. In general, though, you don't want to run mail, because it's a huge headache and it comes with responsibilities you probably don't want to have (as evidenced by your asking this on Stack Overflow, not Super User or Server Fault). So really you have two options:

  1. Run mail yourself
  2. Let someone else run mail for you

I don't recommend #1, but if you want to, I think you'll have more luck running it on 1and1. I have a friend who ran mail on his VPS on 1and1 for about four years before switching providers. So if that's what you want to do, read up on Postfix and install it on 1and1, set your MX to point to that server.

It doesn't look to me like you can run mail on Heroku, but I'm far from an expert on that.

Option #2, which I recommend, is to let someone else deal with it. For example, Google Apps will do this, and if you're a non-profit, you can get it for free. That's free Gmail, which I consider an upgrade from the kind of mail I can provide myself. I also ran into this SendGrid service, which seems to have detailed (albeit long) instructions for integrating with a Rails app on Heroku.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文