source: server/mail/sendmail/sendmail-config.xml@ 064db32a

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