xref: /freebsd/contrib/sendmail/INSTALL (revision 94c01205742119acdf56dbbd22fc274e5e38cfd4)
106f25ae9SGregory Neil Shapiro
206f25ae9SGregory Neil Shapiro			Installing sendmail
306f25ae9SGregory Neil Shapiro
440266059SGregory Neil Shapiro**Note**: Starting with sendmail 8.12, sendmail is no longer set-user-ID
540266059SGregory Neil Shapiroroot by default.  As a result of this, you need to install two .cf files.
640266059SGregory Neil ShapiroSee steps 4 and 6 in this document.  We also strongly recommend reading
740266059SGregory Neil Shapirosendmail/SECURITY for more installation information.
806f25ae9SGregory Neil Shapiro
906f25ae9SGregory Neil Shapiro1. Read all the README files noted in the INTRODUCTION section of the README
1006f25ae9SGregory Neil Shapiro   file in this top-level directory.
1106f25ae9SGregory Neil Shapiro
1206f25ae9SGregory Neil Shapiro2. Create any necessary site configuration build files, as noted in
1306f25ae9SGregory Neil Shapiro   devtools/Site/README.
1406f25ae9SGregory Neil Shapiro
1506f25ae9SGregory Neil Shapiro3. In the sendmail/ directory, run "sh Build" (see sendmail/README for
1606f25ae9SGregory Neil Shapiro   details).
1706f25ae9SGregory Neil Shapiro
1806f25ae9SGregory Neil Shapiro4. Change to the cf/cf/ directory (that's not a typo): Copy whichever .mc
1940266059SGregory Neil Shapiro   file best matches your environment to sendmail.mc.  Next, tailor it
2040266059SGregory Neil Shapiro   as explained in cf/README.  Then run
2140266059SGregory Neil Shapiro   "sh Build sendmail.cf".
2206f25ae9SGregory Neil Shapiro
2306f25ae9SGregory Neil Shapiro5. Back up your current /etc/mail/sendmail.cf and the sendmail binary (whose
2406f25ae9SGregory Neil Shapiro   location varies from operating system to operating system, but is usually
2506f25ae9SGregory Neil Shapiro   in /usr/sbin or /usr/lib).
2606f25ae9SGregory Neil Shapiro
2740266059SGregory Neil Shapiro6. Install sendmail.cf as /etc/mail/sendmail.cf and submit.cf as
2840266059SGregory Neil Shapiro   /etc/mail/submit.cf.  This can be done in the cf/cf by using
2940266059SGregory Neil Shapiro   "sh Build install-cf".
3040266059SGregory Neil Shapiro
3140266059SGregory Neil Shapiro   Please read sendmail/SECURITY before continuing; you have to create a
3240266059SGregory Neil Shapiro   new user smmsp and a new group smmsp for the default installation.
3340266059SGregory Neil Shapiro   Then install the sendmail binary built in step 3 by cd-ing back to
3440266059SGregory Neil Shapiro   sendmail/ and running "sh Build install".
3506f25ae9SGregory Neil Shapiro
3694c01205SGregory Neil Shapiro7. For each of the associated sendmail utilities (makemap, mailstats,
3794c01205SGregory Neil Shapiro   etc.), read the README in the utility's directory if it exists.  When
3894c01205SGregory Neil Shapiro   you are ready to install it, back up your installed version and type "sh
3994c01205SGregory Neil Shapiro   Build install".
4006f25ae9SGregory Neil Shapiro
41193538b7SGregory Neil Shapiro8. If you are upgrading from an older version of sendmail and are using any
42193538b7SGregory Neil Shapiro   database maps, be sure to rebuild them with the new version of makemap,
43193538b7SGregory Neil Shapiro   in case you are now using a different (and thereby incompatible) version
44193538b7SGregory Neil Shapiro   of Berkeley DB.
45193538b7SGregory Neil Shapiro
4694c01205SGregory Neil Shapiro$Revision: 8.15 $, Last updated $Date: 2002/05/28 18:09:25 $
47