Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2012 10:55:53 +0100
From:      Jamie Paul Griffin <jamie@kode5.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: sendmail local-host-names questions
Message-ID:  <20120829095552.GD81304@kontrol.kode5.net>
In-Reply-To: <503DC88F.6060806@dreamchaser.org>
References:  <503DC88F.6060806@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
[ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120829095552.GD81304>