本文介绍了如何从具有相同名称的网络服务器(使用sendmail)向我的Google Apps邮件服务器发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的域的邮件由google apps服务处理,所有必需的DNS MX记录均已正确输入.我也有处理域的HTTP请求的Web服务器.而且我无法将邮件从该服务器发送到我的邮件域,sendmail会忽略MX记录,并始终尝试在本地为我的域传递所有邮件.

Mail for my domain is handled by google apps service, all required DNS MX records entered correctly. Also I have webserver that handles HTTP requests for the domain. And I can't send mail from that server to my mail domain, sendmail ignores MX records and always trying to deliver all messages for my domain locally.

如果它解析为本地IP地址,则好像会将域名视为本地.

Looks like it consider domain name as local if it resolves to local ip address.

这是从日志中截取的:

Feb  7 18:03:03 vds sendmail[4100]: n17I33c2004100: [email protected]... User unknown
Feb  7 18:03:03 vds sendmail[4100]: n17I33c2004100: [email protected], delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Feb  7 18:03:03 vds sendmail[4100]: n17I33c2004100: from=root, size=36, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost

推荐答案

好.找到了适合我的情况的解决方案.

Well. Found a solution for my case.

只需将以下行添加到源.mc文件中,然后重新创建sendmail.cf

Just add the following line to your source .mc-file and recreate sendmail.cf

define(`confDONT_PROBE_INTERFACES', `true')

这篇关于如何从具有相同名称的网络服务器(使用sendmail)向我的Google Apps邮件服务器发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 18:10