source: server/mail/sendmail/sendmail-config.xml@ dbeecd7

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 dbeecd7 was dbeecd7, checked in by Larry Lawrence <larry@…>, 22 years ago

added sendmail

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

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[dbeecd7]1<sect2>
2<title>Configuring sendmail</title>
3
4<sect3><title>Config files</title>
5<para><userinput>/etc/mail/aliases.db, /etc/mail/sendmail.cf,
6/etc/mail/submit.cf</userinput> and
7<userinput>/etc/mail/local-host-names</userinput></para>
8</sect3>
9
10<sect3><title>Configuring sendmail</title>
11<para><screen><userinput>
12echo `hostname` > /etc/mail/local-host-names
13cat > /etc/mail/aliases << "EOF"
14postmaster: root
15MAILER-DAEMON: root
16EOF
17sendmail -v -bi
18/usr/sbin/sendmail -bs -bd -q1m
19</userinput></screen></para>
20
21<para>To start and stop sendmail on system boot/shutdown create the
22sendmail boot script with the following commands: </para>
23
24<para><screen><userinput>cat &gt; /etc/rc.d/init.d/sendmail &lt;&lt; "EOF"</userinput>
25#!/bin/sh
26# Begin $rc_base/init.d/sendmail
27
28# Based on sysklogd script from LFS-3.1 and earlier.
29# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
30
31source /etc/sysconfig/rc
32source $rc_functions
33
34case "$1" in
35
36 start)
37 echo "Starting sendmail..."
38 loadproc sendmail -bs -bd -q1m start
39 ;;
40
41 stop)
42 echo "Stopping Sendmail..."
43 killproc sendmail
44 ;;
45
46 status)
47 statusproc sendmail
48 ;;
49
50 restart)
51 $0 stop
52 sleep 1
53 $0 start
54 ;;
55
56 *)
57 echo "Usage: $0 {start|stop|status|restart}"
58 exit 1
59 ;;
60esac
61
62# End $rc_base/init.d/sendmail
63<userinput>EOF
64chmod 755 /etc/rc.d/init.d/sendmail</userinput></screen></para>
65
66<para>Create the run level symlinks with the following commands:
67
68<screen><userinput>cd /etc/rc.d/init.d &amp;&amp;
69ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &amp;&amp;
70ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &amp;&amp;
71ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &amp;&amp;
72ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &amp;&amp;
73ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &amp;&amp;
74ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &amp;&amp;
75ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</userinput></screen></para>
76</sect3>
77
78</sect2>
Note: See TracBrowser for help on using the repository browser.