source: server/mail/sendmail.xml@ 0931098

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 0931098 was 0931098, checked in by DJ Lucas <dj@…>, 20 years ago

Part VI xml update + bz815

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

  • Property mode set to 100644
File size: 5.6 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 "1.8 MB">
10<!ENTITY sendmail-buildsize "13 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 Transport Agent
23(<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<sect4><title>Required</title>
36<para><xref linkend="db"/> and <xref linkend="procmail"/>
37</para></sect4>
38</sect3>
39
40</sect2>
41
42<sect2>
43<title>Installation of <application>Sendmail</application></title>
44
45<para>Before building <application>Sendmail</application>, we need to create users, groups and
46directories that sendmail uses with the following commands:</para>
47
48<screen><userinput><command>groupadd smmsp &amp;&amp;
49groupadd mail &amp;&amp;
50useradd -g smmsp -G mail smmsp &amp;&amp;
51chmod 1777 /tmp &amp;&amp;
52chmod 1777 /var/mail &amp;&amp;
53mkdir /var/spool/mqueue</command></userinput></screen>
54
55<para>Install <application>Sendmail</application> with the following commands:</para>
56
57<screen><userinput><command>cat &gt; devtools/Site/site.config.m4 &lt;&lt; "EOF"
58define(`confMANGRP',`root')
59define(`confMANOWN',`root')
60define(`confSBINGRP',`root')
61define(`confUBINGRP',`root')
62define(`confUBINOWN',`root')
63EOF
64cd sendmail &amp;&amp;
65sh Build &amp;&amp;
66cd ../cf/cf &amp;&amp;
67cp generic-linux.mc sendmail.mc &amp;&amp;
68mkdir /etc/mail &amp;&amp;
69sh Build sendmail.mc &amp;&amp;
70sh Build install-cf &amp;&amp;
71cd ../../ &amp;&amp;
72sh Build install</command></userinput></screen>
73
74</sect2>
75
76<sect2>
77<title>Configuring <application>Sendmail</application></title>
78
79<sect3><title>Config files</title>
80<para><filename>/etc/mail/*</filename></para>
81</sect3>
82
83<sect3><title>Configuration Information</title>
84
85<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
86cat &gt; /etc/mail/aliases &lt;&lt; "EOF"
87postmaster: root
88MAILER-DAEMON: root
89EOF
90cp -R cf/* /etc/mail &amp;&amp;
91cp cf/cf/{submit,sendmail}.mc /etc/mail &amp;&amp;
92newaliases -v</command></userinput></screen>
93
94<para>To automate the running of Sendmail at startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
95init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
96
97<screen><userinput><command>make install-sendmail</command></userinput></screen>
98
99<note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls
100how often Sendmail will process the mail queue. A default of 5
101minutes is used in the init script. Individual workstation users may want to set
102this as low as 1 minute, large installations handling more mail may
103want to set it higher.</para></note>
104
105</sect3>
106</sect2>
107
108<sect2>
109<title>Contents</title>
110
111<para>The <application>Sendmail</application> package contains
112<command>mail.local</command>,
113<command>rmail</command>,
114<command>smrsh</command>,
115<command>editmap</command>,
116<command>makemap</command>,
117<command>mailq</command>,
118<command>newaliases</command>,
119<command>sendmail</command>,
120<command>vacation</command>,
121<command>praliases</command> and
122<command>mailstats</command>.
123</para>
124</sect2>
125
126<sect2><title>Description</title>
127
128<sect3><title>mail.local</title>
129<para><command>mail.local</command> appends its standard input to a user's mail
130file.</para></sect3>
131
132<sect3><title>rmail</title>
133<para><command>rmail</command> interprets incoming mail received via
134<acronym>UUCP</acronym>.</para></sect3>
135
136<sect3><title>smrsh</title>
137<para><command>smrsh</command> is a restricted shell for Sendmail.</para></sect3>
138
139<sect3><title>editmap</title>
140<para><command>editmap</command> queries and edits Sendmail map files.</para></sect3>
141
142<sect3><title>makemap</title>
143<para><command>makemap</command> creates Sendmail map files.</para></sect3>
144
145<sect3><title>mailq</title>
146<para><command>mailq</command> prints a summary of waiting mail messages.</para></sect3>
147
148<sect3><title>newaliases</title>
149<para><command>newaliases</command> rebuilds <filename>/etc/mail/aliases.db</filename>.
150</para></sect3>
151
152<sect3><title>sendmail</title>
153<para><command>sendmail</command> is the Sendmail mail transport agent.</para></sect3>
154
155<sect3><title>vacation</title>
156<para><command>vacation</command> is an email auto responder.</para></sect3>
157
158<sect3><title>praliases</title>
159<para><command>praliases</command> displays current Sendmail aliases.</para></sect3>
160
161<sect3><title>mailstats</title>
162<para><command>mailstats</command> displays Sendmail statistics.</para></sect3>
163
164</sect2>
165
166</sect1>
167
Note: See TracBrowser for help on using the repository browser.