source: server/mail/exim/exim-config.xml@ f77c1eb0

10.0 10.1 11.0 11.1 11.2 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since f77c1eb0 was f77c1eb0, checked in by Igor Živković <igor@…>, 19 years ago

updated to exim-4.24

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1169 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.1 KB
Line 
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 &gt;&gt; /etc/aliases &lt;&lt; "EOF"
15postmaster: root
16MAILER-DAEMON: root
17EOF
18exim -v -bi &amp;&amp;
19/usr/sbin/exim -bd -q1m</command></userinput></screen>
20
21<note><para>To protect an existing <filename>/etc/aliases</filename>
22file, we will append these aliases to it if it exists. This file
23should be checked and duplicate aliases removed, if
24present.</para></note>
25
26<para>To start and stop exim on system boot/shutdown create the
27exim boot script with the following commands:</para>
28
29<screen><userinput><command>cat &gt; /etc/rc.d/init.d/exim &lt;&lt; "EOF"
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
36source /etc/sysconfig/rc
37source $rc_functions
38
39case "$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 ;;
65esac
66
67# End $rc_base/init.d/exim
68EOF
69chmod 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 &amp;&amp;
74ln -sf ../init.d/exim ../rc0.d/K25exim &amp;&amp;
75ln -sf ../init.d/exim ../rc1.d/K25exim &amp;&amp;
76ln -sf ../init.d/exim ../rc2.d/K25exim &amp;&amp;
77ln -sf ../init.d/exim ../rc3.d/S35exim &amp;&amp;
78ln -sf ../init.d/exim ../rc4.d/S35exim &amp;&amp;
79ln -sf ../init.d/exim ../rc5.d/S35exim &amp;&amp;
80ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen>
81
82</sect3>
83
84</sect2>
Note: See TracBrowser for help on using the repository browser.