![我如何将网站指向另一个 IP,但将电子邮件保留在现有托管中?这样对吗?](https://linux22.com/image/750223/%E6%88%91%E5%A6%82%E4%BD%95%E5%B0%86%E7%BD%91%E7%AB%99%E6%8C%87%E5%90%91%E5%8F%A6%E4%B8%80%E4%B8%AA%20IP%EF%BC%8C%E4%BD%86%E5%B0%86%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E4%BF%9D%E7%95%99%E5%9C%A8%E7%8E%B0%E6%9C%89%E6%89%98%E7%AE%A1%E4%B8%AD%EF%BC%9F%E8%BF%99%E6%A0%B7%E5%AF%B9%E5%90%97%EF%BC%9F.png)
我如何将网站指向另一个 IP 但将电子邮件保留到现有托管?
网站必须指向 IP:202.51.74.81
电子邮件必须指向:202.63.240.138
我们使用以下方法来检查电子邮件:
- webmail.域名.com
- mail.domainname.com
- domainname.com/webmail
我已经做了以下事情。这会起作用吗?如果不行,那会怎样?谢谢。
domainname.com. 14400 IN A
202.51.74.81
domainname.com. 14400 IN MX
Priority: 0
Destination: domainname.com
mail.domainname.com. 14400 IN A
202.63.240.138
www.domainname.com. 14400 IN CNAME
domainname.com
ftp.domainname.com. 14400 IN A
202.63.240.138
domainname.com. 14400 IN TXT
v=spf1 ip4:202.63.240.138 +a +mx ~all
webmail.domainname.com. 14400 IN A
202.63.240.138
whm.domainname.com. 14400 IN A
202.63.240.138
cpcalendars.domainname.com. 14400 IN A
202.63.240.138
cpcontacts.domainname.com. 14400 IN A
202.63.240.138
cpanel.domainname.com. 14400 IN A
202.63.240.138
webdisk.domainname.com. 14400 IN A
202.63.240.138
default._domainkey.domainname.com. 14400 IN TXT
v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArRVrbgxh+ltKuFjtpVtbcwUvhADG2z5Ylr4fjq4LM4TaXp7TEoeD2i0ymjIwsFKMkwji4LhTq7rgdLghSJKi0WJkSQi6bGV//oLQrIh6TVht99UrLBzj90dVZ8hIptIx+y7nPbpojMxJZCobJfbeZ/kF5WtgLMe30Zemb/zZgBZPkQoltMsc0ebyEh/G1nVoaJcPEieFIsflYsCKHqlxT0BW1W8cAOMEzLJWFelym+PyZ+077gEcWcX+dxzfSPH3CeX80Pb6Gifa6qfU3hn45cLbx/3/WrKgXqeOKxRhIVmg3IK4iSByD3OdwLb8qTWv1iuZw/D8aYsvOMC3S+UndwIDAQAB;
答案1
否则可能没问题,但是您的MX
记录应该指向邮件服务器!
example.com. IN MX 0 mail.example.com.