Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Apr 2001 00:08:47 -0600
From:      Brett Glass <brett@lariat.org>
To:        freebsd-stable@freebsd.org
Subject:   Proposed changes to Makefile in /etc/mail
Message-ID:  <4.3.2.7.2.20010402235945.04a32760@localhost>

next in thread | raw e-mail | index | archive | help
In

http://www.freebsd.org/cgi/query-pr.cgi?pr=26299

I've proposed changes to the Makefile in /etc/mail that I think makes it 
easier to reconfigure sendmail.

Right now, to change sendmail.cf, one edits "freebsd.mc" and rebuild 
sendmail.cf from it (unless one has changed /etc/make.conf, which many 
administrators don't know about). Besides being platform-specific, this 
makes it more difficult to use one's library of .mc files from other 
systems and adapt one of them to a new system.

The change adds 6 lines of code that I've had in my own Makefile for some 
time. They tell the sytsem that `hostname`.mc -- if it exists -- should 
be the default .mc file that is processed to make sendmail.cf. (The 
`hostname`.mc convention is a longstanding one; it's used in the samples 
in the source tree.) Thus, one can bring in one's collection of existing 
.mc files, create a new file with the new host name, and carry the 
expanded collection onward to the next machine one configures.

It also makes it easier to describe the process of configuring sendmail 
to an inexperienced sysadmin. You can say, "Enter the command 'cp 
freebsd.mc `hostname`.mc' and then edit the file you created."

Greg is concerned about bloating the Makefile, but since the change is 
only 6 lines and it makes life so much more straightforward, I'd like to 
see it in there. What do folks here think? Should these changes (or 
something like them) go in the file?

--Brett


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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