From owner-freebsd-questions@FreeBSD.ORG Thu May 27 13:43:39 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 9E8DD16A4CE for ; Thu, 27 May 2004 13:43:39 -0700 (PDT) Received: from ws1.cnweb.com (ws1.cnweb.com [207.91.1.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BC6343D1F for ; Thu, 27 May 2004 13:43:39 -0700 (PDT) (envelope-from darryl@osborne-ind.com) Received: (qmail 6245 invoked from network); 27 May 2004 20:45:45 -0000 Received: from p245n23.ruraltel.net (HELO darryl) (24.225.23.245) by spkg.com with SMTP; 27 May 2004 20:45:45 -0000 From: "Darryl Hoar" To: Date: Thu, 27 May 2004 15:44:09 -0500 Message-ID: <006e01c4442b$5d269a70$0701a8c0@darryl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 In-Reply-To: <006101c44424$6543cc70$0701a8c0@darryl> Importance: Normal Subject: RE: Mail Exchanger - help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: darryl@osborne-ind.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2004 20:43:39 -0000 > Sent: Thursday, May 27, 2004 2:54 PM > To: freebsd-questions@freebsd.org > Subject: Mail Exchanger - help > > > Greetings, > I have a LAN that is on private IP. It is nat'd to the internet. > The internal LAN domain name is registered. Our ISP > just forwards the osborneindustries.com domain name to > our other registered domain name. > > In an effort to replace our internal msmail (Yuk!), I have > setup a test server running Freebsd 5.1-release. It has > qmail installed on it and configured as per lifewith qmail. > It passes all the tests as defined in lifewithqmail. > > I have another server (HP9000, running HPUX) that has > djbdns (tinydns, dnscache, etc) setup and servicing my > LAN. internal host names are resolved just fine. > > When (from outlook) I try to send email to user@osborneindustries.com, > the mail gets sent out to our ISP. I have outlook configured properly > with a service for the osborneindustries.com. > > I have created a mx record on the HP. I ran the following: > > # ./dnsmx osborneindustries.com > 0 goober.mx.osborneindustries.com > > on the qmail server I ran: > > mail# dnsquery -t mx osborneindustries.com > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1241 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 > ;; osborneindustries.com, type = MX, class = IN > osborneindustries.com. 23h51m37s IN MX 0 > goober.mx.osborneindustries.com. > > both seem to see the mx record. Seems that qmail can't find > it though. > what do I need to set/fix to get qmail to find the mx record ? > the resolv.conf on the qmail server has: > > domain osborneindustries.com > nameserver 192.168.1.1 > > any ideas would be great. BTW, outside users (on the > internet) do not use > our internal > dns server to resolve addresses. > well I know it's bad form to answer your own question, but after messing with this for days, I have found the solution. In addition to creating a mx record on my dns server, I had to Add osborneindustries.com to /var/qmail/control/locals, and tell qmail to read locals (/var/qmail/bin/qmailctl hup). Add osborneindustries.com to /var/qmail/control/rcpthosts. Anyway, just for completeness. -Darryl