From owner-freebsd-questions@FreeBSD.ORG Wed May 26 10:31:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5ECA16A4CE for ; Wed, 26 May 2004 10:31:46 -0700 (PDT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8408443D48 for ; Wed, 26 May 2004 10:31:46 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 5EB6369A71; Wed, 26 May 2004 13:31:02 -0400 (EDT) Message-ID: <40B4D455.2090005@potentialtech.com> Date: Wed, 26 May 2004 13:31:01 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040506 X-Accept-Language: en-us, en MIME-Version: 1.0 To: darryl@osborne-ind.com References: <002801c4433d$19ab2890$0701a8c0@darryl> In-Reply-To: <002801c4433d$19ab2890$0701a8c0@darryl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: tinydns +MX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2004 17:31:46 -0000 Darryl Hoar wrote: > Greetings, > I have djbdns installed and working. I have been using DNS > on my LAN and having it resolve the names for my local machines. > It forwards any unresolved to my ISP's dns server. > > Recently, I have installed qmail on my LAN for internal email. > I used the ./add-mx to add a mx record for my machine which > is running qmail. > > the mx record in the data file looks like: > @osborneindustries.com:192.168.1.89:a::86400 > > If I send test mail to darryl@osborneindustries.com, it gets forwarded to > my ISP's email server. If I send email to darryl@mail.osborneindustries.com > (name of my qmail server), it gets delivered just fine. > > How do I get my mx record setup so that user@osborneindustries.com gets > delivered to mail.osborneindustries.com ? > > here are a couple of tests that I ran: > > mail# host -t mx osborneindustries.com 192.168.1.1 > Using domain server 192.168.1.1: > > osborneindustries.com mail is handled (pri=0) by a.mx.osborneindustries.com > > mail# host a.mx.osborneindustries.com 192.168.1.1 > Using domain server 192.168.1.1: > > a.mx.osborneindustries.com has address 192.168.1.89 qmail is getting it's DNS information from somewhere other than 192.168.1.1 Log into that machine and do "host -t mx osborneindustries.com" and see what DNS server it's using. Perhaps you can adjust /etc/resolv.conf on the mail server. mail.osborneindustries.com works because there is no MX for that domain, so qmail sends it directly to the host instead. I'll be willing to bet that the correct IP for that hostname is in /etc/hosts, thus it sends to where you'd expect. -- Bill Moran Potential Technologies http://www.potentialtech.com