From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 22:25:01 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 3798716A407 for ; Mon, 23 Apr 2007 22:25:01 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 20F3B13C4BC for ; Mon, 23 Apr 2007 22:25:00 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out3.apple.com (8.13.8/8.13.8) with ESMTP id l3NMP0pC022987; Mon, 23 Apr 2007 15:25:00 -0700 (PDT) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id 8CB5910B43; Mon, 23 Apr 2007 15:25:00 -0700 (PDT) X-AuditID: 11807124-a2ca1bb000000872-01-462d323c690e Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 79CC210097; Mon, 23 Apr 2007 15:25:00 -0700 (PDT) In-Reply-To: <462D06D8.8060902@skyhawk.ca> References: <462D06D8.8060902@skyhawk.ca> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Mon, 23 Apr 2007 15:24:59 -0700 To: Andrew Fremantle X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org 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 22:25:01 -0000 On Apr 23, 2007, at 12:19 PM, Andrew Fremantle wrote: > 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. The reason emails from root are being exposed using the real hostname is because of this: # class E: names that should be exposed as from this host, even if we masquerade # class L: names that should be delivered locally, even if we have a relay # class M: domains that should be converted to $M # class N: domains that should not be converted to $M #CL root C{E}root ...in sendmail.cf. Remove root from this C{E} line and you should be all set. However, if you want to explicitly set your hostname in sendmail, change this: # my official domain name # ... define this only if sendmail cannot automatically determine your domain #Dj$w.Foo.CO ...to: Djmyhost.example.com ...or whatever you like. -- -Chuck