source: server/mail/sendmail.xml@ 0af9bb66

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 0af9bb66 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

  • Property mode set to 100644
File size: 15.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!-- Inserted as a reminder to do this. The mention of a test suite
8 is usually right before the root user installation commands. Please
9 delete these 12 (including one blank) lines after you are done.-->
10
11 <!-- Use one of the two mentions below about a test suite,
12 delete the line that is not applicable. Of course, if the
13 test suite uses syntax other than "make check", revise the
14 line to reflect the actual syntax to run the test suite -->
15
16 <!-- <para>This package does not come with a test suite.</para> -->
17 <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
18
19 <!ENTITY sendmail-download-http "http://www.sendmail.org/ftp/sendmail.&sendmail-version;.tar.gz">
20 <!ENTITY sendmail-download-ftp "ftp://ftp.sendmail.org/pub/sendmail/sendmail.&sendmail-version;.tar.gz">
21 <!ENTITY sendmail-md5sum "484cca51f74b5e562b3cf119ceb2f900">
22 <!ENTITY sendmail-size "1.9 MB">
23 <!ENTITY sendmail-buildsize "19.8 MB">
24 <!ENTITY sendmail-time "0.5 SBU">
25]>
26
27<sect1 id="sendmail" xreflabel="Sendmail-&sendmail-version;">
28 <?dbhtml filename="sendmail.html"?>
29
30 <sect1info>
31 <othername>$LastChangedBy$</othername>
32 <date>$Date$</date>
33 <keywordset>
34 <keyword role="package">sendmail.&sendmail-version;.tar</keyword>
35 <keyword role="ftpdir">sendmail</keyword>
36 </keywordset>
37 </sect1info>
38
39 <title>Sendmail-&sendmail-version;</title>
40
41 <indexterm zone="sendmail">
42 <primary sortas="a-Sendmail">Sendmail</primary>
43 </indexterm>
44
45 <sect2 role="package">
46 <title>Introduction to Sendmail</title>
47
48 <para>The <application>Sendmail</application> package contains a Mail
49 Transport Agent (MTA).</para>
50
51 <bridgehead renderas="sect3">Package Information</bridgehead>
52 <itemizedlist spacing="compact">
53 <listitem>
54 <para>Download (HTTP): <ulink url="&sendmail-download-http;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download (FTP): <ulink url="&sendmail-download-ftp;"/></para>
58 </listitem>
59 <listitem>
60 <para>Download MD5 sum: &sendmail-md5sum;</para>
61 </listitem>
62 <listitem>
63 <para>Download size: &sendmail-size;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated disk space required: &sendmail-buildsize;</para>
67 </listitem>
68 <listitem>
69 <para>Estimated build time: &sendmail-time;</para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Sendmail Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required"><xref linkend="procmail"/></para>
77 <!-- <xref linkend="db"/> -->
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional"><xref linkend="openssl"/>,
81 <xref linkend="openldap"/>,
82 <xref linkend="tcpwrappers"/>,
83 <xref linkend="cyrus-sasl"/>,
84 <ulink url="http://www.feep.net/nph/">nph</ulink>, and
85 <xref linkend="gs"/> or <xref linkend="espgs"/> (for creating
86 PDF documentation)</para>
87
88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/sendmail"/></para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of Sendmail</title>
95
96 <para>Before building <application>Sendmail</application>, create the
97 required user, group and directory with the following commands issued as
98 the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role="root"><userinput>groupadd -g 26 smmsp &amp;&amp;
101useradd -c "Sendmail Daemon" -g smmsp -d /dev/null \
102 -s /bin/false -u 26 smmsp &amp;&amp;
103chmod -v 1777 /var/mail &amp;&amp;
104install -v -m700 -d /var/spool/mqueue</userinput></screen>
105
106 <para><emphasis>Note:</emphasis> See the source tree
107 <filename>sendmail/README</filename> file for information on linking
108 optional packages into the build. Use the example below, which adds
109 support for <application>tcpwrappers</application>, SASL, StartTLS
110 (<application>OpenSSL</application>) and
111 <application>OpenLDAP</application>, as a starting point.
112 Of course, modify it to suit your particular needs.</para>
113
114<screen><userinput>cat &gt;&gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"
115<literal>APPENDDEF(`confENVDEF',`-DSTARTTLS -DTCPWRAPPERS -DSASL -DLDAPMAP')
116APPENDDEF(`confLIBS', `-lssl -lcrypto -lwrap -lsasl2 -lldap -llber')
117APPENDDEF(`confINCDIRS', `-I/usr/include/sasl')</literal>
118EOF</userinput></screen>
119
120 <para>Install <application>Sendmail</application> with the following
121 commands:</para>
122
123<screen><userinput>cat &gt;&gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"
124<literal>define(`confMANGRP',`root')
125define(`confMANOWN',`root')
126define(`confSBINGRP',`root')
127define(`confUBINGRP',`root')
128define(`confUBINOWN',`root')</literal>
129EOF
130cd sendmail &amp;&amp;
131sh Build &amp;&amp;
132cd ../cf/cf &amp;&amp;
133cp generic-linux.mc sendmail.mc &amp;&amp;
134sh Build sendmail.cf</userinput></screen>
135
136 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
137
138<screen role="root"><userinput>install -v -d -m755 /etc/mail &amp;&amp;
139sh Build install-cf &amp;&amp;
140
141cd ../.. &amp;&amp;
142sh Build install &amp;&amp;
143
144install -v -m644 cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
145cp -v -R cf/* /etc/mail &amp;&amp;
146
147install -v -m755 -d /usr/share/doc/sendmail-&sendmail-version;/{cf,sendmail} &amp;&amp;
148install -v -m644 \
149 CACerts FAQ KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \
150 /usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
151install -v -m644 sendmail/{README,SECURITY,TRACEFLAGS,TUNING} \
152 /usr/share/doc/sendmail-&sendmail-version;/sendmail &amp;&amp;
153install -v -m644 cf/README /usr/share/doc/sendmail-&sendmail-version;/cf &amp;&amp;
154
155for manpage in sendmail editmap mailstats makemap praliases smrsh
156do
157 install -v -m444 $manpage/$manpage.8 /usr/share/man/man8
158done &amp;&amp;
159install -v -m444 sendmail/aliases.5 /usr/share/man/man5 &amp;&amp;
160install -v -m444 sendmail/mailq.1 /usr/share/man/man1 &amp;&amp;
161install -v -m444 sendmail/newaliases.1 /usr/share/man/man1 &amp;&amp;
162install -v -m444 vacation/vacation.1 /usr/share/man/man1</userinput></screen>
163
164 <para>Install the <application>Sendmail</application> Installation and
165 Operations Guide with the following commands:</para>
166
167<screen><userinput>cd doc/op &amp;&amp;
168sed -i 's/groff/GROFF_NO_SGR=1 groff/' Makefile &amp;&amp;
169make op.txt op.pdf</userinput></screen>
170
171 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
172
173<screen role="root"><userinput>install -v -d -m755 /usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
174install -v -m644 op.ps op.txt op.pdf /usr/share/doc/sendmail-&sendmail-version; &amp;&amp;
175cd ../..</userinput></screen>
176
177 <para><emphasis>Note:</emphasis> remove <filename>op.pdf</filename> from
178 the <command>make</command> and <command>install</command> commands if
179 you don't have <application>Ghostscript</application> installed.</para>
180
181 </sect2>
182
183 <sect2 role="commands">
184 <title>Command Explanations</title>
185
186 <para><command>cat &gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"</command>:
187 This creates a configuration file changing some of the default settings.</para>
188
189 <para><command>sh Build; sh Build sendmail.cf; sh Build install-cf;
190 sh Build install</command>: <application>Sendmail</application> uses an
191 <application>m4</application> based build script to create the various
192 <filename>Makefile</filename>s. These commands build and install the
193 package.</para>
194
195 <para><command>for manpage in...;do...;done; install ...</command>: The man
196 pages are installed already formatted and <command>man</command> displays
197 them somewhat garbled. These commands replace the formatted pages with
198 pages <command>man</command> can display properly.</para>
199
200 </sect2>
201
202 <sect2 role="configuration">
203 <title>Configuring Sendmail</title>
204
205 <sect3 id="sendmail-config">
206 <title>Config Files</title>
207
208 <para><filename>/etc/mail/*</filename></para>
209
210 <indexterm zone="sendmail sendmail-config">
211 <primary sortas="e-etc-mail">/etc/mail/*</primary>
212 </indexterm>
213
214 </sect3>
215
216 <sect3>
217 <title>Configuration Information</title>
218
219 <para>Create the <filename>/etc/mail/local-host-names</filename> and
220 <filename>/etc/mail/aliases</filename> files using the following
221 commands as the <systemitem class="username">root</systemitem>
222 user:</para>
223
224<screen role="root"><userinput>echo $(hostname) > /etc/mail/local-host-names
225cat &gt; /etc/mail/aliases &lt;&lt; "EOF"
226<literal>postmaster: root
227MAILER-DAEMON: root</literal>
228
229EOF
230newaliases -v</userinput></screen>
231
232 <para><application>Sendmail</application>'s primary configuration file,
233 <filename>/etc/mail/sendmail.cf</filename>, is complex and not meant to be
234 directly edited. The recommended method for changing it is to modify
235 <filename>/etc/mail/sendmail.mc</filename> and various
236 <application>m4</application> files, then run the <command>m4</command>
237 macro processor from within
238 <filename class='directory'>/etc/mail</filename> as follows:</para>
239
240<screen role="root"><userinput>m4 m4/cf.m4 sendmail.mc > sendmail.cf</userinput></screen>
241
242 <para>A full explanation of the files to modify, and the available
243 parameters can be found in <filename>/etc/mail/README</filename>.</para>
244
245 </sect3>
246
247 <sect3 id="sendmail-init">
248 <title>Boot Script</title>
249
250 <para>To automate the running of <application>Sendmail</application>
251 at startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
252 init script included in the
253 <xref linkend="bootscripts"/> package.</para>
254
255 <indexterm zone="sendmail sendmail-init">
256 <primary sortas="f-sendmail-init">sendmail</primary>
257 </indexterm>
258
259<screen role="root"><userinput>make install-sendmail</userinput></screen>
260
261 <note>
262 <para>The -qNm option to <command>sendmail</command>, where N is number
263 of minutes, controls how often <application>Sendmail</application> will
264 process the mail queue. A default of 5 minutes is used in the init
265 script. Individual workstation users may want to set this as low as 1
266 minute, large installations handling more mail may want to set it
267 higher.</para>
268 </note>
269
270 </sect3>
271
272 </sect2>
273
274 <sect2 role="content">
275 <title>Contents</title>
276
277 <segmentedlist>
278 <segtitle>Installed Programs</segtitle>
279 <segtitle>Installed Libraries</segtitle>
280 <segtitle>Installed Directories</segtitle>
281
282 <seglistitem>
283 <seg>editmap, hoststat, mailstats, mailq, makemap, newaliases,
284 praliases, purgestat, sendmail, smrsh, and vacation</seg>
285 <seg>None</seg>
286 <seg>/etc/mail, /usr/share/doc/sendmail-&sendmail-version;,
287 /var/spool/mqueue, and /var/spool/clientmqueue</seg>
288 </seglistitem>
289 </segmentedlist>
290
291 <variablelist>
292 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
293 <?dbfo list-presentation="list"?>
294 <?dbhtml list-presentation="table"?>
295
296 <varlistentry id="editmap">
297 <term><command>editmap</command></term>
298 <listitem>
299 <para>queries and edits <application>Sendmail</application> map
300 files.</para>
301 <indexterm zone="sendmail editmap">
302 <primary sortas="b-editmap">editmap</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="hoststat">
308 <term><command>hoststat</command></term>
309 <listitem>
310 <para>prints <application>Sendmail</application>'s persistent host
311 status.</para>
312 <indexterm zone="sendmail hoststat">
313 <primary sortas="b-hoststat">hoststat</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="mailstats">
319 <term><command>mailstats</command></term>
320 <listitem>
321 <para>displays <application>Sendmail</application> statistics.</para>
322 <indexterm zone="sendmail mailstats">
323 <primary sortas="b-mailstats">mailstats</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="mailq-sendmail">
329 <term><command>mailq</command></term>
330 <listitem>
331 <para>prints a summary of outbound mail messages waiting for
332 delivery.</para>
333 <indexterm zone="sendmail mailq-sendmail">
334 <primary sortas="b-mailq">mailq</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="makemap">
340 <term><command>makemap</command></term>
341 <listitem>
342 <para>creates <application>Sendmail</application> map files.</para>
343 <indexterm zone="sendmail makemap">
344 <primary sortas="b-makemap">makemap</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="newaliases-sendmail">
350 <term><command>newaliases</command></term>
351 <listitem>
352 <para>rebuilds <filename>/etc/mail/aliases.db</filename> from the
353 contents of <filename>/etc/mail/aliases</filename>.</para>
354 <indexterm zone="sendmail newaliases-sendmail">
355 <primary sortas="b-newaliases">newaliases</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="praliases">
361 <term><command>praliases</command></term>
362 <listitem>
363 <para>displays current <application>Sendmail</application>
364 aliases.</para>
365 <indexterm zone="sendmail praliases">
366 <primary sortas="b-praliases">praliases</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="purgestat">
372 <term><command>purgestat</command></term>
373 <listitem>
374 <para> causes <application>Sendmail</application> to clear (purge)
375 all its host-status information.</para>
376 <indexterm zone="sendmail purgestat">
377 <primary sortas="b-purgestat">purgestat</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 <varlistentry id="sendmail-prog-sendmail">
383 <term><command>sendmail</command></term>
384 <listitem>
385 <para>is the <application>Sendmail</application> mail transport
386 agent.</para>
387 <indexterm zone="sendmail sendmail-prog-sendmail">
388 <primary sortas="b-sendmail">sendmail</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="smrsh">
394 <term><command>smrsh</command></term>
395 <listitem>
396 <para>is a restricted shell for
397 <application>Sendmail</application>.</para>
398 <indexterm zone="sendmail smrsh">
399 <primary sortas="b-smrsh">smrsh</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 <varlistentry id="vacation-sendmail">
405 <term><command>vacation</command></term>
406 <listitem>
407 <para>is an email auto responder.</para>
408 <indexterm zone="sendmail vacation-sendmail">
409 <primary sortas="b-vacation">vacation</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 </variablelist>
415
416 </sect2>
417
418</sect1>
Note: See TracBrowser for help on using the repository browser.