From owner-freebsd-questions Mon Sep 28 14:45:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA02700 for freebsd-questions-outgoing; Mon, 28 Sep 1998 14:45:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA02694 for ; Mon, 28 Sep 1998 14:45:14 -0700 (PDT) (envelope-from Studded@dal.net) Received: from dal.net (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id OAA04995; Mon, 28 Sep 1998 14:45:01 -0700 (PDT) (envelope-from Studded@dal.net) Message-ID: <3610035C.E8D38B87@dal.net> Date: Mon, 28 Sep 1998 14:45:00 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 2.2.7-STABLE-0920 i386) MIME-Version: 1.0 To: sbirdy CC: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail problem with DNS & mail server in same machine References: <360F4744.D72022A7@netvigator.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG sbirdy wrote: > > Dear sir, > I intened to build small lan connected to internet with a dns > server also serve as email.after setup, everything is ok except when > sendmail.e.g when I send mail with "user@domain.name. error display > somethings like "error 544: mx point back to ns1.test.com. unknown > host "test.com". I suspect that you are really looking at two seperate errors. First, make sure that you have set up your sendmail to receive mail from all the hostnames that you want it to. You should have entries that look like this in your sendmail.cf file, or the appropriate hostnames in your sendmail.cw file if you use that instead: Cwtest.com Cwns1.test.com etc. BTW, DON'T use test.com, it's a real domain. Once you get your box connected to the internet having entries like this lying about can be a problem. I don't have the RFC with the "safe" test names handy, but I think that example.com should be safe. The second problem is that you don't have an A record for your test.com domain. This is a problem sometimes. > but,if I send to addr. user@hostname.domainname. > everything become fine. this is my /etc/namedb/db.test.com file, > ( BIND ver 4.9.6 in freebsd 2.2.5) > > @ IN SOA ns1.test.com. billy.ns1.test.com. ( > 980528 ; Serial > 10800 ; Refresh after 3 hours > 3600 ; Retry after 1 hour > 604800 ; Expire after 1 week > 86400 ) ; Minimum TTL of 1 day > > IN NS ns1.test.com. > IN MX 0 ns1.test.com. Don't use 0 as the priority for an MX record, it hoses some MTA's. Use 1 instead. Add the following: IN A 127.0.0.1 ns1 IN A 127.0.0.1 That should fix you up, unless something else is broken. Good luck, Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message