From owner-freebsd-questions Sun Jan 5 13:25:43 2003 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 08AE737B401 for ; Sun, 5 Jan 2003 13:25:42 -0800 (PST) Received: from visimation.com (visimation.com [206.169.230.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 847C143EB2 for ; Sun, 5 Jan 2003 13:25:41 -0800 (PST) (envelope-from adaml@visimation.com) Received: from Spooler by visimation.com (Mercury/32 v3.31) ID MO00008D; 5 Jan 03 13:25:41 -0800 Received: from spooler by visimation.com (Mercury/32 v3.31); 5 Jan 03 13:25:38 -0800 Received: from 5adam5 (12.228.14.29) by visimation.com (Mercury/32 v3.31) with ESMTP ID MG00008C; 5 Jan 03 13:25:30 -0800 Reply-To: From: "Adam Lofstedt" To: "'Unix Tools'" Cc: "'freebsd-questions'" Subject: RE: Redirecting root's email Date: Sun, 5 Jan 2003 13:25:40 -0800 Organization: Visimation, Inc. Message-ID: <001401c2b500$ff9d94e0$6501a8c0@5adam5> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > hi, > did you try digging the nameserver > > dig @nameserver localhost.visimation.com > > Cheers > Here is the result: ; <<>> DiG 8.3 <<>> @nameserver localhost.visimation.com ; Bad server: nameserver -- using default server and timer opts ; (1 server found) ;; res options: init recurs defnam dnsrch ;; got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUERY SECTION: ;; localhost.visimation.com, type = A, class = IN ;; ANSWER SECTION: localhost.visimation.com. 1H IN A 127.0.0.1 ;; Total query time: 1 msec ;; FROM: forcefield.visimation.com to SERVER: default -- 10.0.0.X ;; WHEN: Sun Jan 5 13:15:55 2003 ;; MSG SIZE sent: 42 rcvd: 58 There of course is no entry in the internal network name server's zone files for localhost.visimation.com. In a simple installation of FBSD, shouldn't sendmail use itself as the relay? And then just use the nameserver in resolv.conf to resolve the domain name in the email address? Why is it trying to contact localhost.visimation.com (and not its host name forcefield.visimation.com?), and why is it not finding it? Shouldn't it use the hosts file first for name resolution? In my /etc/hosts I have the following entries: 127.0.0.1 localhost.visimation.com localhost xxx.xxx.xxx.xxx forcefield.visimation.com forcefield xxx.xxx.xxx.xxx forcefield.visimation.com. Is it because the first entry doesn't have a trailing period after localhost.visimation.com? Thanks for your help, Adam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message