source: server/mail/sendmail.xml@ 12d871a

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 12d871a was 12d871a, checked in by Randy McMurchy <randy@…>, 20 years ago

Updated to Nail-10.8 and added an optional dependency and additional configuration instructions to Sendmail

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

  • Property mode set to 100644
File size: 7.5 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</command></userinput></screen>
84
85<para><emphasis>Note:</emphasis> See the source tree
86<filename>sendmail/README</filename> file for information on linking optional
87packages into the build.</para>
88
89<para>Install the <application>Sendmail</application> Installation and
90Operations Guide with the following commands:</para>
91
92<screen><userinput><command>cd doc/op &amp;&amp;
93sed -i -e 's/groff/GROFF_NO_SGR=1 groff/' Makefile &amp;&amp;
94make op.txt op.pdf &amp;&amp;
95install -d -m 755 /usr/share/doc/sendmail/&sendmail-version; &amp;&amp;
96install -m 644 op.ps op.txt op.pdf /usr/share/doc/sendmail/&sendmail-version; &amp;&amp;
97cd ../../</command></userinput></screen>
98
99</sect2>
100
101<sect2>
102<title>Configuring <application>Sendmail</application></title>
103
104<sect3><title>Config files</title>
105<para><filename>/etc/mail/*</filename></para>
106</sect3>
107
108<sect3><title>Configuration Commands</title>
109
110<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
111cat &gt; /etc/mail/aliases &lt;&lt; "EOF"
112postmaster: root
113MAILER-DAEMON: root
114EOF
115cp -R cf/* /etc/mail &amp;&amp;
116cp cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
117newaliases -v</command></userinput></screen>
118
119<para><application>Sendmail</application>'s primary configuration file,
120<filename>/etc/mail/sendmail.cf</filename>, is complex and not meant to be
121directly edited. The recommended method to make changes is to modify
122<filename>/etc/mail/sendmail.mc</filename>, and various
123<application>m4</application> files, then run the <command>m4</command>
124macro processor from within <filename class='directory'>/etc/mail</filename>
125as follows:</para>
126
127<screen><userinput><command>m4 m4/cf.m4 sendmail.mc > sendmail.cf</command></userinput></screen>
128
129<para>A full explanation of the files to modify, and the available parameters
130can be found in <filename>/etc/mail/README</filename>.</para>
131
132<para>To automate the running of <application>Sendmail</application> at
133startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
134init script included in the
135<xref linkend="intro-important-bootscripts"/> package.</para>
136
137<screen><userinput><command>make install-sendmail</command></userinput></screen>
138
139<note><para>The -qNm option to <command>sendmail</command>, where N is number
140of minutes, controls how often <application>Sendmail</application> will process
141the mail queue. A default of 5 minutes is used in the init script. Individual
142workstation users may want to set this as low as 1 minute, large installations
143handling more mail may want to set it higher.</para></note>
144
145</sect3>
146</sect2>
147
148<sect2>
149<title>Contents</title>
150
151<para>The <application>Sendmail</application> package contains
152<command>hoststat</command>,
153<command>purgestat</command>,
154<command>smrsh</command>,
155<command>editmap</command>,
156<command>makemap</command>,
157<command>mailq</command>,
158<command>newaliases</command>,
159<command>sendmail</command>,
160<command>vacation</command>,
161<command>praliases</command> and
162<command>mailstats</command>.
163</para>
164</sect2>
165
166<sect2><title>Description</title>
167
168<sect3><title>hoststat</title>
169<para><command>hoststat</command> prints <application>Sendmail</application>'s
170persistent host status.</para></sect3>
171
172<sect3><title>purgestat</title>
173<para><command>purgestat</command> causes <application>Sendmail</application>
174to clear (purge) all its host-status information.</para></sect3>
175
176<sect3><title>smrsh</title>
177<para><command>smrsh</command> is a restricted shell for
178<application>Sendmail</application>.</para></sect3>
179
180<sect3><title>editmap</title>
181<para><command>editmap</command> queries and edits
182<application>Sendmail</application> map files.</para></sect3>
183
184<sect3><title>makemap</title>
185<para><command>makemap</command> creates
186<application>Sendmail</application> map files.</para></sect3>
187
188<sect3><title>mailq</title>
189<para><command>mailq</command> prints a summary of outbound mail messages
190waiting for delivery.</para></sect3>
191
192<sect3><title>newaliases</title>
193<para><command>newaliases</command> rebuilds
194<filename>/etc/mail/aliases.db</filename>.</para></sect3>
195
196<sect3><title>sendmail</title>
197<para><command>sendmail</command> is the <application>Sendmail</application>
198mail transport agent.</para></sect3>
199
200<sect3><title>vacation</title>
201<para><command>vacation</command> is an email auto responder.</para></sect3>
202
203<sect3><title>praliases</title>
204<para><command>praliases</command> displays current
205<application>Sendmail</application> aliases.</para></sect3>
206
207<sect3><title>mailstats</title>
208<para><command>mailstats</command> displays
209<application>Sendmail</application> statistics.</para></sect3>
210
211</sect2>
212
213</sect1>
214
Note: See TracBrowser for help on using the repository browser.