2002-08-24 11:31:59 +08:00
|
|
|
<sect2>
|
2003-09-27 03:39:35 +08:00
|
|
|
<title>Installation of <application>Sendmail</application></title>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2003-09-27 03:39:35 +08:00
|
|
|
<para>Before building <application>Sendmail</application>, we need to create users, groups and
|
2002-08-24 11:31:59 +08:00
|
|
|
directories that sendmail uses with the following commands:</para>
|
2003-09-26 10:51:25 +08:00
|
|
|
|
|
|
|
<screen><userinput><command>groupadd smmsp &&
|
2003-01-12 01:58:10 +08:00
|
|
|
groupadd mail &&
|
2003-01-15 00:29:34 +08:00
|
|
|
useradd -g smmsp -G mail smmsp &&
|
2002-08-24 11:31:59 +08:00
|
|
|
chmod 1777 /tmp &&
|
|
|
|
chmod 1777 /var/mail &&
|
2003-09-26 10:51:25 +08:00
|
|
|
mkdir /var/spool/mqueue</command></userinput></screen>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2003-09-27 03:39:35 +08:00
|
|
|
<para>Install <application>Sendmail</application> with the following commands:</para>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2003-09-26 10:51:25 +08:00
|
|
|
<screen><userinput><command>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')
|
2003-09-26 10:51:25 +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 ../../ &&
|
2003-09-26 10:51:25 +08:00
|
|
|
sh Build install</command></userinput></screen>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2003-09-26 10:51:25 +08:00
|
|
|
</sect2>
|