mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
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:
parent
41ece9ff39
commit
b9e96a3aab
@ -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. A default of 5
|
||||
minutes is used here. 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 > /etc/rc.d/init.d/sendmail << "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)
|
||||
|
@ -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 &&
|
||||
groupadd -g 19 mail &&
|
||||
useradd -g smmsp -G mail -u 18 smmsp &&
|
||||
groupadd smmsp &&
|
||||
groupadd mail &&
|
||||
useradd -g smmsp -G mail -u smmsp &&
|
||||
chmod 1777 /tmp &&
|
||||
chmod 1777 /var/mail &&
|
||||
mkdir /var/spool/mqueue
|
||||
|
Loading…
Reference in New Issue
Block a user