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

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 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fd5d65c was fd5d65c, checked in by Igor Živković <igor@…>, 20 years ago

fixed sendmail config instructions (dont assume sendmail source in /usr/src)

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

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[dbeecd7]1<sect2>
[547df0bc]2<title>Configuring <application>Sendmail</application></title>
[dbeecd7]3
4<sect3><title>Config files</title>
[681ad68]5<para><filename>/etc/mail/*</filename></para>
[dbeecd7]6</sect3>
7
[681ad68]8<sect3><title>Configuration Information</title>
9
10<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
11cat &gt; /etc/mail/aliases &lt;&lt; "EOF"
[dbeecd7]12postmaster: root
13MAILER-DAEMON: root
[681ad68]14EOF
[fd5d65c]15cp -R cf/* /etc/mail &amp;&amp;
16cp cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
[681ad68]17newaliases -v</command></userinput></screen>
[dbeecd7]18
[547df0bc]19<para>To start and stop Sendmail on system boot/shutdown create the
20<command>sendmail</command> boot script with the following commands:</para>
[dbeecd7]21
[b9e96a3]22<note><para>The -qNm option, where N is number of minutes, controls
[681ad68]23how often Sendmail will process the mail queue. A default of 5
24minutes is used here. Individual workstation users may want to set
[b9e96a3]25this as low as 1 minute, large installations handling more mail will
26want to set it higher.</para></note>
27
[681ad68]28<screen><userinput><command>cat &gt; /etc/rc.d/init.d/sendmail &lt;&lt; "EOF"
[dbeecd7]29#!/bin/sh
30# Begin $rc_base/init.d/sendmail
31
32# Based on sysklogd script from LFS-3.1 and earlier.
33# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
34
35source /etc/sysconfig/rc
36source $rc_functions
37
38case "$1" in
39
40 start)
41 echo "Starting sendmail..."
[b9e96a3]42 loadproc /usr/sbin/sendmail -bs -bd -q5m start
[dbeecd7]43 ;;
44
45 stop)
46 echo "Stopping Sendmail..."
47 killproc sendmail
48 ;;
49
50 status)
51 statusproc sendmail
52 ;;
53
54 restart)
55 $0 stop
56 sleep 1
57 $0 start
58 ;;
59
60 *)
61 echo "Usage: $0 {start|stop|status|restart}"
62 exit 1
63 ;;
64esac
65
66# End $rc_base/init.d/sendmail
[681ad68]67EOF
68chmod 755 /etc/rc.d/init.d/sendmail</command></userinput></screen>
[dbeecd7]69
[a75063d4]70<para>Create the run level symlinks with the following commands:</para>
[dbeecd7]71
[681ad68]72<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
[dbeecd7]73ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &amp;&amp;
74ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &amp;&amp;
75ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &amp;&amp;
76ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &amp;&amp;
77ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &amp;&amp;
78ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &amp;&amp;
[a75063d4]79ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</command></userinput></screen></sect3>
[dbeecd7]80
81</sect2>
Note: See TracBrowser for help on using the repository browser.