mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-07 09:37:17 +08:00
268be77aea
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@172 af4574ff-66df-0310-9fd7-8a98e5e911e0
37 lines
1000 B
XML
37 lines
1000 B
XML
<sect2>
|
|
<title>Installation of sendmail</title>
|
|
|
|
<para>Before building sendmail, we need to create users, groups and
|
|
directories that sendmail uses with the following commands:</para>
|
|
<para><screen><userinput>
|
|
groupadd -g 18 smmsp &&
|
|
groupadd -g 19 mail &&
|
|
useradd -g smmsp -G mail -u 18 smmsp &&
|
|
chmod 1777 /tmp &&
|
|
chmod 1777 /var/mail &&
|
|
mkdir /var/spool/mqueue
|
|
</userinput></screen></para>
|
|
|
|
<para>Install sendmail with the following commands:</para>
|
|
|
|
<para><screen><userinput>
|
|
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
|
|
</userinput></screen></para>
|
|
</sect2>
|
|
|