Changeset 27b601a for server/mail/sendmail.xml
- Timestamp:
- 03/06/2020 10:42:49 PM (4 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 21a08bf
- Parents:
- f0d1db9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/mail/sendmail.xml
rf0d1db9 r27b601a 32 32 <title>Introduction to sendmail</title> 33 33 34 <para>The <application>sendmail</application> package contains a Mail 35 Transport Agent (MTA).</para> 34 <para> 35 The <application>sendmail</application> package contains a Mail 36 Transport Agent (MTA). 37 </para> 36 38 37 39 &lfs91_checked; … … 40 42 <itemizedlist spacing="compact"> 41 43 <listitem> 42 <para>Download (HTTP): <ulink url="&sendmail-download-http;"/></para> 43 </listitem> 44 <listitem> 45 <para>Download (FTP): <ulink url="&sendmail-download-ftp;"/></para> 46 </listitem> 47 <listitem> 48 <para>Download MD5 sum: &sendmail-md5sum;</para> 49 </listitem> 50 <listitem> 51 <para>Download size: &sendmail-size;</para> 52 </listitem> 53 <listitem> 54 <para>Estimated disk space required: &sendmail-buildsize;</para> 55 </listitem> 56 <listitem> 57 <para>Estimated build time: &sendmail-time;</para> 44 <para> 45 Download (HTTP): <ulink url="&sendmail-download-http;"/> 46 </para> 47 </listitem> 48 <listitem> 49 <para> 50 Download (FTP): <ulink url="&sendmail-download-ftp;"/> 51 </para> 52 </listitem> 53 <listitem> 54 <para> 55 Download MD5 sum: &sendmail-md5sum; 56 </para> 57 </listitem> 58 <listitem> 59 <para> 60 Download size: &sendmail-size; 61 </para> 62 </listitem> 63 <listitem> 64 <para> 65 Estimated disk space required: &sendmail-buildsize; 66 </para> 67 </listitem> 68 <listitem> 69 <para> 70 Estimated build time: &sendmail-time; 71 </para> 58 72 </listitem> 59 73 </itemizedlist> 74 60 75 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 61 76 … … 97 112 <title>Installation of sendmail</title> 98 113 99 <para>Before building <application>sendmail</application>, create the 100 required user, group and directory with the following commands issued as 101 the <systemitem class="username">root</systemitem> user:</para> 114 <para> 115 Before building <application>sendmail</application>, create the 116 required user, group and directory with the following commands issued as 117 the <systemitem class="username">root</systemitem> user: 118 </para> 102 119 103 120 <screen role="root"><userinput>groupadd -g 26 smmsp && … … 107 124 install -v -m700 -d /var/spool/mqueue</userinput></screen> 108 125 109 <note><para>See the source tree <filename>sendmail/README</filename> file 110 for information on linking optional packages into the build. Use the 111 example below, which adds support for SASL, StartTLS 112 (<application>OpenSSL</application>) and 113 <application>OpenLDAP</application>, as a starting point. Of course, 114 modify it to suit your particular needs.</para></note> 126 <note> 127 <para> 128 See the source tree <filename>sendmail/README</filename> file 129 for information on linking optional packages into the build. Use the 130 example below, which adds support for SASL, StartTLS 131 (<application>OpenSSL</application>) and 132 <application>OpenLDAP</application>, as a starting point. Of course, 133 modify it to suit your particular needs. 134 </para> 135 </note> 115 136 116 137 <screen><userinput>cat >> devtools/Site/site.config.m4 << "EOF" … … 120 141 EOF</userinput></screen> 121 142 122 <para>Install <application>sendmail</application> with the following 123 commands:</para> 143 <para> 144 Install <application>sendmail</application> with the following commands: 145 </para> 124 146 125 147 <screen><userinput>patch -Np1 -i ../sendmail.&sendmail-version;-openssl-1.patch && … … 142 164 sh Build sendmail.cf</userinput></screen> 143 165 144 <para>This package does not come with a test suite.</para> 145 146 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 166 <para> 167 This package does not come with a test suite. 168 </para> 169 170 <para> 171 Now, as the <systemitem class="username">root</systemitem> user: 172 </para> 147 173 148 174 <screen role="root"><userinput>install -v -d -m755 /etc/mail && … … 175 201 install -v -m644 vacation/vacation.1 /usr/share/man/man1</userinput></screen> 176 202 177 <para>Install the <application>sendmail</application> Installation and 178 Operations Guide with the following commands:</para> 179 180 <note><para>Remove <filename>op.pdf</filename> from the 181 <command>make</command> and <command>install</command> commands below if 182 you don't have <application>Ghostscript</application> 183 installed.</para></note> 203 <para> 204 Install the <application>sendmail</application> Installation and 205 Operations Guide with the following commands: 206 </para> 207 208 <note> 209 <para> 210 Remove <filename>op.pdf</filename> from the <command>make</command> 211 and <command>install</command> commands below if 212 you don't have <application>Ghostscript</application> installed. 213 </para> 214 </note> 184 215 185 216 <screen remap="doc"><userinput>cd doc/op && … … 187 218 make op.txt op.pdf</userinput></screen> 188 219 189 <para>Now, as the <systemitem class="username">root</systemitem> user:</para> 220 <para> 221 Now, as the <systemitem class="username">root</systemitem> user: 222 </para> 190 223 191 224 <screen role="root" … … 199 232 <title>Command Explanations</title> 200 233 201 <para><command>cat > devtools/Site/site.config.m4 << "EOF"</command>: 202 This creates a configuration file changing some of the default settings.</para> 203 204 <para><command>sed ... devtools/OS/Linux</command>: The site.config.m4 205 does not honor a change to the man directory, so fix it in the OS 206 definitions.</para> 207 208 <para><command>sed ... include/sm/bdb.h</command>: This allows sendmail to 209 build properly with <xref linkend='db'/> versions 5 and above.</para> 210 211 <para><command>sh Build; sh Build sendmail.cf; sh Build install-cf; 212 sh Build install</command>: <application>sendmail</application> uses an 213 <application>m4</application> based build script to create the various 214 <filename>Makefile</filename>s. These commands build and install the 215 package.</para> 216 217 <para><command>for manpage in...;do...;done; install ...</command>: The man 218 pages are installed already formatted and <command>man</command> displays 219 them somewhat garbled. These commands replace the formatted pages with 220 pages <command>man</command> can display properly.</para> 234 <para> 235 <command>cat > devtools/Site/site.config.m4 << "EOF"</command>: 236 This creates a configuration file changing some of the default settings. 237 </para> 238 239 <para> 240 <command>sed ... devtools/OS/Linux</command>: The site.config.m4 241 does not honor a change to the man directory, so fix it in the OS 242 definitions. 243 </para> 244 245 <para> 246 <command>sed ... include/sm/bdb.h</command>: This allows sendmail to 247 build properly with <xref linkend='db'/> versions 5 and above. 248 </para> 249 250 <para> 251 <command>sh Build; sh Build sendmail.cf; sh Build install-cf; 252 sh Build install</command>: <application>sendmail</application> uses an 253 <application>m4</application> based build script to create the various 254 <filename>Makefile</filename>s. These commands build and install the 255 package. 256 </para> 257 258 <para> 259 <command>for manpage in...;do...;done; install ...</command>: The man 260 pages are installed already formatted and <command>man</command> displays 261 them somewhat garbled. These commands replace the formatted pages with 262 pages <command>man</command> can display properly. 263 </para> 221 264 222 265 </sect2> … … 228 271 <title>Config Files</title> 229 272 230 <para><filename>/etc/mail/*</filename></para> 273 <para> 274 <filename>/etc/mail/*</filename> 275 </para> 231 276 232 277 <indexterm zone="sendmail sendmail-config"> … … 239 284 <title>Configuration Information</title> 240 285 241 <note><para>Ensure you have a fully qualified domain name defined 242 in <filename>/etc/hosts</filename> for your system before proceeding. 243 </para></note> 244 245 <para>Create the <filename>/etc/mail/local-host-names</filename> and 246 <filename>/etc/mail/aliases</filename> files using the following 247 commands as the <systemitem class="username">root</systemitem> 248 user:</para> 286 <note> 287 <para> 288 Ensure you have a fully qualified domain name defined 289 in <filename>/etc/hosts</filename> for your system before proceeding. 290 </para> 291 </note> 292 293 <para> 294 Create the <filename>/etc/mail/local-host-names</filename> and 295 <filename>/etc/mail/aliases</filename> files using the following 296 commands as the <systemitem class="username">root</systemitem> user: 297 </para> 249 298 250 299 <screen role="root"><userinput>echo $(hostname) > /etc/mail/local-host-names … … 256 305 newaliases</userinput></screen> 257 306 258 <para><application>sendmail</application>'s primary configuration file, 259 <filename>/etc/mail/sendmail.cf</filename>, is complex and not meant to be 260 directly edited. The recommended method for changing it is to modify 261 <filename>/etc/mail/sendmail.mc</filename> and various 262 <application>m4</application> files, then run the <command>m4</command> 263 macro processor from within 264 <filename class='directory'>/etc/mail</filename> as follows:</para> 307 <para> 308 <application>sendmail</application>'s primary configuration file, 309 <filename>/etc/mail/sendmail.cf</filename>, is complex and not meant to 310 be directly edited. The recommended method for changing it is to modify 311 <filename>/etc/mail/sendmail.mc</filename> and various 312 <application>m4</application> files, then run the <command>m4</command> 313 macro processor from within 314 <filename class='directory'>/etc/mail</filename> as follows: 315 </para> 265 316 266 317 <screen role="root"><userinput>cd /etc/mail && 267 318 m4 m4/cf.m4 sendmail.mc > sendmail.cf</userinput></screen> 268 319 269 <para>A full explanation of the files to modify, and the available 270 parameters can be found in <filename>/etc/mail/README</filename>.</para> 320 <para> 321 A full explanation of the files to modify, and the available 322 parameters can be found in <filename>/etc/mail/README</filename>. 323 </para> 271 324 272 325 </sect3> … … 276 329 <phrase revision="systemd">Systemd Unit</phrase></title> 277 330 278 <para>To automate the running of <application>sendmail</application> 279 at startup, install the 280 <phrase revision="sysv"><filename>/etc/rc.d/init.d/sendmail</filename> 281 init script</phrase> 282 <phrase revision="systemd"><filename>sendmail.service</filename> 283 unit</phrase> included in the 284 <xref linkend="bootscripts" revision="sysv"/> 285 <xref linkend="systemd-units" revision="systemd"/> package.</para> 331 <para> 332 To automate the running of <application>sendmail</application> 333 at startup, install the 334 <phrase revision="sysv"><filename>/etc/rc.d/init.d/sendmail</filename> 335 init script</phrase> 336 <phrase revision="systemd"><filename>sendmail.service</filename> 337 unit</phrase> included in the 338 <xref linkend="bootscripts" revision="sysv"/> 339 <xref linkend="systemd-units" revision="systemd"/> package. 340 </para> 286 341 287 342 <indexterm zone="sendmail sendmail-init"> … … 292 347 293 348 <note> 294 <para>The -qNm option to <command>sendmail</command>, where N is number 295 of minutes, controls how often <application>sendmail</application> will 296 process the mail queue. A default of 5 minutes is used in the 297 <phrase revision="sysv">init script.</phrase> 298 <phrase revision="systemd">systemd unit.</phrase> Individual 299 workstation users may want to set this as low as 1 minute, large 300 installations handling more mail may want to set it higher.</para> 349 <para> 350 The -qNm option to <command>sendmail</command>, where N is number 351 of minutes, controls how often <application>sendmail</application> 352 will process the mail queue. A default of 5 minutes is used in the 353 <phrase revision="sysv">init script.</phrase> 354 <phrase revision="systemd">systemd unit.</phrase> Individual 355 workstation users may want to set this as low as 1 minute, large 356 installations handling more mail may want to set it higher. 357 </para> 301 358 </note> 302 359 … … 331 388 <term><command>editmap</command></term> 332 389 <listitem> 333 <para>queries and edits <application>sendmail</application> map 334 files.</para> 390 <para> 391 queries and edits <application>sendmail</application> map files. 392 </para> 335 393 <indexterm zone="sendmail editmap"> 336 394 <primary sortas="b-editmap">editmap</primary> … … 342 400 <term><command>hoststat</command></term> 343 401 <listitem> 344 <para>prints <application>sendmail</application>'s persistent host 345 status.</para> 402 <para> 403 prints <application>sendmail</application>'s persistent host status. 404 </para> 346 405 <indexterm zone="sendmail hoststat"> 347 406 <primary sortas="b-hoststat">hoststat</primary> … … 353 412 <term><command>mailstats</command></term> 354 413 <listitem> 355 <para>displays <application>sendmail</application> statistics.</para> 414 <para> 415 displays <application>sendmail</application> statistics. 416 </para> 356 417 <indexterm zone="sendmail mailstats"> 357 418 <primary sortas="b-mailstats">mailstats</primary> … … 363 424 <term><command>mailq</command></term> 364 425 <listitem> 365 <para>prints a summary of outbound mail messages waiting for 366 delivery.</para> 426 <para> 427 prints a summary of outbound mail messages waiting for delivery. 428 </para> 367 429 <indexterm zone="sendmail mailq-sendmail"> 368 430 <primary sortas="b-mailq">mailq</primary> … … 374 436 <term><command>makemap</command></term> 375 437 <listitem> 376 <para>creates <application>sendmail</application> map files.</para> 438 <para> 439 creates <application>sendmail</application> map files. 440 </para> 377 441 <indexterm zone="sendmail makemap"> 378 442 <primary sortas="b-makemap">makemap</primary> … … 384 448 <term><command>newaliases</command></term> 385 449 <listitem> 386 <para>rebuilds <filename>/etc/mail/aliases.db</filename> from the 387 contents of <filename>/etc/mail/aliases</filename>.</para> 450 <para> 451 rebuilds <filename>/etc/mail/aliases.db</filename> from the 452 contents of <filename>/etc/mail/aliases</filename>. 453 </para> 388 454 <indexterm zone="sendmail newaliases-sendmail"> 389 455 <primary sortas="b-newaliases">newaliases</primary> … … 395 461 <term><command>praliases</command></term> 396 462 <listitem> 397 <para>displays current <application>sendmail</application> 398 aliases.</para> 463 <para> 464 displays current <application>sendmail</application> aliases. 465 </para> 399 466 <indexterm zone="sendmail praliases"> 400 467 <primary sortas="b-praliases">praliases</primary> … … 406 473 <term><command>purgestat</command></term> 407 474 <listitem> 408 <para> causes <application>sendmail</application> to clear (purge) 409 all its host-status information.</para> 475 <para> 476 causes <application>sendmail</application> to clear (purge) 477 all its host-status information. 478 </para> 410 479 <indexterm zone="sendmail purgestat"> 411 480 <primary sortas="b-purgestat">purgestat</primary> … … 417 486 <term><command>sendmail</command></term> 418 487 <listitem> 419 <para>is the <application>sendmail</application> mail transport 420 agent.</para> 488 <para> 489 is the <application>sendmail</application> mail transport agent. 490 </para> 421 491 <indexterm zone="sendmail sendmail-prog-sendmail"> 422 492 <primary sortas="b-sendmail">sendmail</primary> … … 428 498 <term><command>smrsh</command></term> 429 499 <listitem> 430 <para>is a restricted shell for 431 <application>sendmail</application>.</para> 500 <para> 501 is a restricted shell for <application>sendmail</application>. 502 </para> 432 503 <indexterm zone="sendmail smrsh"> 433 504 <primary sortas="b-smrsh">smrsh</primary> … … 439 510 <term><command>vacation</command></term> 440 511 <listitem> 441 <para>is an email auto responder.</para> 512 <para> 513 is an email auto responder. 514 </para> 442 515 <indexterm zone="sendmail vacation-sendmail"> 443 516 <primary sortas="b-vacation">vacation</primary>
Note:
See TracChangeset
for help on using the changeset viewer.