10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
12.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
gimp3
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
v5_1
v5_1-pre1
xry111/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since c163f32 was 547df0bc, checked in by Larry Lawrence <larry@…>, 21 years ago |
chapter 22
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1211 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
2.1 KB
|
Rev | Line | |
---|
[f7f0d44] | 1 | <sect2>
|
---|
[547df0bc] | 2 | <title>Configuring Exim</title>
|
---|
[f7f0d44] | 3 |
|
---|
| 4 | <sect3><title>Config files</title>
|
---|
[f77c1eb0] | 5 |
|
---|
[e80cc95] | 6 | <para><filename>/etc/exim.conf</filename>, <filename>/etc/aliases</filename></para>
|
---|
[f77c1eb0] | 7 |
|
---|
[f7f0d44] | 8 | </sect3>
|
---|
| 9 |
|
---|
[f77c1eb0] | 10 | <sect3><title>Configuration Information</title>
|
---|
| 11 |
|
---|
[547df0bc] | 12 | <para>Create the Exim configuration files with the following commands:</para>
|
---|
[f77c1eb0] | 13 |
|
---|
[377584f] | 14 | <screen><userinput><command>cat >> /etc/aliases << "EOF"</command>
|
---|
[f7f0d44] | 15 | postmaster: root
|
---|
| 16 | MAILER-DAEMON: root
|
---|
[377584f] | 17 | <command>EOF
|
---|
[677a0f7] | 18 | exim -v -bi &&
|
---|
[f77c1eb0] | 19 | /usr/sbin/exim -bd -q1m</command></userinput></screen>
|
---|
[7319b78] | 20 |
|
---|
[f7f0d44] | 21 | <note><para>To protect an existing <filename>/etc/aliases</filename>
|
---|
[f77c1eb0] | 22 | file, we will append these aliases to it if it exists. This file
|
---|
[f7f0d44] | 23 | should be checked and duplicate aliases removed, if
|
---|
| 24 | present.</para></note>
|
---|
| 25 |
|
---|
[547df0bc] | 26 | <para>To start and stop Exim on system boot/shutdown create the
|
---|
[f77c1eb0] | 27 | exim boot script with the following commands:</para>
|
---|
[f7f0d44] | 28 |
|
---|
[377584f] | 29 | <screen><userinput><command>cat > /etc/rc.d/init.d/exim << "EOF"</command>
|
---|
[f7f0d44] | 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 | source /etc/sysconfig/rc
|
---|
| 37 | source $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
|
---|
[377584f] | 68 | <command>EOF
|
---|
[f77c1eb0] | 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>
|
---|
[f7f0d44] | 72 |
|
---|
[f77c1eb0] | 73 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
[f7f0d44] | 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 &&
|
---|
[f77c1eb0] | 80 | ln -sf ../init.d/exim ../rc6.d/K25exim</command></userinput></screen>
|
---|
| 81 |
|
---|
[f7f0d44] | 82 | </sect3>
|
---|
| 83 |
|
---|
| 84 | </sect2>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.