2002-08-24 11:31:59 +08:00
|
|
|
<sect2>
|
2003-09-27 03:39:35 +08:00
|
|
|
<title>Configuring <application>Sendmail</application></title>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
2003-09-26 10:51:25 +08:00
|
|
|
<para><filename>/etc/mail/*</filename></para>
|
2002-08-24 11:31:59 +08:00
|
|
|
</sect3>
|
|
|
|
|
2003-09-26 10:51:25 +08:00
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
|
|
|
|
cat > /etc/mail/aliases << "EOF"
|
2002-08-24 11:31:59 +08:00
|
|
|
postmaster: root
|
|
|
|
MAILER-DAEMON: root
|
2003-09-26 10:51:25 +08:00
|
|
|
EOF
|
2003-11-14 06:37:18 +08:00
|
|
|
cp -R cf/* /etc/mail &&
|
|
|
|
cp cf/cf/{submit,sendmail}.mc /etc/mail &&
|
2003-09-26 10:51:25 +08:00
|
|
|
newaliases -v</command></userinput></screen>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2004-03-27 15:16:16 +08:00
|
|
|
<para>To automate the running of Sendmail at startup, install <filename>/etc/rc.d/init.d/sendmail</filename>
|
|
|
|
init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>make install-sendmail</command></userinput></screen>
|
2002-08-24 11:31:59 +08:00
|
|
|
|
2004-03-27 15:16:16 +08:00
|
|
|
<note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls
|
2003-09-26 10:51:25 +08:00
|
|
|
how often Sendmail will process the mail queue. A default of 5
|
2004-03-27 15:16:16 +08:00
|
|
|
minutes is used in the init script. Individual workstation users may want to set
|
2003-01-12 01:58:10 +08:00
|
|
|
this as low as 1 minute, large installations handling more mail will
|
|
|
|
want to set it higher.</para></note>
|
|
|
|
|
2004-03-27 15:16:16 +08:00
|
|
|
</sect3>
|
2002-08-24 11:31:59 +08:00
|
|
|
</sect2>
|