更改 DNS 时处理电子邮件
我正在更改域的 DNS 以指向新服务器。 处理此问题以确保过渡尽可能顺利进行的最佳方法是什么,特别是与电子邮件有关的过渡? 理想情况下,我希望他们当前的电子邮件不会丢失。 我相信他们目前只使用网络邮件。
谢谢!
I am changing the DNS of a domain to point to a new server. What is the best way to handle this to make sure the transition goes as smoothly as possible, specially pertaining to email? Ideally I would like their current emails to not be lost. I believe they are just using webmail at the moment.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有提供足够的信息来给您一个很好的答案,但这可能会有所帮助:
在邮件提供商之间移动邮箱并非易事。 如果您的所有用户都使用本地邮件客户端,那么他们只需在本地下载邮件,并且当 DNS 更改时他们不会注意到任何不同。 如果他们都使用网络邮件,您将需要运行一些脚本将他们的邮件移动到新的提供商。
如果您担心更改邮件服务器时会丢失收到的电子邮件,请不要担心! 发送邮件服务器将对邮件进行排队以便重新投递。 唯一的技巧是,您需要在添加新的 MX 记录之前清除旧的 MX 记录,并留出足够的时间让 TTL 过期。
T=0:从 DNS 中删除 MX 记录
T=1:在新邮件服务器上设置用户帐户和域配置
T=2:为新邮件服务器添加 MX 记录
You didn't provide enough information to give you a great answer, but this may help:
It is non-trivial to move mailboxes between mail providers. If all of your users used local mail clients, then they could just download the mail locally and they wouldn't notice anything different when the DNS changed. If they are all using webmail, you'll need to run some scripts to move their mail to the new provider.
If you're worried about losing incoming email when you change mail servers -- don't! The sending mail servers will queue mail for redelivery. The only trick is that you need to clear out the old MX records with enough time for your TTL to expire before adding the new MX records.
T=0: remove MX records from DNS
T=1: set up user accounts and domain configuration at new mail server
T=2: add MX records for new mail server
只要 MX(邮件交换)记录没有随处更新(可能需要很多天),当其他邮件直接发送到新服务器时,您仍然可以同时将邮件流量发送到旧服务器。 配置旧服务器以将其收到的所有邮件转发到新服务器,使用数字 IP 或验证旧服务器是否有权访问更新的 DNS 记录。
您如何进行邮件转发取决于您在旧邮件服务器上运行的邮件软件。
As long as the MX (mail exchange) records are not updated everywhere (could take many days), you can still get mail traffic to the old server at the same time when other mail goes directly to the new one. Configure the old server to forward all the mails it receives to the new server, either using numeric IP, or verifying that the old server has access to updated DNS records.
How you do mail forwarding depends on the mail software you run on the old mail server.