-1

This is the email header of one of our notification mails send through SMTP:

Received: from mgi74201.gutt.it (mgi74201.gutt.it. [5.9.63.186]) by mx.google.com with ESMTP id ABCD1234; Wed, 08 Aug 2012 09:36:18 -0700 (PDT) Received: from mgi74201.gutt.it (unknown [5.9.63.186]) (Authenticated sender: noreply@maxrev.de) by mgi74201.gutt.it (Postfix) with ESMTPA id ABCD1234 for <*@gmail.com>; Wed, 8 Aug 2012 18:35:55 +0200 (CEST)

As you can see google was able to check PTR:5.9.63.186 (resulting mgi74201.gutt.it.), but our own mail client results "unknown".

We've tested nslookup 5.9.63.186 and it results as expected:

Using username "abc". Authenticating with public key "abc" Last login: Wed Aug 8 19:31:01 2012 from 123.abc root@mgi74201:~# nslookup 5.9.63.186 Server: 8.8.4.4 Address:
8.8.4.4#53 Non-authoritative answer: 186.63.9.5.in-addr.arpa name = mgi74201.gutt.it. Authoritative answers can be found from: abc@mgi74201:~#

So why does the Reverse DNS not work? A postfix related problem?

EDIT: postfix results:

Aug 9 17:00:59 mgi74201 postfix/smtpd[19261]: warning: 5.9.63.186: address not listed for hostname mgi74201.gutt.it Aug 9 17:00:59 mgi74201 postfix/smtpd[19261]: connect from unknown[5.9.63.186]

But hosts file seems to be correct:

# 'hosts' file configuration. 

::ffff:5.9.63.186     mgi74201.gutt.it     mgi74201 
::1     ip6-localhost     ip6-loopback 
fe00::0     ip6-localnet 
ff00::0     ip6-mcastprefix 
ff02::1     ip6-allnodes 
ff02::2     ip6-allrouters 
ff02::3     ip6-allhosts 
127.0.0.1 localhost.localdomain localhost mgi74201.gutt.it.local 
# Auto-generated hostname. Please do not remove this comment. 
5.9.63.186 mgi74201.gutt.it  mgi74201
4

1 回答 1

1

尝试将hosts文件的最后一行移到第一个位置。效果应该是mgi74201.gutt.it将得到解决5.9.63.186而不是::ffff:5.9.63.186

或者,也许更好的是,为 IPv6 地址分配一个不同的主机名,就像ip6-localhost不同于localhost.

于 2012-08-10T13:33:49.630 回答