🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #55952

Re: Help sought compiling sendmail 8.8.5

#55952
From: Robi Karp
Date: Wed, 23 Apr 1997 00:00
136 lines
6273 bytes


 : >  : > Did you get a copy of the Berkeley make?
 : >  : Not needed - GNU make is fine.
 : > Not on my copy it's not.  GNU make doesn't understand .include <xxx>
 : > lines.
 : 
 : Errm, you *did* run "makesendmail" instead of "make", didn't you?  From
 : the "src/READ_ME":
 : 
 : *********************
 : !! DO NOT USE MAKE !!  to compile sendmail -- instead, use the
 : *********************  "makesendmail" script located in the src
 : directory.  It will find an appropriate Makefile, and create an
 : appropriate obj.* subdirectory so that multiplatform support
 : works easily.

I said, I already did that.  It's not the compiling of sendmail that
was worrying me, it was the installation, *THAT* is the reason I
wanted a make.  I did read all the README's.  GNU make IS NOT OK with
the given Makefiles.  It's fine with the makesendmail script in the
src directory, but the makesendmail script does not allow you to do
installation.

I've since worked it out myself.

My objective was to put ALL sendmail related files in the directory
/etc/sendmail.  Why?  Because, as you noted below:

 : It's hard to be exact on file locations since they vary from system
 : to system

That's why I wanted them to all be in the same place.  Ease of
management etc.

What I did was this:

- I used the src/Makefiles/Makefile.Linux makefile as a template and
  changed the locations of the various installation paths of the
  associated sendmail files to suit myself
- I also added the appropriate defines in my .mc file to reflect this.
- I then used "make -f Makefiles/Makefile.Linux install" from the
  source directory, this is fine for GNU make.
- The only symlink I did was from /etc/sendmail.cf to
  /etc/sendmail/sendmail.cf (which, in turn, is a link to my real
  config file).
- I then shutdown sendmail with a simple kill, which is a SIGTERM
  (15).
- I restarted the new one, it found the config file, and everything
  was sweet.

The other alternative is to download a copy of BSD-4.4 make, which I
couldn't find, but I suspect there's one at
    ftp://ftp.cs.berkeley.edu/pub/4.4 (or similar)

If anyone wants a copy of my config file or my changed makefile, let
me know.  I feel that it's stupid to have a bunch of sendmail files
(help, config, status, executable etc) to be spread throughout the
entire filesystem.  I think it makes a lot more sense to have all
sendmail files in one place.  I can then place them under RCS, even
the executable.

 : 1.  Shutdown Sendmail (SIGTERM should be okay).
 : 2.  Remember that whilst installing new files, move the old one to a
 :     different file name (eg., current name plus ".orig").
 : 3.  Locate "sendmail" binary (/usr/sbin) and update.
 : 4.  Locate "sendmail.hf" (/usr/lib) and update.
 : 5.  Locate "sendmail.cf" (/etc) and update.

See, that's the problem.  Unless you either hunt through the
filesystem or search through the config file you don't know what you
might miss or where it is.  These are unacceptable options.  As for
installation, who wants to hand install?  What about if you're using a
.ct or a .cw file?  Where are they normally etc?

 : I prefer to manually install smallish things like Sendmail (then again, I
 : have the same attitude under DOS/Windows - go figure).

Sendmail is too important to be missing a file or two.  If it's not
setup properly or doesn't know where to find things then it is
effectively crippled and hence you won't be able to send or receive
email.

 : > Lastly, are other programs, like newaliases (which I know is just sendmail
 : > with particular options) supposed to be built from the sendmail
 : > distribution?
 : 
 : "newaliases" is just a soft symlink to "sendmail":
 : 
 :    /usr/bin/newaliases -> /usr/sbin/sendmail*
 : 
 : If you don't already have "newaliases" (which should still be there from
 : the old version, untouched as I mentioned above), then you can create it
 : manually (it'd be part of the "make install" too, I guess).

There's my point again.  There is no "install" if you're using the
makesendmail script.  It's this sort of stuff that I want to keep
track of.  There's a bunch of these programs: newaliases, mailq,
mailstats and one other I've forgotten.

Thanks for these:

 : 
 : >     a) stopping the version being printed on an smtp connection
 : 
 : Change the initial greeting (sendmail.cf):
 : 
 :    O SmtpGreetingMessage=$j Sendmail $v/$Z; $b
 : 
 : to:
 : 
 :    O SmtpGreetingMessage=$j Sendmail; $b
 : 
 : From "cf/README", the equivalent change to your ".mc" file would be:
 : 
 :    define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')
 : 
 : >     b) disabling the EXPN command
 : 
 : Hack "sendmail.cf" to add "noexpn" to your "PrivacyOptions" - example:
 : 
 :    O PrivacyOptions=authwarnings,noexpn
 : 
 : The ".mc" equivalent:
 : 
 :    define(`confPRIVACY_FLAGS', `authwarnings,noexpn')
 : 
 : This one from a combination of "cf/README" and "doc/op/op.(me|ps)".  :-)
 : 
 : >     c) disabling help
 : 
 : Errm, can't see an option for this one.  While you could just remove the
 : "sendmail.hf" completely, you'd probably need to hack the source for this.

- Robi
Technical Details
Message-ID: <vznafmqy1kg.fsf@intruder.iassf.easams.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <860830256.39585@home.albury.net.au><m34tdb8c4i.fsf@vincent.nco.de><vzn3esq75xn.fsf@intruder.iassf.easams.com.au><Pine.LNX.3.96.970418124310.22282C-100000@avarice.nepean.uws.edu.au> <vznbu79x9yr.fsf@intruder.iassf.easams.com.au> <Pine.LNX.3.96.970421225252.24090L-100000@avarice.nepean.uws.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,7e2f1136be01abd5
X-Google-Attributes: gid102983,public
X-Google-Thread: f9382,7e2f1136be01abd5
X-Google-Attributes: gidf9382,public
From: robi@fluffyspider.com.au.delete.this.to.email.me (Robi Karp)
Subject: Re: Help sought compiling sendmail 8.8.5
Date: 1997/04/23
Message-ID: <vznafmqy1kg.fsf@intruder.iassf.easams.com.au>
X-Deja-AN: 236725216
Sender: rjk@intruder.iassf.easams.com.au
References: <860830256.39585@home.albury.net.au><m34tdb8c4i.fsf@vincent.nco.de><vzn3esq75xn.fsf@intruder.iassf.easams.com.au><Pine.LNX.3.96.970418124310.22282C-100000@avarice.nepean.uws.edu.au> <vznbu79x9yr.fsf@intruder.iassf.easams.com.au> <Pine.LNX.3.96.970421225252.24090L-100000@avarice.nepean.uws.edu.au>
Original-Sender: robi@fluffyspider.com.au.delete.this.to.email.me (Robi Karp)
Organization: Fluffy Spider Technologies
Reply-To: robi@fluffyspider.com.au.delete.this.to.email.me (Robi Karp)
Newsgroups: aus.computers.linux,comp.os.linux