sendmail local-host-names questions
Jamie Paul Griffin
jamie at kode5.net
Wed Aug 29 09:55:56 UTC 2012
[ 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
More information about the freebsd-questions
mailing list