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
|
---|
46 | directories that sendmail uses with the following commands:</para>
|
---|
47 |
|
---|
48 | <screen><userinput><command>groupadd smmsp &&
|
---|
49 | groupadd mail &&
|
---|
50 | useradd -g smmsp -G mail smmsp &&
|
---|
51 | chmod 1777 /tmp &&
|
---|
52 | chmod 1777 /var/mail &&
|
---|
53 | mkdir /var/spool/mqueue</command></userinput></screen>
|
---|
54 |
|
---|
55 | <para>Install <application>Sendmail</application> with the following commands:</para>
|
---|
56 |
|
---|
57 | <screen><userinput><command>cat > devtools/Site/site.config.m4 << "EOF"
|
---|
58 | define(`confMANGRP',`root')
|
---|
59 | define(`confMANOWN',`root')
|
---|
60 | define(`confSBINGRP',`root')
|
---|
61 | define(`confUBINGRP',`root')
|
---|
62 | define(`confUBINOWN',`root')
|
---|
63 | EOF
|
---|
64 | cd sendmail &&
|
---|
65 | sh Build &&
|
---|
66 | cd ../cf/cf &&
|
---|
67 | cp generic-linux.mc sendmail.mc &&
|
---|
68 | mkdir /etc/mail &&
|
---|
69 | sh Build sendmail.mc &&
|
---|
70 | sh Build install-cf &&
|
---|
71 | cd ../../ &&
|
---|
72 | sh 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
|
---|
86 | cat > /etc/mail/aliases << "EOF"
|
---|
87 | postmaster: root
|
---|
88 | MAILER-DAEMON: root
|
---|
89 | EOF
|
---|
90 | cp -R cf/* /etc/mail &&
|
---|
91 | cp cf/cf/{submit,sendmail}.mc /etc/mail &&
|
---|
92 | newaliases -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>
|
---|
95 | init 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
|
---|
100 | how often Sendmail will process the mail queue. A default of 5
|
---|
101 | minutes is used in the init script. Individual workstation users may want to set
|
---|
102 | this as low as 1 minute, large installations handling more mail may
|
---|
103 | want 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
|
---|
130 | file.</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 |
|
---|