source: server/mail/sendmail.xml@ b40beacc

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 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b40beacc was b40beacc, checked in by Randy McMurchy <randy@…>, 20 years ago

Added instructions to install unformatted man pages and added a 'Command explanations' section to Sendmail

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

  • Property mode set to 100644
File size: 9.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!ENTITY sendmail-download-ftp "ftp://ftp.sendmail.org/pub/sendmail/sendmail.&sendmail-version;.tar.gz">
8<!ENTITY sendmail-download-http "http://www.sendmail.org/ftp/sendmail.&sendmail-version;.tar.gz">
9<!ENTITY sendmail-size "2.0 MB">
10<!ENTITY sendmail-buildsize "18 MB">
11<!ENTITY sendmail-time "0.43 SBU">
12
13]>
14
15<sect1 id="sendmail" xreflabel="Sendmail-&sendmail-version;">
16<?dbhtml filename="sendmail.html"?>
17<title>Sendmail-&sendmail-version;</title>
18
19<sect2>
20<title>Introduction to <application>Sendmail</application></title>
21
22<para>The <application>Sendmail</application> package contains a Mail
23Transport Agent (<acronym>MTA</acronym>).</para>
24
25<sect3><title>Package information</title>
26<itemizedlist spacing='compact'>
27<listitem><para>Download (HTTP): <ulink url="&sendmail-download-http;"/></para></listitem>
28<listitem><para>Download (FTP): <ulink url="&sendmail-download-ftp;"/></para></listitem>
29<listitem><para>Download size: &sendmail-size;</para></listitem>
30<listitem><para>Estimated Disk space required: &sendmail-buildsize;</para></listitem>
31<listitem><para>Estimated build time: &sendmail-time;</para></listitem></itemizedlist>
32</sect3>
33
34<sect3><title><application>Sendmail</application> dependencies</title>
35
36<sect4><title>Required</title>
37<para><xref linkend="db"/> and <xref linkend="procmail"/>
38</para></sect4>
39
40<sect4><title>Optional</title>
41<para><xref linkend="openssl"/>, <xref linkend="openldap"/>,
42<xref linkend="tcpwrappers"/>, <xref linkend="pcre"/>,
43<ulink url="http://www-dev.cites.uiuc.edu/ph/nph/">nph</ulink>,
44<ulink url="http://asg.web.cmu.edu/sasl/">Cyrus SASL</ulink> and
45<xref linkend="gs"/> (for creating <acronym>PDF</acronym> documentation)
46</para></sect4>
47</sect3>
48
49</sect2>
50
51<sect2>
52<title>Installation of <application>Sendmail</application></title>
53
54<para>Before building <application>Sendmail</application>, create the users,
55groups and directories that <application>Sendmail</application> requires
56with the following commands:</para>
57
58<screen><userinput><command>groupadd smmsp &amp;&amp;
59groupadd mail &amp;&amp;
60useradd -g smmsp -G mail smmsp &amp;&amp;
61chmod 1777 /tmp &amp;&amp;
62chmod 1777 /var/mail &amp;&amp;
63mkdir /var/spool/mqueue</command></userinput></screen>
64
65<para>Install <application>Sendmail</application> with the following
66commands:</para>
67
68<screen><userinput><command>cat &gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"
69define(`confMANGRP',`root')
70define(`confMANOWN',`root')
71define(`confSBINGRP',`root')
72define(`confUBINGRP',`root')
73define(`confUBINOWN',`root')
74EOF
75cd sendmail &amp;&amp;
76sh Build &amp;&amp;
77cd ../cf/cf &amp;&amp;
78cp generic-linux.mc sendmail.mc &amp;&amp;
79mkdir /etc/mail &amp;&amp;
80sh Build sendmail.cf &amp;&amp;
81sh Build install-cf &amp;&amp;
82cd ../../ &amp;&amp;
83sh Build install &amp;&amp;
84for manpage in sendmail editmap mailstats makemap praliases smrsh
85do
86install -o root -g root -m444 $manpage/$manpage.8 /usr/share/man/man8
87done &amp;&amp;
88install -o root -g root -m444 sendmail/aliases.5 /usr/share/man/man5 &amp;&amp;
89install -o root -g root -m444 sendmail/mailq.1 /usr/share/man/man1 &amp;&amp;
90install -o root -g root -m444 sendmail/newaliases.1 /usr/share/man/man1 &amp;&amp;
91install -o root -g root -m444 vacation/vacation.1 /usr/share/man/man1</command></userinput></screen>
92
93<para><emphasis>Note:</emphasis> See the source tree
94<filename>sendmail/README</filename> file for information on linking optional
95packages into the build.</para>
96
97<para>Install the <application>Sendmail</application> Installation and
98Operations Guide with the following commands:</para>
99
100<screen><userinput><command>cd doc/op &amp;&amp;
101sed -i -e 's/groff/GROFF_NO_SGR=1 groff/' Makefile &amp;&amp;
102make op.txt op.pdf &amp;&amp;
103install -d -m 755 /usr/share/doc/sendmail/&sendmail-version; &amp;&amp;
104install -m 644 op.ps op.txt op.pdf /usr/share/doc/sendmail/&sendmail-version; &amp;&amp;
105cd ../../</command></userinput></screen>
106
107<para><emphasis>Note:</emphasis> remove <filename>op.pdf</filename> from the
108<command>make</command> and <command>install</command> commands if you don't
109have <application>Ghostscript</application> installed.</para>
110
111</sect2>
112
113<sect2>
114<title>Command explanations</title>
115
116<para><command>cat &gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"</command>:
117This creates a configuration file changing some of the default settings.</para>
118
119<screen><userinput><command>sh Build
120sh Build sendmail.cf
121sh Build install-cf
122sh Build install</command></userinput></screen>
123
124<para><application>Sendmail</application> uses an <application>m4</application>
125based build script to create the various <filename>Makefile</filename>'s. These
126commands build and install the package.</para>
127
128<screen><userinput><command>for manpage in...;do...;done:
129install ...
130install ...</command></userinput></screen>
131
132<para> The man pages are installed already formatted and <command>man</command>
133displays them somewhat garbled. These commands replace the formatted pages with
134pages <command>man</command> can display properly.</para>
135
136</sect2>
137
138<sect2>
139<title>Configuring <application>Sendmail</application></title>
140
141<sect3><title>Config files</title>
142<para><filename>/etc/mail/*</filename></para>
143</sect3>
144
145<sect3><title>Configuration Commands</title>
146
147<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
148cat &gt; /etc/mail/aliases &lt;&lt; "EOF"
149postmaster: root
150MAILER-DAEMON: root
151EOF
152cp -R cf/* /etc/mail &amp;&amp;
153cp cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
154newaliases -v</command></userinput></screen>
155
156<para><application>Sendmail</application>'s primary configuration file,
157<filename>/etc/mail/sendmail.cf</filename>, is complex and not meant to be
158directly edited. The recommended method to make changes is to modify
159<filename>/etc/mail/sendmail.mc</filename>, and various
160<application>m4</application> files, then run the <command>m4</command>
161macro processor from within <filename class='directory'>/etc/mail</filename>
162as follows:</para>
163
164<screen><userinput><command>m4 m4/cf.m4 sendmail.mc > sendmail.cf</command></userinput></screen>
165
166<para>A full explanation of the files to modify, and the available parameters
167can be found in <filename>/etc/mail/README</filename>.</para>
168
169<para>To automate the running of <application>Sendmail</application> at
170startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
171init script included in the
172<xref linkend="intro-important-bootscripts"/> package.</para>
173
174<screen><userinput><command>make install-sendmail</command></userinput></screen>
175
176<note><para>The -qNm option to <command>sendmail</command>, where N is number
177of minutes, controls how often <application>Sendmail</application> will process
178the mail queue. A default of 5 minutes is used in the init script. Individual
179workstation users may want to set this as low as 1 minute, large installations
180handling more mail may want to set it higher.</para></note>
181
182</sect3>
183</sect2>
184
185<sect2>
186<title>Contents</title>
187
188<para>The <application>Sendmail</application> package contains
189<command>hoststat</command>,
190<command>purgestat</command>,
191<command>smrsh</command>,
192<command>editmap</command>,
193<command>makemap</command>,
194<command>mailq</command>,
195<command>newaliases</command>,
196<command>sendmail</command>,
197<command>vacation</command>,
198<command>praliases</command> and
199<command>mailstats</command>.
200</para>
201</sect2>
202
203<sect2><title>Description</title>
204
205<sect3><title>hoststat</title>
206<para><command>hoststat</command> prints <application>Sendmail</application>'s
207persistent host status.</para></sect3>
208
209<sect3><title>purgestat</title>
210<para><command>purgestat</command> causes <application>Sendmail</application>
211to clear (purge) all its host-status information.</para></sect3>
212
213<sect3><title>smrsh</title>
214<para><command>smrsh</command> is a restricted shell for
215<application>Sendmail</application>.</para></sect3>
216
217<sect3><title>editmap</title>
218<para><command>editmap</command> queries and edits
219<application>Sendmail</application> map files.</para></sect3>
220
221<sect3><title>makemap</title>
222<para><command>makemap</command> creates
223<application>Sendmail</application> map files.</para></sect3>
224
225<sect3><title>mailq</title>
226<para><command>mailq</command> prints a summary of outbound mail messages
227waiting for delivery.</para></sect3>
228
229<sect3><title>newaliases</title>
230<para><command>newaliases</command> rebuilds
231<filename>/etc/mail/aliases.db</filename>.</para></sect3>
232
233<sect3><title>sendmail</title>
234<para><command>sendmail</command> is the <application>Sendmail</application>
235mail transport agent.</para></sect3>
236
237<sect3><title>vacation</title>
238<para><command>vacation</command> is an email auto responder.</para></sect3>
239
240<sect3><title>praliases</title>
241<para><command>praliases</command> displays current
242<application>Sendmail</application> aliases.</para></sect3>
243
244<sect3><title>mailstats</title>
245<para><command>mailstats</command> displays
246<application>Sendmail</application> statistics.</para></sect3>
247
248</sect2>
249
250</sect1>
251
Note: See TracBrowser for help on using the repository browser.