cvs commit: BLFS/BOOK/server/mail/sendmail sendmail-config.xml sendmail-desc.xml sendmail-inst.xml sendmail-intro.xml sendmail.ent

larry at linuxfromscratch.org larry at linuxfromscratch.org
Fri Aug 23 20:31:59 PDT 2002


larry       02/08/23 20:31:59

  Modified:    BOOK/introduction/welcome changelog.xml credits.xml
               BOOK/server/mail sendmail.xml
               BOOK/server/mail/sendmail sendmail.ent
  Added:       BOOK/server/mail/sendmail sendmail-config.xml
                        sendmail-desc.xml sendmail-inst.xml
                        sendmail-intro.xml
  Log:
  added sendmail
  
  Revision  Changes    Path
  1.80      +3 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- changelog.xml	24 Aug 2002 03:02:07 -0000	1.79
  +++ changelog.xml	24 Aug 2002 03:31:59 -0000	1.80
  @@ -10,6 +10,9 @@
   
   <itemizedlist>
   
  +<listitem><para>August 23rd, 2002 [larry]: Server: Added
  +sendmail.</para></listitem>
  +
   <listitem><para>August 23rd, 2002 [larry]: gnome: Added
   intltool-0.22.</para></listitem>
   
  
  
  
  1.34      +2 -1      BLFS/BOOK/introduction/welcome/credits.xml
  
  Index: credits.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/credits.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- credits.xml	24 Aug 2002 03:02:07 -0000	1.33
  +++ credits.xml	24 Aug 2002 03:31:59 -0000	1.34
  @@ -90,7 +90,8 @@
   <listitem><para>db and lcms: <emphasis>Jeremy Jones and Mark
   Hymers</emphasis></para></listitem>
   
  -<listitem><para>bind, emacs, leafnode, libfam, pine, qmail, Samba, slrn and xinetd: <emphasis>Billy O'Connor</emphasis></para></listitem>
  +<listitem><para>bind, emacs, leafnode, libfam, pine, qmail, Samba,
  +sendmail, slrn and xinetd: <emphasis>Billy O'Connor</emphasis></para></listitem>
   
   <listitem><para>fetchmail and wvdial: <emphasis>Paul
   Campbell</emphasis></para></listitem>
  
  
  
  1.2       +6 -3      BLFS/BOOK/server/mail/sendmail.xml
  
  Index: sendmail.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sendmail.xml	7 Jul 2002 20:28:52 -0000	1.1
  +++ sendmail.xml	24 Aug 2002 03:31:59 -0000	1.2
  @@ -1,8 +1,11 @@
  -<sect1 id="sendmail" xreflabel="sendmail">
  +<sect1 id="sendmail" xreflabel="sendmail-&sendmail-version;">
   <?dbhtml filename="sendmail.html" dir="server"?>
  -<title>sendmail</title>
  +<title>sendmail-&sendmail-version;</title>
   
  -<para>TO BE DONE</para>
  +&sendmail-intro;
  +&sendmail-inst;
  +&sendmail-config;
  +&sendmail-desc;
   
   </sect1>
   
  
  
  
  1.2       +9 -0      BLFS/BOOK/server/mail/sendmail/sendmail.ent
  
  Index: sendmail.ent
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail/sendmail.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sendmail.ent	7 Jul 2002 20:28:52 -0000	1.1
  +++ sendmail.ent	24 Aug 2002 03:31:59 -0000	1.2
  @@ -1 +1,10 @@
   <!ENTITY sendmail SYSTEM "../sendmail.xml">
  +<!ENTITY sendmail-intro SYSTEM "sendmail-intro.xml">
  +<!ENTITY sendmail-inst SYSTEM "sendmail-inst.xml">
  +<!ENTITY sendmail-desc SYSTEM "sendmail-desc.xml">
  +<!ENTITY sendmail-config SYSTEM "sendmail-config.xml">
  +<!ENTITY sendmail-buildsize "12 MB">
  +<!ENTITY sendmail-version "8.12.5">
  +<!ENTITY sendmail-download-ftp
  +"ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.5.tar.gz">
  +<!ENTITY sendmail-size "1.8 MB">
  
  
  
  1.1                  BLFS/BOOK/server/mail/sendmail/sendmail-config.xml
  
  Index: sendmail-config.xml
  ===================================================================
  <sect2>
  <title>Configuring sendmail</title>
  
  <sect3><title>Config files</title>
  <para><userinput>/etc/mail/aliases.db, /etc/mail/sendmail.cf,
  /etc/mail/submit.cf</userinput> and
  <userinput>/etc/mail/local-host-names</userinput></para>
  </sect3>
  
  <sect3><title>Configuring sendmail</title>
  <para><screen><userinput>
  echo `hostname` > /etc/mail/local-host-names
  cat > /etc/mail/aliases << "EOF"
  postmaster: root
  MAILER-DAEMON: root
  EOF
  sendmail -v -bi
  /usr/sbin/sendmail -bs -bd -q1m
  </userinput></screen></para>
  
  <para>To start and stop sendmail on system boot/shutdown create the
  sendmail boot script with the following commands: </para>
  
  <para><screen><userinput>cat > /etc/rc.d/init.d/sendmail << "EOF"</userinput>
  #!/bin/sh
  # Begin $rc_base/init.d/sendmail
  
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  
  source /etc/sysconfig/rc
  source $rc_functions
  
  case "$1" in
  
          start)
          echo "Starting sendmail..."
          loadproc sendmail -bs -bd -q1m start
          ;;
  
          stop)
          echo "Stopping Sendmail..."
          killproc sendmail
          ;;
  		
  	status)
  	statusproc sendmail
  	;;
  	
          restart)
          $0 stop
          sleep 1
          $0 start
          ;;
  
          *)
          echo "Usage: $0 {start|stop|status|restart}"
          exit 1
          ;;
  esac
  
  # End $rc_base/init.d/sendmail
  <userinput>EOF
  chmod 755 /etc/rc.d/init.d/sendmail</userinput></screen></para>
  
  <para>Create the run level symlinks with the following commands:
  
  <screen><userinput>cd /etc/rc.d/init.d &&
  ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &&
  ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &&
  ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &&
  ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &&
  ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &&
  ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &&
  ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</userinput></screen></para>
  </sect3>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/server/mail/sendmail/sendmail-desc.xml
  
  Index: sendmail-desc.xml
  ===================================================================
  <sect2>
  <title>Contents</title>
  
  <para>The sendmail package contains
  <userinput>mail.local</userinput>,
  <userinput>rmail</userinput>,
  <userinput>smrsh</userinput>,
  <userinput>editmap</userinput>,
  <userinput>makemap</userinput>,
  <userinput>mailq</userinput>,
  <userinput>newaliases</userinput>,
  <userinput>sendmail</userinput>,
  <userinput>vacation</userinput>,
  <userinput>praliases</userinput>,
  <userinput>mailstats</userinput>,
  and <userinput></userinput>.</para>
  </sect2>
  <sect2><title>Description</title>
  <sect3><title>mail.local</title>
  <para>mail.local appends its standard input to a user's mail
  file.</para></sect3>
  <sect3><title>rmail</title>
  <para>rmail interprets incoming mail received via uucp.</para></sect3>
  <sect3><title>smrsh</title>
  <para>smrsh is a restricted shell for Sendmail.</para></sect3>
  <sect3><title>editmap</title>
  <para>editmap queries and edits Sendmail map files.</para></sect3>
  <sect3><title>makemap</title>
  <para>makemap creates Sendmail map files.</para></sect3>
  <sect3><title>mailq</title>
  <para>mailq prints a summary of waiting mail messages.</para></sect3>
  <sect3><title>newaliases</title>
  <para>newaliases rebuilds /etc/mail/aliases.db.</para></sect3>
  <sect3><title>sendmail</title>
  <para>sendmail is the Sendmail mail transport agent.</para></sect3>
  <sect3><title>vacation</title>
  <para>vacation is an email auto responder.</para></sect3>
  <sect3><title>praliases</title>
  <para>praliases displays current Sendmail aliases.</para></sect3>
  <sect3><title>mailstats</title>
  <para>mailstats displays Sendmail statistics.</para></sect3>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/mail/sendmail/sendmail-inst.xml
  
  Index: sendmail-inst.xml
  ===================================================================
  <sect2>
  <title>Installation of sendmail</title>
  
  <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 &&
  chmod 1777 /tmp &&
  chmod 1777 /var/mail &&
  mkdir /var/spool/mqueue
  </userinput></screen></para>
  
  <para>Install sendmail with the following commands:</para>
  
  <para><screen><userinput>
  cd sendmail &&
  sh Build &&
  cd ../cf/cf &&
  cp generic-linux.mc sendmail.mc &&
  mkdir /etc/mail &&
  sh Build sendmail.mc &&
  sh Build install-cf &&
  cd ../../ &&
  sh Build install
  </userinput></screen></para>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/mail/sendmail/sendmail-intro.xml
  
  Index: sendmail-intro.xml
  ===================================================================
  <sect2>
  <title>Introduction to sendmail</title>
  
  <screen>
  Download location (FTP):        <ulink url="&sendmail-download-ftp;"/>
  Version used:                   &sendmail-version;
  Package size:                   &sendmail-size;
  Estimated Disk space required:  &sendmail-buildsize;</screen>
  
  <para>The sendmail package contains a Mail Transport Agent
  (MTA).  </para>
  
  
  <screen>sendmail depends on: 
  <xref linkend="db"/>, <xref linkend="procmail"/></screen>
  
  </sect2>
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-book' in the subject header of the message



More information about the blfs-book mailing list