1and1域,Heroku托管-如何设置电子邮件? [英] 1and1 domain, Heroku hosting - how to set up email?

查看:93
本文介绍了1and1域,Heroku托管-如何设置电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚从1and1购买了一个域名,并将cname设置为指向我在heroku上的应用程序.但是,我想发送电子邮件至support@mydomain.com.我需要通过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 support@mydomain.com. Do I need to do this via 1and1 or heroku, and how do I go about it?

推荐答案

这更多是关于超级用户的问题.

This is more of a Super User question.

简而言之,就是如果您拥有该域,则可以在任意位置运行邮件-只需将MX DNS记录设置为指向要为您处理邮件的任何服务器即可.但是,总的来说,您不希望运行邮件,因为这是一个令人头疼的问题,并且它附带了您可能不希望承担的职责(如您在Stack Overflow上问的那样,而不是Super User或Server Fault证明了这一点) .所以实际上您有两个选择:

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. 自己运行邮件
  2. 让其他人为您运行邮件

我不建议使用#1,但是如果您愿意,我认为在1and1上运行它会更有运气.我有一个朋友,他在1and1上的VPS上运行邮件大约四年,然后才更换提供商.因此,如果您要这样做,请阅读 Postfix 并将其安装在1and1上,将MX设置为指向该服务器.

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.

在我看来,您不能在Heroku上运行邮件,但是我离这方面的专家还很远.

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

选项2是让其他人处理.例如, Google Apps 会执行此操作,如果您如果是非营利组织,则可以免费获得.那是免费的Gmail,我认为是我可以自己提供的那种邮件的升级.我还遇到了这个 SendGrid 服务,该服务似乎具有

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.

这篇关于1and1域,Heroku托管-如何设置电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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