SUMMARY: Sendmail 8.9.1 compiled, now what?

From: Dan Kirkpatrick <dkirk_at_suhep.phy.syr.edu>
Date: Wed, 18 Nov 1998 10:03:53 -0500

Sorry for the delayed response, but I haven't had the time to complete the
process yet, so I'm not sure of all the steps yet, but here's the response
I got. Thanks to the numerous people who sent suggestions. If someone
would like a copy of all of the responses, I'd be happy to comply...

after compiling...
Do a make install in the src/obj* directory.
BTW: don't forget to install the 8.9.1a
patch to sendmail, also available from www.sendmail.org.

Mail relaying is off by default with sendmail 8.9.1.

The README files and documentation are a big help. See /README,
src/README, cf/README, and doc/op/op.ps . The O'Reilly book on sendmail
(also known as "the bat book" for the picture on the cover) is also a
very good resource.

First, you must build configuration files using the M4 macros in the cf/
subdirectory. Instructions for doing this and for configuring for the
other things you want to do are in cf/README.

Second, you must make sure that file ownerships and protections are
correct. sendmail V8.9 is much more picky about this (for security
reasons). Permissions are explained in /README.

You need to build a new sendmail.cf file. It will need to go into /etc.
The easiest way to do this is with the m4 macro program. In your
$sendmail/cf/cf directory you will find a generic-osf1.mc file. Copy this
to a new file, like systemname.mc then edit this file to add the options
you want. Here are some options I have added to my system.mc file:

MASQUERADE_AS(`domain.com')
FEATURE(use_cw_file)
FEATURE(use_ct_file)
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')
FEATURE(`redirect')
FEATURE(access_db)
FEATURE(rbl)
FEATURE(relay_entire_domain)
define(`confMATCH_GECOS',`True')dnl
LOCAL_CONFIG
O MaxMimeHeaderLength=256/128

Then, you will want to use m4 to generate the new .cf file. I created a
shell script:

#!/usr/bin/sh
m4 ../m4/cf.m4 system.mc > sendmail.cf


This script will create a new file called sendmail.cf in your
$sendmail/cf/cf directory. You can then save your old /etc/sendmail.cf
file and copy this one there. Then, shutdown and restart sendmail and you
should be in business. Good luck!
/usr/local/bin/m4 < local.mc > sendmail.cf

NOTE: The /usr/bin/m4 that comes with digital unix 4.x is broken.
Download GNU m4 or use one from a 3.2 system.

You'll want to put that resulting sendmail.cf file into
/var/adm/sendmail, and restart the sendmail daemon.

The problem with configuring sendmail is learning how to do so,
not actually doing so. I assume that you have the O'Reilly book
on sendmail (by Costales and Allman)? Read chapters 16 and 19
about the use of m4 to configure sendmail. Using m4, it is only
necessary to know what you WANT to do (from the list of things
you COULD easily do) instead of knowing exactly how to do them.

Also, see http://www.sendmail.org/m4/anti-spam.html for additional
configuration information, particularly about relaying. It has
more current information than the O'Reilly book.
--------------------------------------------------------------------------
Dan Kirkpatrick dkirk_at_phy.syr.edu
Systems Administrator/Manager
Department of Physics
Syracuse University, Syracuse, NY
Received on Wed Nov 18 1998 - 15:04:48 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT