mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
547df0bcb6
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1211 af4574ff-66df-0310-9fd7-8a98e5e911e0
34 lines
1.0 KiB
XML
34 lines
1.0 KiB
XML
<sect2>
|
|
<title>Installation of <application>Sendmail</application></title>
|
|
|
|
<para>Before building <application>Sendmail</application>, we need to create users, groups and
|
|
directories that sendmail uses with the following commands:</para>
|
|
|
|
<screen><userinput><command>groupadd smmsp &&
|
|
groupadd mail &&
|
|
useradd -g smmsp -G mail smmsp &&
|
|
chmod 1777 /tmp &&
|
|
chmod 1777 /var/mail &&
|
|
mkdir /var/spool/mqueue</command></userinput></screen>
|
|
|
|
<para>Install <application>Sendmail</application> with the following commands:</para>
|
|
|
|
<screen><userinput><command>cat > devtools/Site/site.config.m4 << "EOF"
|
|
define(`confMANGRP',`root')
|
|
define(`confMANOWN',`root')
|
|
define(`confSBINGRP',`root')
|
|
define(`confUBINGRP',`root')
|
|
define(`confUBINOWN',`root')
|
|
EOF
|
|
cd sendmail &&
|
|
sh Build &&
|
|
cd ../cf/cf &&
|
|
cp generic-linux.mc sendmail.mc &&
|
|
mkdir /etc/mail &&
|
|
sh Build sendmail.mc &&
|
|
sh Build install-cf &&
|
|
cd ../../ &&
|
|
sh Build install</command></userinput></screen>
|
|
|
|
</sect2>
|