1 | <sect2>
|
---|
2 | <title>Configuring Exim</title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
5 |
|
---|
6 | <para><filename>/etc/exim.conf</filename>, <filename>/etc/aliases</filename></para>
|
---|
7 |
|
---|
8 | </sect3>
|
---|
9 |
|
---|
10 | <sect3><title>Configuration Information</title>
|
---|
11 |
|
---|
12 | <para>Create the Exim configuration files with the following commands:</para>
|
---|
13 |
|
---|
14 | <screen><userinput><command>cat >> /etc/aliases << "EOF"</command>
|
---|
15 | postmaster: root
|
---|
16 | MAILER-DAEMON: root
|
---|
17 | <command>EOF
|
---|
18 | exim -v -bi &&
|
---|
19 | /usr/sbin/exim -bd -q1m</command></userinput></screen>
|
---|
20 |
|
---|
21 | <note><para>To protect an existing <filename>/etc/aliases</filename>
|
---|
22 | file, we will append these aliases to it if it exists. This file
|
---|
23 | should be checked and duplicate aliases removed, if
|
---|
24 | present.</para></note>
|
---|
25 |
|
---|
26 | <para>To start and stop Exim on system boot/shutdown create the
|
---|
27 | exim boot script with the following commands:</para>
|
---|
28 |
|
---|
29 | <screen><userinput><command>cat > /etc/rc.d/init.d/exim << "EOF"</command>
|
---|
30 | #!/bin/sh
|
---|
31 | # Begin $rc_base/init.d/exim
|
---|
32 |
|
---|
33 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
34 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
35 |
|
---|
36 | . /etc/sysconfig/rc
|
---|
37 | . $rc_functions
|
---|
38 |
|
---|
39 | case "$1" in
|
---|
40 |
|
---|
41 | start)
|
---|
42 | echo "Starting exim..."
|
---|
43 | loadproc /usr/sbin/exim -bd -q1m
|
---|
44 | ;;
|
---|
45 |
|
---|
46 | stop)
|
---|
47 | echo "Stopping exim..."
|
---|
48 | killproc exim
|
---|
49 | ;;
|
---|
50 |
|
---|
51 | status)
|
---|
52 | statusproc exim
|
---|
53 | ;;
|
---|
54 |
|
---|
55 | restart)
|
---|
56 | $0 stop
|
---|
57 | sleep 1
|
---|
58 | $0 start
|
---|
59 | ;;
|
---|
60 |
|
---|
61 | *)
|
---|
62 | echo "Usage: $0 {start|stop|status|restart}"
|
---|
63 | exit 1
|
---|
64 | ;;
|
---|
65 | esac
|
---|
66 |
|
---|
67 | # End $rc_base/init.d/exim
|
---|
68 | <command>EOF
|
---|
69 | chmod 755 /etc/rc.d/init.d/exim</command></userinput></screen>
|
---|
70 |
|
---|
71 | <para>Create the run level symlinks with the following commands:</para>
|
---|
72 |
|
---|
73 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
74 | ln -sf ../init.d/exim ../rc0.d/K25exim &&
|
---|
75 | ln -sf ../init.d/exim ../rc1.d/K25exim &&
|
---|
76 | ln -sf ../init.d/exim ../rc2.d/K25exim &&
|
---|
77 | ln -sf ../init.d/exim ../rc3.d/S35exim &&
|
---|
78 | ln -sf ../init.d/exim ../rc4.d/S35exim &&
|
---|
79 | ln -sf ../init.d/exim ../rc5.d/S35exim &&
|
---|
80 | ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen>
|
---|
81 |
|
---|
82 | </sect3>
|
---|
83 |
|
---|
84 | </sect2>
|
---|