如何从其他服务器的电子邮件接收电子邮件?

如何从其他服务器的电子邮件接收电子邮件?

问题描述:

I'm building a simple email application and I already have everything almost done, the issue I've so far is that I cannot receive emails from other domains. To explain it:

  1. I've my domain: domain.tld

  2. I want to be able to manage @domain.tld, @anotherdomain.tld (in another server), @thirddomain.tld (in a different server).

  3. My email applications works just fine with @domain.tld accounts, I can create them, send emails and receive them with no issues. My problems comes when I try to use accounts using any of the other two domains, I'm able to send emails with those accounts just fine, the issue appears when I try to receive them, I always get a "no user found" or something like it, I already changed the MX records for those domains and set the response as mail.domain.tld; however, it's not working.

I'm using CPanel btw.

Thanks a lot!

我正在构建一个简单的电子邮件应用程序,我已经完成了一切,我到目前为止的问题是 我无法接收来自其他域的电子邮件。 解释一下: p>

  1. 我的域名:domain.tld p> li>

  2. 我想要的 能够管理@ domain.tld,@ anotherdomain.tld(在另一个服务器中),@ thirddomain.tld(在不同的服务器中)。 p> li>

  3. 我的电子邮件应用程序 使用@ domain.tld帐户可以正常工作,我可以创建它们,发送电子邮件并毫无问题地接收它们。 当我尝试使用其他两个域中的任何一个使用帐户时,我的问题就出现了,我能够发送电子邮件与这些帐户就好了,当我尝试接收它们时出现问题,我总是得到“没有找到用户”或 类似的东西,我已经更改了这些域的MX记录,并将响应设置为mail.domain.tld; 然而,它无法正常工作。 p> li> ol>

    我正在使用CPanel btw。 p>

    非常感谢! div>

If the code is working for one of the domains but not the other two, I'd guess that the propagation hasn't completed yet (if you have indeed changed to MX records). Remember not all the TTL's have the same time, therefore you might need to wait a little longer for the other two domains to propagate. What I would first of all do is check exactly where those domains point to. try this tool to find out where the domain is currently pointing to: http://mxtoolbox.com/