2002-08-24 11:31:59 +08:00
|
|
|
<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>
|
2003-01-12 01:58:10 +08:00
|
|
|
groupadd smmsp &&
|
|
|
|
groupadd mail &&
|
|
|
|
useradd -g smmsp -G mail -u smmsp &&
|
2002-08-24 11:31:59 +08:00
|
|
|
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>
|
2002-12-03 07:02:40 +08:00
|
|
|
cat > devtools/Site/site.config.m4 << "EOF"
|
2002-08-30 10:35:02 +08:00
|
|
|
define(`confMANGRP',`root')
|
|
|
|
define(`confMANOWN',`root')
|
|
|
|
define(`confSBINGRP',`root')
|
|
|
|
define(`confUBINGRP',`root')
|
|
|
|
define(`confUBINOWN',`root')
|
2002-10-11 09:18:54 +08:00
|
|
|
EOF
|
2002-08-24 11:31:59 +08:00
|
|
|
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>
|
|
|
|
|