1 | <sect2>
|
---|
2 | <title>Installation of <application>Courier</application></title>
|
---|
3 |
|
---|
4 | <para> Before you compile the program, you need to create users and groups that
|
---|
5 | will be expected to be in place when the install script executes. Add the users
|
---|
6 | and groups with the following commands:</para>
|
---|
7 |
|
---|
8 | <screen><userinput><command>groupadd courier &&
|
---|
9 | useradd -c 'Courier Mail Server' -d /dev/null -g courier -s /bin/false courier</command></userinput></screen>
|
---|
10 |
|
---|
11 | <para> You also need to create a bin user. If you already have a user
|
---|
12 | named bin, this step can be safely ignored.</para>
|
---|
13 |
|
---|
14 | <screen><userinput><command>useradd -c 'bin' -d /dev/null -g bin -u 1 bin</command></userinput></screen>
|
---|
15 |
|
---|
16 | <para>This creates a
|
---|
17 | <filename class="directory">/var/run/courier</filename> directory where
|
---|
18 | all the <application>Courier</application> <acronym>MTA</acronym> pid
|
---|
19 | files will exist. This will allow <filename>courierfilter.pid</filename>
|
---|
20 | to be created. Without the <command>courierfilter</command> running, the
|
---|
21 | <application>Courier</application> MTA will not work. Issue the
|
---|
22 | following commands to create
|
---|
23 | <filename class="directory">/var/run/courier</filename>:</para>
|
---|
24 |
|
---|
25 | <screen><userinput><command>mkdir /var/run/courier &&
|
---|
26 | chown courier:courier /var/run/courier</command></userinput></screen>
|
---|
27 |
|
---|
28 | <para>Install <application>courier</application> by running the following commands:</para>
|
---|
29 |
|
---|
30 | <screen><userinput><command>./configure --prefix=/usr --libexecdir=/usr/lib/courier \
|
---|
31 | --datadir=/usr/share/courier --sysconfdir=/etc/courier \
|
---|
32 | --localstatedir=/var/lib/courier --with-piddir=/var/run/courier \
|
---|
33 | --disable-root-check --with-mailuser=courier --with-mailgroup=courier \
|
---|
34 | --with-paranoid-smtpext --disable-autorenamesent \
|
---|
35 | --enable-workarounds-for-imap-client-bugs --with-db=gdbm &&
|
---|
36 | make &&
|
---|
37 | make install &&
|
---|
38 | make install-configure</command></userinput></screen>
|
---|
39 |
|
---|
40 | </sect2>
|
---|