情况:
电子邮件MX服务在example.com上,但使用谷歌邮件服务。域(web服务)与google邮件服务在VPS主机上和在相同域名example.com上的IP地址不同。
主机example.com
example.com has address xxx.xxx.xxx.xxx <--- VPS server, WEB service
example.com mail is handled by 5 alt2.aspmx.l.google.com.
example.com mail is handled by 1 aspmx.l.google.com.
example.com mail is handled by 5 alt1.aspmx.l.google.com.
example.com mail is handled by 10 aspmx3.googlemail.com.
example.com mail is handled by 10 aspmx2.googlemail.com.主机-t mx example.com
example.com mail is handled by 5 alt2.aspmx.l.google.com.
example.com mail is handled by 1 aspmx.l.google.com.
example.com mail is handled by 5 alt1.aspmx.l.google.com.
example.com mail is handled by 10 aspmx3.googlemail.com.
example.com mail is handled by 10 aspmx2.googlemail.com.在同一个域example.com上,我们使用的是MX服务、谷歌邮件服务。
问题:在VPS服务器example.com has address xxx.xxx.xxx.xxx上,VPS服务器不能将电子邮件作为同一个域发送到另一个something@example.com。
我想要什么?使用邮件服务MX从谷歌电子邮件和VPS从另一个IP地址。
并挖掘-t example.com
;<<>> DiG 9.9.2-P1 <<>> example.com ;;全局选项:+cmd;>头<->标题<- opcode:查询,状态: NOERROR,id: 8318;标志: qr rd ra;查询: 1,答案: 1,权限: 0,附加:1 ;;OPT PSEUDOSECTION:;EDNS: version: 0,标志:;udp: 512;问题部分:;example.com。在A ;;回答部分: example.com。7200 IN a xxx.xxx ;;查询时间: 208毫秒;;服务器: 127.0.1.1#53(127.0.1.1);时间: Sun Jul 7 13:25:21 2013;MSG大小rcvd: 52
从google服务发送邮件可以发送给所有人。从VPS服务器发送邮件可以发送到除example.com之外的所有邮件。
提示: CentOS使用具有完整VPS访问权限的Plesk服务。什么是最好的解决方案工作邮件服务在这两种情况下,可以VPS发送邮件服务在同一个域?
发布于 2013-07-07 23:28:16
使用SMTP连接另一个主机和PHPMailer解决了问题。
https://serverfault.com/questions/521398
复制相似问题