From owner-freebsd-questions@FreeBSD.ORG Wed Aug 29 09:55:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0F6106564A for ; Wed, 29 Aug 2012 09:55:56 +0000 (UTC) (envelope-from jamie@kode5.net) Received: from kontrol.kode5.net (kontrol.kode5.net [80.229.5.32]) by mx1.freebsd.org (Postfix) with ESMTP id 81CDA8FC1B for ; Wed, 29 Aug 2012 09:55:54 +0000 (UTC) Received: from kontrol.kode5.net (localhost [127.0.0.1]) by kontrol.kode5.net (8.14.5/8.14.5) with ESMTP id q7T9trj8088368 for ; Wed, 29 Aug 2012 10:55:53 +0100 (BST) (envelope-from jamie@kode5.net) Received: (from jamie@localhost) by kontrol.kode5.net (8.14.5/8.14.5/Submit) id q7T9tr4L088367 for freebsd-questions@freebsd.org; Wed, 29 Aug 2012 10:55:53 +0100 (BST) (envelope-from jamie@kode5.net) X-Authentication-Warning: kontrol.kode5.net: jamie set sender to jamie@kode5.net using -f Date: Wed, 29 Aug 2012 10:55:53 +0100 From: Jamie Paul Griffin To: freebsd-questions@freebsd.org Message-ID: <20120829095552.GD81304@kontrol.kode5.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <503DC88F.6060806@dreamchaser.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <503DC88F.6060806@dreamchaser.org> x-operating-system: FreeBSD 9.1-PRERELEASE amd64 x-pgp-fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38 x-pgp-key: 1D31DC38 User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.5 at kontrol.kode5.net X-Virus-Status: Clean Subject: Re: sendmail local-host-names questions 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: Wed, 29 Aug 2012 09:55:56 -0000 [ Gary Aitken wrote on Wed 29.Aug'12 at 1:45:19 -0600 ] > > Also... I can't find anything about how to put a comment in the > local-host-names file. I took a guess and used # as in the .mc file, > and it doesn't seem to cause errors; but neither does ';' or '%' so I'm > guessing the lines are just being skipped because they don't parse properly. > I'd like to know whether comments are allowed or not; and if so, > what the proper syntax is. > > Thanks for any hints, > > Gary Hi Gary, you don't put dots at the end of the domain names in that file. In mine, i've just got: kontrol.kode5.net # the hostname of the machine; and kode5.net # my domain I haven't put those comments in it either, just the host and domain information. The Sendmail site does have quite a bit of information actually about configuration. I was setting up Sendmail on my machine just a week ago in fact and got most of the info from that site. Also the FreeBSD handbook. I also run a local DNS server (BIND/named) which I recommend you look into with a view to setting it up. It does make a difference, especially if you have several machines on your LAN. It's not as hard as it first appears. In fact the default installation is already configured for a local caching nameserver. I have added my own zone files as well which is all explained on the Handbook. Jamie