From owner-freebsd-questions Tue Feb 1 16:44:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by builder.freebsd.org (Postfix) with ESMTP id 9E85F3F46 for ; Tue, 1 Feb 2000 16:44:01 -0800 (PST) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id SAA81522; Tue, 1 Feb 2000 18:43:44 -0600 (CST) (envelope-from glenn) From: Glenn Johnson Date: Tue, 1 Feb 2000 18:43:44 -0600 To: Isaac Waldron Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Hostname setup for local machine. Message-ID: <20000201184344.A81360@symbion.srrc.usda.gov> References: <20000202001523.4594.qmail@web2004.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000202001523.4594.qmail@web2004.mail.yahoo.com>; from isaacguy@yahoo.com on Tue, Feb 01, 2000 at 04:15:23PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Feb 01, 2000 at 04:15:23PM -0800, Isaac Waldron wrote: > What is the correct method for setting up the hostname for a machine > that has no official name? I have a dial-up ISP account that does not > allow me a real domain name. That is, I have no official information > to put into the hostname variable in /etc/rc.conf. Should I just make > something up, and tack the domain of my ISP on the end, or is there a > protocol I need to follow for this kind of thing? As far as I know you should be able to use whatever name you want. When you are connected to your ISP, you will be assigned a host name on your ISP's network. However, sendmail will use whatever you do assign and use that in the "from" header so you will need to masquerade your address to your "official" mail address. That goes in /etc/sendmail.cf though not your /etc/rc.conf. Look for the following lines in /etc/sendmail.cf: # who I masquerade as (null for no masquerading) (see also $=M) DMmailhost.isp.net add the host part of your mail address right after the DM. You will need to restart sendmail for this to take effect. Of course if you are not going to be using sendmail or a sendmail replacement then you do not have to worry about this. -- Glenn Johnson Technician USDA, ARS, SRRC New Orleans, LA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message