No Such User Here VPN/WHM with Mail Routed through Separate Server

寵の児 提交于 2020-01-07 08:38:09

问题


Ok, I am using a VPN on GoDaddy for webhosting. But on one of the websites that I am hosting, the email is handled on a separate VPN.

So I have an A record for domain.com set to the GoDaddy VPN and an A record for mail.domain.com set to the IP of the other domain and several CNAMES pointed to that A record. It's all working beautifully except for one thing....

Email from other domains on the GoDaddy VPN cannot send to this domain. So myemail@mydomain.com cannot send to email@separateemailvpn.com

I get error "No Such User Here" from my server.

I understand that the GoDaddy VPN is checking for that user locally and not finding it, but I don't know how to make it NOT check for this domain.

I am using WHM/cPanel with Exim and SpamAsassin. Thanks!


回答1:


Not sure what the deal is with the downvotes, but here was my solution (probably obvious).

From Linux Terminal:

sudo su                     (for admin rights)
nano /etc/localdomains      (erase domain from local domains)
nano /etc/remotedomains     (add domain to remote domains)

Now it doesn't check that domain for users locally before it sends it out to the remote server.




回答2:


Changing the mail exchanger on the server is relatively easy from WHM too. In WHM left menu, navigate to "DNS Functions >> Edit MX Entry". From there, simply select the domain name you wish to edit, and then select the desired mail exchanger to change the mail routing settings for the domain.

The options are Auto, Local Mail Exchanger, Backup Mail Exchanger, or Remote Mail Exchanger. Set to "Remote Mail Exchanger" and click Save to have WHM update the /etc/localdomains and /etc/remotedomains for you.



来源:https://stackoverflow.com/questions/29786719/no-such-user-here-vpn-whm-with-mail-routed-through-separate-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!