[0931098] | 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">
|
---|
[65e6ea9] | 9 | <!ENTITY sendmail-size "2.0 MB">
|
---|
| 10 | <!ENTITY sendmail-buildsize "18 MB">
|
---|
[0931098] | 11 | <!ENTITY sendmail-time "0.43 SBU">
|
---|
| 12 |
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[547df0bc] | 15 | <sect1 id="sendmail" xreflabel="Sendmail-&sendmail-version;">
|
---|
[00bb024c] | 16 | <?dbhtml filename="sendmail.html"?>
|
---|
[547df0bc] | 17 | <title>Sendmail-&sendmail-version;</title>
|
---|
[f45b1953] | 18 |
|
---|
[0931098] | 19 | <sect2>
|
---|
| 20 | <title>Introduction to <application>Sendmail</application></title>
|
---|
| 21 |
|
---|
[65e6ea9] | 22 | <para>The <application>Sendmail</application> package contains a Mail
|
---|
| 23 | Transport Agent (<acronym>MTA</acronym>).</para>
|
---|
[0931098] | 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>
|
---|
[65e6ea9] | 35 |
|
---|
[0931098] | 36 | <sect4><title>Required</title>
|
---|
| 37 | <para><xref linkend="db"/> and <xref linkend="procmail"/>
|
---|
| 38 | </para></sect4>
|
---|
[65e6ea9] | 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> and
|
---|
| 44 | <ulink url="http://asg.web.cmu.edu/sasl/">Cyrus SASL</ulink>
|
---|
| 45 | </para></sect4>
|
---|
[0931098] | 46 | </sect3>
|
---|
| 47 |
|
---|
| 48 | </sect2>
|
---|
| 49 |
|
---|
| 50 | <sect2>
|
---|
| 51 | <title>Installation of <application>Sendmail</application></title>
|
---|
| 52 |
|
---|
[65e6ea9] | 53 | <para>Before building <application>Sendmail</application>, create the users,
|
---|
| 54 | groups and directories that <application>Sendmail</application> requires
|
---|
| 55 | with the following commands:</para>
|
---|
[0931098] | 56 |
|
---|
| 57 | <screen><userinput><command>groupadd smmsp &&
|
---|
| 58 | groupadd mail &&
|
---|
| 59 | useradd -g smmsp -G mail smmsp &&
|
---|
| 60 | chmod 1777 /tmp &&
|
---|
| 61 | chmod 1777 /var/mail &&
|
---|
| 62 | mkdir /var/spool/mqueue</command></userinput></screen>
|
---|
| 63 |
|
---|
[65e6ea9] | 64 | <para>Install <application>Sendmail</application> with the following
|
---|
| 65 | commands:</para>
|
---|
[0931098] | 66 |
|
---|
| 67 | <screen><userinput><command>cat > devtools/Site/site.config.m4 << "EOF"
|
---|
| 68 | define(`confMANGRP',`root')
|
---|
| 69 | define(`confMANOWN',`root')
|
---|
| 70 | define(`confSBINGRP',`root')
|
---|
| 71 | define(`confUBINGRP',`root')
|
---|
| 72 | define(`confUBINOWN',`root')
|
---|
| 73 | EOF
|
---|
| 74 | cd sendmail &&
|
---|
| 75 | sh Build &&
|
---|
| 76 | cd ../cf/cf &&
|
---|
| 77 | cp generic-linux.mc sendmail.mc &&
|
---|
| 78 | mkdir /etc/mail &&
|
---|
[65e6ea9] | 79 | sh Build sendmail.cf &&
|
---|
[0931098] | 80 | sh Build install-cf &&
|
---|
| 81 | cd ../../ &&
|
---|
| 82 | sh Build install</command></userinput></screen>
|
---|
| 83 |
|
---|
[65e6ea9] | 84 | <para>Install the <application>Sendmail</application> Installation and
|
---|
| 85 | Operations Guide with the following commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput><command>cd doc/op &&
|
---|
| 88 | sed -i -e 's/groff/GROFF_NO_SGR=1 groff/' Makefile &&
|
---|
| 89 | make op.txt op.pdf &&
|
---|
| 90 | install -d -m 755 /usr/share/doc/sendmail/&sendmail-version; &&
|
---|
| 91 | install -m 644 op.ps op.txt op.pdf /usr/share/doc/sendmail/&sendmail-version; &&
|
---|
| 92 | cd ../../</command></userinput></screen>
|
---|
| 93 |
|
---|
[0931098] | 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2>
|
---|
| 97 | <title>Configuring <application>Sendmail</application></title>
|
---|
| 98 |
|
---|
| 99 | <sect3><title>Config files</title>
|
---|
| 100 | <para><filename>/etc/mail/*</filename></para>
|
---|
| 101 | </sect3>
|
---|
| 102 |
|
---|
[65e6ea9] | 103 | <sect3><title>Configuration Commands</title>
|
---|
[0931098] | 104 |
|
---|
| 105 | <screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
|
---|
| 106 | cat > /etc/mail/aliases << "EOF"
|
---|
| 107 | postmaster: root
|
---|
| 108 | MAILER-DAEMON: root
|
---|
| 109 | EOF
|
---|
| 110 | cp -R cf/* /etc/mail &&
|
---|
| 111 | cp cf/cf/{submit,sendmail}.mc /etc/mail &&
|
---|
| 112 | newaliases -v</command></userinput></screen>
|
---|
| 113 |
|
---|
[65e6ea9] | 114 | <para>To automate the running of <application>Sendmail</application> at
|
---|
| 115 | startup, install the <filename>/etc/rc.d/init.d/sendmail</filename>
|
---|
| 116 | init script included in the
|
---|
| 117 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[0931098] | 118 |
|
---|
| 119 | <screen><userinput><command>make install-sendmail</command></userinput></screen>
|
---|
| 120 |
|
---|
[65e6ea9] | 121 | <note><para>The -qNm option to <command>sendmail</command>, where N is number
|
---|
| 122 | of minutes, controls how often Sendmail will process the mail queue. A default
|
---|
| 123 | of 5 minutes is used in the init script. Individual workstation users may want
|
---|
| 124 | to set this as low as 1 minute, large installations handling more mail may
|
---|
[0931098] | 125 | want to set it higher.</para></note>
|
---|
| 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2>
|
---|
| 131 | <title>Contents</title>
|
---|
| 132 |
|
---|
| 133 | <para>The <application>Sendmail</application> package contains
|
---|
[65e6ea9] | 134 | <command>hoststat</command>,
|
---|
| 135 | <command>purgestat</command>,
|
---|
[0931098] | 136 | <command>smrsh</command>,
|
---|
| 137 | <command>editmap</command>,
|
---|
| 138 | <command>makemap</command>,
|
---|
| 139 | <command>mailq</command>,
|
---|
| 140 | <command>newaliases</command>,
|
---|
| 141 | <command>sendmail</command>,
|
---|
| 142 | <command>vacation</command>,
|
---|
| 143 | <command>praliases</command> and
|
---|
| 144 | <command>mailstats</command>.
|
---|
| 145 | </para>
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2><title>Description</title>
|
---|
| 149 |
|
---|
[65e6ea9] | 150 | <sect3><title>hoststat</title>
|
---|
| 151 | <para><command>hoststat</command> prints <application>Sendmail</application>'s
|
---|
| 152 | persistent host status.</para></sect3>
|
---|
[0931098] | 153 |
|
---|
[a0ea7df] | 154 | <sect3><title>purgestat</title>
|
---|
[65e6ea9] | 155 | <para><command>purgestat</command> causes <application>Sendmail</application>
|
---|
| 156 | to clear (purge) all its host-status information.</para></sect3>
|
---|
[0931098] | 157 |
|
---|
| 158 | <sect3><title>smrsh</title>
|
---|
[65e6ea9] | 159 | <para><command>smrsh</command> is a restricted shell for
|
---|
| 160 | <application>Sendmail</application>.</para></sect3>
|
---|
[0931098] | 161 |
|
---|
| 162 | <sect3><title>editmap</title>
|
---|
[65e6ea9] | 163 | <para><command>editmap</command> queries and edits
|
---|
| 164 | <application>Sendmail</application> map files.</para></sect3>
|
---|
[0931098] | 165 |
|
---|
| 166 | <sect3><title>makemap</title>
|
---|
[65e6ea9] | 167 | <para><command>makemap</command> creates
|
---|
| 168 | <application>Sendmail</application> map files.</para></sect3>
|
---|
[0931098] | 169 |
|
---|
| 170 | <sect3><title>mailq</title>
|
---|
[65e6ea9] | 171 | <para><command>mailq</command> prints a summary of outbound mail messages
|
---|
| 172 | waiting for delivery.</para></sect3>
|
---|
[0931098] | 173 |
|
---|
| 174 | <sect3><title>newaliases</title>
|
---|
[65e6ea9] | 175 | <para><command>newaliases</command> rebuilds
|
---|
| 176 | <filename>/etc/mail/aliases.db</filename>.</para></sect3>
|
---|
[0931098] | 177 |
|
---|
| 178 | <sect3><title>sendmail</title>
|
---|
[65e6ea9] | 179 | <para><command>sendmail</command> is the <application>Sendmail</application>
|
---|
| 180 | mail transport agent.</para></sect3>
|
---|
[0931098] | 181 |
|
---|
| 182 | <sect3><title>vacation</title>
|
---|
| 183 | <para><command>vacation</command> is an email auto responder.</para></sect3>
|
---|
| 184 |
|
---|
| 185 | <sect3><title>praliases</title>
|
---|
[65e6ea9] | 186 | <para><command>praliases</command> displays current
|
---|
| 187 | <application>Sendmail</application> aliases.</para></sect3>
|
---|
[0931098] | 188 |
|
---|
| 189 | <sect3><title>mailstats</title>
|
---|
[65e6ea9] | 190 | <para><command>mailstats</command> displays
|
---|
| 191 | <application>Sendmail</application> statistics.</para></sect3>
|
---|
[0931098] | 192 |
|
---|
| 193 | </sect2>
|
---|
[f45b1953] | 194 |
|
---|
| 195 | </sect1>
|
---|
| 196 |
|
---|