mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-09 03:37:18 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1937 af4574ff-66df-0310-9fd7-8a98e5e911e0
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<sect2>
|
|
<title>Configuring <application>Sendmail</application></title>
|
|
|
|
<sect3><title>Config files</title>
|
|
<para><filename>/etc/mail/*</filename></para>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<screen><userinput><command>echo `hostname` > /etc/mail/local-host-names
|
|
cat > /etc/mail/aliases << "EOF"
|
|
postmaster: root
|
|
MAILER-DAEMON: root
|
|
EOF
|
|
cp -R cf/* /etc/mail &&
|
|
cp cf/cf/{submit,sendmail}.mc /etc/mail &&
|
|
newaliases -v</command></userinput></screen>
|
|
|
|
<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>
|
|
|
|
<note><para>The -qNm option to <command>sendmail</command>, where N is number of minutes, controls
|
|
how often Sendmail will process the mail queue. A default of 5
|
|
minutes is used in the init script. Individual workstation users may want to set
|
|
this as low as 1 minute, large installations handling more mail will
|
|
want to set it higher.</para></note>
|
|
|
|
</sect3>
|
|
</sect2>
|