2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-05-02 07:38:41 +08:00
|
|
|
<title>Installation of <application>postfix</application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<para>Before you compile the program, you need to create users and groups that
|
|
|
|
will be expected to be in place when the install script executes. Add the
|
|
|
|
users and groups with the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<screen><userinput><command>groupadd postfix &&
|
2002-07-08 04:28:42 +08:00
|
|
|
groupadd postdrop &&
|
|
|
|
groupadd -g 65534 nogroup &&
|
|
|
|
useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &&
|
|
|
|
useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &&
|
2003-05-02 07:38:41 +08:00
|
|
|
chown postfix:postfix /var/mail</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<para>Install <application>postfix</application> by running the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<screen><userinput><command>make &&
|
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<para>The install script will enter an interactive stage with questions in the
|
|
|
|
form of '*_directory:[default]input'. Defaults can be accepted in all but
|
|
|
|
three cases. The following shows the three cases and the modified response.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<screen><prompt>daemon_directory:[/usr/libexec/postfix]</prompt><userinput>/usr/sbin</userinput>
|
|
|
|
<prompt>manpage_directory:[/usr/local/man]</prompt><userinput>/usr/share/man</userinput>
|
|
|
|
<prompt>sample_directory:[/etc/postfix]</prompt><userinput>/usr/share/doc/postfix</userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>The final installation step is to install the program's documentation with this command:</para>
|
|
|
|
|
2003-05-02 07:38:41 +08:00
|
|
|
<screen><userinput><command>cp -rf html/* /usr/share/doc/postfix</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|