I've got a web server that sometimes sends out mail. Because of the configuration of my ISP, all servers inside my building will not resolve by external IP address so I had to set up a DNS server to resolve the servers that are internal (such as intranet.foo.com, mail.foo.com, and
www.foo.com)
The problem is that my web server is sending the mail but it's not getting there. The mail ends up staying local and this what I get:
<viniosity@foo.com>: Name service error for foo.com: Host found but no data
record of requested type
--0E70617E21.1063766702/voyager.eco
Content-Description: Delivery error report
Content-Type: message/delivery-status
Reporting-MTA: dns; voyager.eco
Arrival-Date: Tue, 16 Sep 2003 22:45:02 -0400 (EDT)
Final-Recipient: rfc822;
viniosity@foo.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Name service error for foo.com: Host found but
no data record of requested type
--0E70617E21.1063766702/voyager.eco
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: by voyager.eco (Postfix, from userid 1000)
id 0E70617E21; Tue, 16 Sep 2003 22:45:02 -0400 (EDT)
To:
viniosity@foo.com
Subject: testsubject
Message-Id: <20030917024502.0E70617E21@voyager.eco>
Date: Tue, 16 Sep 2003 22:45:02 -0400 (EDT)
From:
vw@eco.com (Vincent)
This is test mail
--0E70617E21.1063766702/voyager.eco--
Here is the zone file for foo.com on the eco.com server:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA foo.com. root.foo.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS foo.com.
1.0.0 IN PTR localhost.
IN MX 10 dns.mail.foo.com ; mail server
;
#www CNAME dns
ftp CNAME dns
#smtp CNAME dns
pop CNAME dns
proxy CNAME dns
news CNAME dns
;
mail A 192.168.1.8
www A 192.168.1.14
intranet A 192.168.1.237
;
mail.foo.com does resolve to 192.168.1.8 but as detailed above I get an error saying host found but no data record of requested type. Am I missing something in my zone file? Else, maybe something is wrong with the IN MX 10 dns.mail.foo.com line? Help!
TIA,