From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 08:09:24 2005 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 1C31716A4CE for ; Wed, 9 Mar 2005 08:09:24 +0000 (GMT) Received: from mta10-winn.mailhost.ntl.com (smtpout18.mailhost.ntl.com [212.250.162.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D39E43D53 for ; Wed, 9 Mar 2005 08:09:23 +0000 (GMT) (envelope-from ben@spooty.net) Received: from aamta06-winn.mailhost.ntl.com ([212.250.162.8]) by mta10-winn.mailhost.ntl.com with ESMTP <20050309080922.GKZF20856.mta10-winn.mailhost.ntl.com@aamta06-winn.mailhost.ntl.com> for ; Wed, 9 Mar 2005 08:09:22 +0000 Received: from cpc2-brig4-3-0-cust135.brtn.cable.ntl.com ([82.0.100.135]) by aamta06-winn.mailhost.ntl.com with ESMTP <20050309080922.UIWG5678.aamta06-winn.mailhost.ntl.com@cpc2-brig4-3-0-cust135.brtn.cable.ntl.com> for ; Wed, 9 Mar 2005 08:09:22 +0000 From: Ben Paley To: FreeBSD Questions Date: Wed, 9 Mar 2005 08:09:19 +0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503090809.19374.ben@spooty.net> Subject: Setting hostname - fake and real 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, 09 Mar 2005 08:09:24 -0000 Hello, Is there an easy way to set a fake hostname in rc.conf which will let sendmail send mail to external domains? For ages I've had the line in rc.conf hostname="potato.fake_domain.net" (not exactly, but you see what I mean...) and I've had no problems with it at all. Recently I've tried to set up sendmail, only so I can test php or perl scripts that send emails! Sending to localhost works fine, but mail to an external address is returned by the remote domain because it couldn't verify my domain. Very sensible, I could be a spammer. So I edited rc.conf to say hostname="potato.real_domain.net" that is, I used the name of a real domain which is registered to me. The domain is hosted on the net, but AFAIK they don't have a machine called "potato". Now apache won't start and I get weird errors in other things, like shutting down X even! Can anyone help? Thanks very much, Ben