source: server/mail/sendmail.xml@ 9f12e36

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 9f12e36 was 9f12e36, checked in by Randy McMurchy <randy@…>, 18 years ago

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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

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