mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-09 03:37:18 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2096 af4574ff-66df-0310-9fd7-8a98e5e911e0
41 lines
1.8 KiB
XML
41 lines
1.8 KiB
XML
<sect2>
|
|
<title>Installation of <application>Courier</application></title>
|
|
|
|
<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>
|
|
|
|
<screen><userinput><command>groupadd courier &&
|
|
useradd -c 'Courier Mail Server' -d /dev/null -g courier -s /bin/false courier</command></userinput></screen>
|
|
|
|
<para> You also need to create a bin user. If you already have a user named bin
|
|
this step can be safely ignored.</para>
|
|
|
|
<screen><userinput><command>useradd -c 'bin' -d /dev/null -g bin -u 1 bin</command></userinput></screen>
|
|
|
|
<para>This creates a
|
|
<filename class="directory">/var/run/courier</filename> directory where
|
|
all the <application>Courier</application> <acronym>MTA</acronym> pid
|
|
files will exist. This will allow <filename>courierfilter.pid</filename>
|
|
to be created. Without the <command>courierfilter</command> running the
|
|
<application>Courier</application> MTA will not work. Issue the
|
|
following commands to create
|
|
<filename class="directory">/var/run/courier</filename>:</para>
|
|
|
|
<screen><userinput><command>mkdir /var/run/courier &&
|
|
chown courier:courier /var/run/courier</command></userinput></screen>
|
|
|
|
<para>Install <application>courier</application> by running the following commands:</para>
|
|
|
|
<screen><userinput><command>./configure --prefix=/usr --libexecdir=/usr/lib/courier \
|
|
--datadir=/usr/share/courier --sysconfdir=/etc/courier \
|
|
--localstatedir=/var/lib/courier --with-piddir=/var/run/courier \
|
|
--disable-root-check --with-mailuser=courier --with-mailgroup=courier \
|
|
--with-paranoid-smtpext --disable-autorenamesent \
|
|
--enable-workarounds-for-imap-client-bugs --with-db=gdbm &&
|
|
make &&
|
|
make install &&
|
|
make install-configure</command></userinput></screen>
|
|
|
|
</sect2>
|