From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 21:50:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECB6416A404 for ; Mon, 23 Apr 2007 21:50:22 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 874BD13C457 for ; Mon, 23 Apr 2007 21:50:20 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l3NLnjSO033623; Mon, 23 Apr 2007 16:49:45 -0500 (CDT) Message-Id: <6.0.0.22.2.20070423163232.025e4570@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 23 Apr 2007 16:48:53 -0500 To: Andrew Fremantle , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <462D06D8.8060902@skyhawk.ca> References: <462D06D8.8060902@skyhawk.ca> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Invalid Global DNS name and sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 21:50:23 -0000 At 02:19 PM 4/23/2007, Andrew Fremantle wrote: >Hello, > >I've got a machine on the local network, with a local DNS name (which is >not a valid name in the global DNS). > >My problem is that I cannot kludge sendmail into behaving nicely and allow >the periodic(8) mailings to get through. > >The machine is named psyche.local >domain1.com is a domain that we own, but this machine has nothing to do >with it. I want the emails delivered to andrew@domain1.com. This is not an >email server in any way - All I care about it getting my periodic output. > >Here are the settings I'm trying : > >/etc/mail/psyche.local.mc >define(`SMART_HOST', `mail.telus.net') >define(`MAIL_HUB',`mail.telus.net') > >define(`confDOMAIN_NAME',`domain1.com') > >MASQUERADE_AS(domain1.com) >MASQUERADE_DOMAIN(psyche.local psyche) >FEATURE(`allmasquerade') >FEATURE(`masquerade_envelope') > >/etc/mail/genericsdomain >psyche.local > >/etc/mail/genericstable >root andrew@domain1.com >andrew andrew@domain1.com > >/etc/mail/aliases >root : andrew@domain1.com > >/etc/hosts >192.168.2.10 psyche psyche.local > >With all the configurations I've tried, emails are rejected by my >smarthost with an error like "sender address root@psyche.local invalid; >domain does not exist". > >What I'd like to do is find a way to alter sendmail's perception of my >hostname. Ideally, this would only affect sendmail and nothing else. > >I can't possibly be the only person running such a configuration. How have >other people in the list worked past this? You don't need to go to such efforts. The stock sendmail mc file should do fine with just a couple modifications. The details are here: http://www.sendmail.org/faq/section3.html#3.22 Check your name resolution order in /etc/nsswitch.conf that you check files first. modify /etc/hosts 192.168.2.10 psyche psyche.local. so it is a fully qualified domain name. You can forward all mail in /etc/mail/virtualusertable with a line such as: @psyche.local andrew@domain1.com Be sure to recompile your virtualusertable.db -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.