From owner-freebsd-questions@FreeBSD.ORG Sun Apr 15 17:01:15 2012 Return-Path: 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 B341D1065670 for ; Sun, 15 Apr 2012 17:01:15 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 2E7588FC08 for ; Sun, 15 Apr 2012 17:01:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id q3FGdiJP041809; Mon, 16 Apr 2012 02:39:44 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 16 Apr 2012 02:39:44 +1000 (EST) From: Ian Smith To: Robert Bonomi In-Reply-To: <20120415120032.707F81065798@hub.freebsd.org> Message-ID: <20120416021855.A17955@sola.nimnet.asn.au> References: <20120415120032.707F81065798@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Ron , freebsd-questions@freebsd.org Subject: Re: Postfix + Courier IMAP local email problems 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: Sun, 15 Apr 2012 17:01:15 -0000 In freebsd-questions Digest, Vol 410, Issue 12, Message: 2 On Sat, 14 Apr 2012 10:51:36 -0500 (CDT) Robert Bonomi wrote: | Ron wrote: > > OK, I found the problem. It was the hostname not being set correctly. > > What threw me was that it was correct in the rc.conf file, but I did not > > know you needed to reboot the machine to have it take effect. It just > > never occurred to me to run 'hostname' and see since I was seeing it > > correctly in the rc.conf. > > FYI, while it's true tht rc.conf is processed only t boot time, you don't > _have_ to reboot when you make a change. What you _do_ need to do is run > the same commands the the rc processing does. Unfortunately, with the > 'rc.d'-style process, where rc.conf just sets environment variables, and > everything else happens 'by magic', it can be a major effort to figure > out -what- commands need to be run when you change something, and 'reboot' > *is* the simplest way to get the job done. One reason _I_ much prefer > the "old" BSD-style '/etc/rc.boot' and '/etc/rc.local' approch. It was > =far= simpler to see exactly what was going on, in what order, and with > what params. Tracking stuff through the rc.d/* swamp is a 'project' -- > there is a whole nuther 'command language' to master. :(( It's really not all that complicated to change hostname(1) t23# grep hostname /etc/rc.conf hostname="t23.smithi.id.au" t23# hostname t23.smithi.id.au t23# hostname boofar t23# hostname boofar t23# csh boofar# exit exit t23# hostname boofar t23# hostname t23.smithi.id.au t23# hostname t23.smithi.id.au cheers, Ian