Add explanation of -q flag and change default to 5 minutes.

Change to newaliases -v to process alias file.


git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@592 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Billy O 'Connor 2003-01-11 17:58:10 +00:00
parent 41ece9ff39
commit b9e96a3aab
2 changed files with 11 additions and 6 deletions

View File

@ -18,13 +18,18 @@ cd /etc/mail &&
cp -R /usr/src/sendmail-&sendmail-version;/cf/* . &&
cp -R /usr/src/sendmail-&sendmail-version;/cf/cf/submit.mc . &&
cp -R /usr/src/sendmail-&sendmail-version;/cf/cf/sendmail.mc . &&
sendmail -v -bi &&
/usr/sbin/sendmail -bs -bd -q1m
newaliases -v &&
</userinput></screen></para>
<para>To start and stop sendmail on system boot/shutdown create the
sendmail boot script with the following commands: </para>
<note><para>The -qNm option, where N is number of minutes, controls
how often Sendmail will process the mail queue.&nbsp;&nbsp;A default of 5
minutes is used here.&nbsp;&nbsp;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>
<para><screen><userinput>cat &gt; /etc/rc.d/init.d/sendmail &lt;&lt; "EOF"</userinput>
#!/bin/sh
# Begin $rc_base/init.d/sendmail
@ -39,7 +44,7 @@ case "$1" in
start)
echo "Starting sendmail..."
loadproc /usr/sbin/sendmail -bs -bd -q1m start
loadproc /usr/sbin/sendmail -bs -bd -q5m start
;;
stop)

View File

@ -4,9 +4,9 @@
<para>Before building sendmail, we need to create users, groups and
directories that sendmail uses with the following commands:</para>
<para><screen><userinput>
groupadd -g 18 smmsp &amp;&amp;
groupadd -g 19 mail &amp;&amp;
useradd -g smmsp -G mail -u 18 smmsp &amp;&amp;
groupadd smmsp &amp;&amp;
groupadd mail &amp;&amp;
useradd -g smmsp -G mail -u smmsp &amp;&amp;
chmod 1777 /tmp &amp;&amp;
chmod 1777 /var/mail &amp;&amp;
mkdir /var/spool/mqueue