From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 08:22:48 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 A80D116A4CE for ; Wed, 9 Mar 2005 08:22:48 +0000 (GMT) Received: from shiba.meibin.jp (shiba.meibin.jp [211.18.246.253]) by mx1.FreeBSD.org (Postfix) with SMTP id 9614643D5C for ; Wed, 9 Mar 2005 08:22:46 +0000 (GMT) (envelope-from lukek@meibin.net) Received: (qmail 7755 invoked by uid 1011); 9 Mar 2005 08:22:34 -0000 Received: from 210.128.238.10 by shiba.meibin.jp (envelope-from , uid 1009) with qmail-scanner-1.24-st-qms (clamdscan: 0.83/705. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(210.128.238.10):SA:0(1.8/5.0):. Processed in 3.054376 secs); 09 Mar 2005 08:22:34 -0000 X-Spam-Status: No, hits=1.8 required=5.0 X-Spam-Level: + X-Antivirus-MEIBIN-Mail-From: lukek@meibin.net via shiba.meibin.jp X-Antivirus-MEIBIN: 1.24-st-qms (Clear:RC:0(210.128.238.10):SA:0(1.8/5.0):. Processed in 3.054376 secs Process 7747) Received: from unassigned.webex.jp (HELO ?192.168.2.16?) (lukek@meibin.net@210.128.238.10) by shiba.meibin.jp with SMTP; 9 Mar 2005 08:22:30 -0000 Date: Wed, 09 Mar 2005 17:20:11 +0900 From: Luke Kearney To: Ben Paley In-Reply-To: <200503090809.19374.ben@spooty.net> References: <200503090809.19374.ben@spooty.net> Message-Id: <20050309171717.0F41.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 cc: FreeBSD Questions Subject: Re: 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:22:48 -0000 On Wed, 9 Mar 2005 08:09:19 +0000 Ben Paley spake thus: > 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 Hello Ben Sounds like you might need some DNS magic here. I am not entirely sure I understand why you would want to use fake dns names. It won't really work properly and if testing scripts that send mail is the goal then a FQDN is probably a good idea. Do you control the DNS for your 'real' domain? If so add your host potato and if possible get a reverse DNS entry to match. For apache and X edit /etc/hosts and put the real information there and your problems should go away. HTH LukeK -- <>