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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e80cc95 was e80cc95, checked in by Larry Lawrence <larry@…>, 21 years ago

config files edit

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