xref: /freebsd/contrib/sendmail/INSTALL (revision b5ff185e19f6013ca565b2a15bc2d6abce933f46)
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
15ffb83623SGregory 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
21ffb83623SGregory 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
29ffb83623SGregory Neil Shapiro   "sh ./Build install-cf".
3040266059SGregory Neil Shapiro
31*da7d7b9cSGregory Neil Shapiro   Please read sendmail/SECURITY before continuing; you may have to create
32*da7d7b9cSGregory Neil Shapiro   a new user smmsp and a new group smmsp for the default installation
33*da7d7b9cSGregory Neil Shapiro   if you are updating from a really old version.
3440266059SGregory Neil Shapiro   Then install the sendmail binary built in step 3 by cd-ing back to
35ffb83623SGregory Neil Shapiro   sendmail/ and running "sh ./Build install".
3606f25ae9SGregory Neil Shapiro
3794c01205SGregory Neil Shapiro7. For each of the associated sendmail utilities (makemap, mailstats,
3894c01205SGregory Neil Shapiro   etc.), read the README in the utility's directory if it exists.  When
39ffb83623SGregory Neil Shapiro   you are ready to install it, back up your installed version and type
40ffb83623SGregory Neil Shapiro   "sh ./Build install".
4106f25ae9SGregory Neil Shapiro
42193538b7SGregory Neil Shapiro8. If you are upgrading from an older version of sendmail and are using any
43193538b7SGregory Neil Shapiro   database maps, be sure to rebuild them with the new version of makemap,
44193538b7SGregory Neil Shapiro   in case you are now using a different (and thereby incompatible) version
45193538b7SGregory Neil Shapiro   of Berkeley DB.
46193538b7SGregory Neil Shapiro
474313cc83SGregory Neil Shapiro$Revision: 8.16 $, Last updated $Date: 2007-10-03 21:00:28 $
48