source: server/mail/sendmail.xml@ 8f400dc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 8f400dc was 8f400dc, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to Sendmail-8.13.4

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

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