sendmail不会将电子邮件发送到特定的域名电子邮件地址

我们有Ubuntu的12.04服务器,并安装了sendmail从这个服务器发送邮件。

问题:

邮件服务器上有一些奇怪的问题。 不知何故,服务器无法发送电子邮件至[email protected]

但服务器会成功发送电子邮件到其他电子邮件ID,如[email protected][email protected][email protected]

成功案例:发送电子邮件至[email protected]

 Dec 28 11:40:49 ip-10-99-66-252 sm-mta[16954]: qBSBemdx016952: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120352, relay=aspmx.l.google.com. [74.125.131.27], dsn=2.0.0, stat=Sent (OK 1356694874 d3si34930711vdv.119) Dec 28 11:51:43 ip-10-99-66-252 sendmail[16960]: qBSBphki016960: from=www-data, size=89, class=0, nrcpts=1, msgid=<[email protected]>, relay=www-data@localhost 

失败案例:发送电子邮件到[email protected]

 Dec 28 11:51:43 ip-10-99-66-252 sm-mta[16962]: qBSBphSo016962: <[email protected]>... User unknown Dec 28 11:51:43 ip-10-99-66-252 sendmail[16960]: qBSBphki016960: [email protected], ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30089, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown 

有人可以帮忙解决这个问题吗?

编辑:我已经从服务器删除sendmail并重新安装它。 现在,当我将邮件发送到[email protected]时,我正在使用mail.log

 Dec 29 09:34:32 ip-10-99-66-252 sm-mta[1773]: qBT9YWGZ001771: to=<[email protected]>, ctladdr=<[email protected]> (33/33), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120393, relay=mx.ayolla.com. [66.96.142.51], dsn=5.0.0, stat=Service unavailable 

注:我不想公开我们的电子邮件,这就是为什么我用原来的电子邮件地址replacexxx到这个问题。

重新安装sendmail后,configuration已经改变。 之前,它试图通过自己来为这个域中继邮件。 ( relay=[127.0.0.1] [127.0.0.1] )ie您的邮件服务器正在询问自己发送邮件。

现在,正确地执行MX查找并尝试通过邮件服务器发送ayolla.comrelay=mx.ayolla.com. [66.96.142.51] )。

麻烦似乎是它不能连接到66.96.142.51 。 (或者大概另外两个: 66.96.142.5066.96.142.52 。)

尝试telnet 66.96.142.51 25从您的服务器,看看你是否可以连接。 即时失败或超时意味着networking路由不正确或防火墙不允许此stream量。 如果你确定它不是你的最后,那一定是在他们的最后。