1and1 域名、Heroku 托管 - 如何设置电子邮件?
我刚刚从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这更多的是一个超级用户的问题。
简而言之,如果您拥有该域,则可以在任何您想要的地方运行邮件 - 只需将 MX DNS 记录设置为指向您想要为您处理邮件的任何服务器即可。不过,一般来说,您不想运行邮件,因为这是一个非常令人头疼的问题,并且它伴随着您可能不想承担的责任(正如您在 Stack Overflow 上提出的问题所证明的那样,而不是超级用户或服务器故障) 。所以实际上你有两个选择:
我不推荐#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:
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.