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

larry at linuxfromscratch.org larry at linuxfromscratch.org
Mon Aug 26 15:23:32 PDT 2002


larry       02/08/26 15:23:32

  Modified:    BOOK     index.xml
               BOOK/introduction/welcome changelog.xml credits.xml
               BOOK/server/mail exim.xml
               BOOK/server/mail/exim exim.ent
               BOOK/server/mail/qmail qmail-config.xml qmail-intro.xml
               BOOK/server/mail/sendmail sendmail-config.xml
                        sendmail-desc.xml sendmail-intro.xml sendmail.ent
  Added:       BOOK/server/mail/exim exim-config.xml exim-desc.xml
                        exim-exp.xml exim-inst.xml exim-intro.xml
  Log:
  editing cleanup in mail
  
  Revision  Changes    Path
  1.35      +2 -2      BLFS/BOOK/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/index.xml,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- index.xml	25 Aug 2002 12:55:08 -0000	1.34
  +++ index.xml	26 Aug 2002 22:23:32 -0000	1.35
  @@ -2,8 +2,8 @@
   <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
   			"/usr/share/docbook/docbookx.dtd" [
   
  -<!ENTITY version "20020825">
  -<!ENTITY releasedate "August 25th, 2002">
  +<!ENTITY version "20020826">
  +<!ENTITY releasedate "August 26th, 2002">
   
   <!ENTITY % book SYSTEM "book/book.ent">
   <!ENTITY % preface SYSTEM "preface/preface.ent">
  
  
  
  1.91      +4 -1      BLFS/BOOK/introduction/welcome/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.90
  retrieving revision 1.91
  diff -u -r1.90 -r1.91
  --- changelog.xml	26 Aug 2002 21:16:15 -0000	1.90
  +++ changelog.xml	26 Aug 2002 22:23:32 -0000	1.91
  @@ -10,7 +10,10 @@
   
   <itemizedlist>
   
  -<listitem><para>August 26th 2002 [larry]: General: Update to
  +<listitem><para>August 26th, 2002 [larry]: Server: Added exim-4.10,
  +changes to sendmail and qmail submitted by Billy.</para></listitem>
  +
  +<listitem><para>August 26th, 2002 [larry]: General: Update to
   fcron-2.9.1, libxml2-2.4.24 and libxslt-1.0.20.</para></listitem>
   
   <listitem><para>August 26th, 2002 [markh]: General: Update to libpng-1.2.4
  
  
  
  1.41      +1 -1      BLFS/BOOK/introduction/welcome/credits.xml
  
  Index: credits.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/credits.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- credits.xml	26 Aug 2002 03:04:15 -0000	1.40
  +++ credits.xml	26 Aug 2002 22:23:32 -0000	1.41
  @@ -93,7 +93,7 @@
   <listitem><para>db and lcms: <emphasis>Jeremy Jones and Mark
   Hymers</emphasis></para></listitem>
   
  -<listitem><para>bind, cvs server, emacs, leafnode, libfam, pine, qmail, PostgreSQL, Samba, sendmail, slrn, tex and xinetd: <emphasis>Billy O'Connor</emphasis></para></listitem>
  +<listitem><para>bind, cvs server, emacs, exim, leafnode, libfam, pine, qmail, PostgreSQL, Samba, sendmail, slrn, tex and xinetd: <emphasis>Billy O'Connor</emphasis></para></listitem>
   
   <listitem><para>fetchmail and wvdial: <emphasis>Paul
   Campbell</emphasis></para></listitem>
  
  
  
  1.2       +7 -3      BLFS/BOOK/server/mail/exim.xml
  
  Index: exim.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/exim.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- exim.xml	7 Jul 2002 20:28:52 -0000	1.1
  +++ exim.xml	26 Aug 2002 22:23:32 -0000	1.2
  @@ -1,8 +1,12 @@
  -<sect1 id="exim" xreflabel="exim">
  +<sect1 id="exim" xreflabel="exim-&exim-version;">
   <?dbhtml filename="exim.html" dir="server"?>
  -<title>exim</title>
  +<title>exim-&exim-version;</title>
   
  -<para>TO BE DONE</para>
  +&exim-intro;
  +&exim-inst;
  +&exim-config;
  +&exim-exp;
  +&exim-desc;
   
   </sect1>
   
  
  
  
  1.2       +10 -0     BLFS/BOOK/server/mail/exim/exim.ent
  
  Index: exim.ent
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/exim/exim.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- exim.ent	7 Jul 2002 20:28:52 -0000	1.1
  +++ exim.ent	26 Aug 2002 22:23:32 -0000	1.2
  @@ -1 +1,11 @@
   <!ENTITY exim SYSTEM "../exim.xml">
  +<!ENTITY exim-intro SYSTEM "exim-intro.xml">
  +<!ENTITY exim-inst SYSTEM "exim-inst.xml">
  +<!ENTITY exim-desc SYSTEM "exim-desc.xml">
  +<!ENTITY exim-exp SYSTEM "exim-exp.xml">
  +<!ENTITY exim-config SYSTEM "exim-config.xml">
  +<!ENTITY exim-buildsize "7.7 MB">
  +<!ENTITY exim-version "4.10">
  +<!ENTITY exim-download-http "">
  +<!ENTITY exim-download-ftp "ftp://ftp.exim.org/pub/exim/exim4/exim-4.10.tar.bz2">
  +<!ENTITY exim-size "1.4 MB">
  
  
  
  1.1                  BLFS/BOOK/server/mail/exim/exim-config.xml
  
  Index: exim-config.xml
  ===================================================================
  <sect2>
  <title>Configuring exim</title>
  
  <sect3><title>Config files</title>
  <para><userinput>/etc/exim.conf, /etc/aliases</userinput></para>
  </sect3>
  
  <sect3><title>Configuration of exim</title>
  <para>Create the exim configuration files with the following commands:
  </para> 
  <para><screen><userinput>
  cat >> /etc/aliases << "EOF"
  postmaster: root
  MAILER-DAEMON: root
  EOF
  exim -v -bi
  /usr/sbin/exim -bd -q1m
  </userinput></screen></para>
  <note><para>To protect an existing <filename>/etc/aliases</filename>
  file, we will append these aliases to it if it exists.  This file
  should be checked and duplicate aliases removed, if
  present.</para></note>
  
  
  <para>To start and stop exim on system boot/shutdown create the
  exim boot script with the following commands: </para>
  
  <para><screen><userinput>cat > /etc/rc.d/init.d/exim << "EOF"</userinput>
  #!/bin/sh
  # Begin $rc_base/init.d/exim
  
  # 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 exim..."
          loadproc /usr/sbin/exim -bd -q1m
          ;;
  
          stop)
          echo "Stopping exim..."
          killproc exim
          ;;
  		
  	status)
  	statusproc exim
  	;;
  	
          restart)
          $0 stop
          sleep 1
          $0 start
          ;;
  
          *)
          echo "Usage: $0 {start|stop|status|restart}"
          exit 1
          ;;
  esac
  
  # End $rc_base/init.d/exim
  <userinput>EOF
  chmod 755 /etc/rc.d/init.d/exim</userinput></screen></para>
  
  <para>Create the run level symlinks with the following commands:
  </para>
  <para>
  <screen><userinput>cd /etc/rc.d/init.d &&
  ln -sf ../init.d/exim ../rc0.d/K25exim &&
  ln -sf ../init.d/exim ../rc1.d/K25exim &&
  ln -sf ../init.d/exim ../rc2.d/K25exim &&
  ln -sf ../init.d/exim ../rc3.d/S35exim &&
  ln -sf ../init.d/exim ../rc4.d/S35exim &&
  ln -sf ../init.d/exim ../rc5.d/S35exim &&
  ln -sf ../init.d/exim ../rc6.d/K25exim</userinput></screen></para>
  </sect3>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/server/mail/exim/exim-desc.xml
  
  Index: exim-desc.xml
  ===================================================================
  <sect2><title>Contents</title>
  
  <para>The exim package contains
  <userinput>exim</userinput>,
  <userinput>exim_dumpdb</userinput>,
  <userinput>exim_fixdb</userinput>,
  <userinput>exim_tidydb</userinput>,
  <userinput>exinext</userinput>,
  <userinput>exiwhat</userinput>,
  <userinput>exim_dbmbuild</userinput>,
  <userinput>exicyclog</userinput>,
  <userinput>exigrep</userinput>,
  <userinput>eximstats</userinput>,
  <userinput>exiqsumm</userinput>,
  <userinput>exim_lock</userinput> and
  <userinput>exim_checkaccess</userinput>.
  </para>
  </sect2>
  
  <sect2><title>Description</title>
  <sect3><title>exim</title>
  <para>exim is the Mail Transport Agent daemon.</para></sect3>
  
  <sect3><title>exim_dumpdb</title>
  <para>exim_dumpdb writes the contents of exim databases to the
  standard output .</para></sect3>
  
  <sect3><title>exim_fixdb</title>
  <para>exim_fixdb modifies data in exim databases.</para></sect3>
  
  <sect3><title>exim_tidydb</title>
  <para>exim_tidydb removes old records from exim databases.</para></sect3>
  
  <sect3><title>exinext</title>
  <para>exinext queries remote host retry times.</para></sect3>
  
  <sect3><title>exiwhat</title>
  <para>exiwhat queries running exim processes.</para></sect3>
  
  <sect3><title>exim_dbmbuild</title>
  <para>exim_dbmbuild creates and rebuilds exim
  databases.</para></sect3>
  
  <sect3><title>exicyclog</title>
  <para>exicyclog cycles exim log files.</para></sect3>
  
  <sect3><title>exigrep</title>
  <para>exigrep searches exim log files.</para></sect3>
  
  <sect3><title>eximstats</title>
  <para>eximstats generates mail statistics from exim log
  files.</para></sect3>
  
  <sect3><title>exiqsumm</title>
  <para>exiqsumm produces a summary of the messages on the mail
  queue.</para></sect3> 
  
  <sect3><title>exim_lock</title>
  <para>exim_lock locks a mailbox file.</para></sect3>
  
  <sect3><title></title>
  <para>exim_checkaccess states whether a given recipient address from a
  given host is acceptable or not.</para></sect3>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/mail/exim/exim-exp.xml
  
  Index: exim-exp.xml
  ===================================================================
  <sect2>
  <title>Installation command explanations</title>
  
  <para><userinput>
  groupadd exim
  useradd -g exim exim : </userinput>
  Create the group and user exim which will run the the exim
  daemon.</para>
  
  <para><screen><userinput>
  sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \
    sed -e 's/^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | \
    sed -e 's/^EXIM_USER.*$/EXIM_USER=exim/' | \
    sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile : 
  </userinput></screen>
  
  Many of exim's configuration options are compiled in.  Here, we
  specify the minimum set of options, BIN_DIRECTORY, CONFIGURE_FILE and
  EXIM_USER.  We also defer building the exim monitor program, which
  requires X windows support, by commenting out the EXIM_MONITOR line in
  the Makefile.</para>
  
  <para><userinput> ln -s /usr/sbin/exim /usr/sbin/sendmail :
  </userinput>
  Create a link to sendmail for applications which need it.  exim will
  accept most Sendmail command line options.</para>
  
  </sect2>
  
  
  
  1.1                  BLFS/BOOK/server/mail/exim/exim-inst.xml
  
  Index: exim-inst.xml
  ===================================================================
  <sect2>
  <title>Installation of exim</title>
  
  <para>Before building exim, we need to create a user and group for
  exim with the following commands:</para>
  <para><screen><userinput>
  groupadd exim
  useradd -g exim exim
  </userinput></screen></para>
  
  <para>Install exim with the following commands:</para>
  
  <para><screen><userinput>
  sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \
    sed -e 's/^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | \
    sed -e 's/^EXIM_USER.*$/EXIM_USER=exim/' | \
    sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile &&
  make &&
  make install &&
  ln -s /usr/sbin/exim /usr/sbin/sendmail
  </userinput></screen></para>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/mail/exim/exim-intro.xml
  
  Index: exim-intro.xml
  ===================================================================
  <sect2>
  <title>Introduction to exim</title>
  
  <screen>Download location (HTTP):       <ulink url="&exim-download-http;"/>
  Download location (FTP):        <ulink url="&exim-download-ftp;"/>
  Version used:                   &exim-version;
  Package size:                   &exim-size;
  Estimated Disk space required:  &exim-buildsize;</screen>
  
  <para>The exim package contains a Mail Transport Agent written by the
  University of Cambridge, released under the GNU Public License.</para>
  
  <screen>exim depends on:
  <xref linkend="db"/></screen>
  
  </sect2>
  
  
  
  1.3       +54 -4     BLFS/BOOK/server/mail/qmail/qmail-config.xml
  
  Index: qmail-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/qmail/qmail-config.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- qmail-config.xml	24 Aug 2002 01:47:45 -0000	1.2
  +++ qmail-config.xml	26 Aug 2002 22:23:32 -0000	1.3
  @@ -11,10 +11,60 @@
   echo "smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env \
   tcp-env /var/qmail/bin/qmail-smtpd" >> /etc/inetd.conf
   </userinput></screen></para>
  -<para>Add:
  -<userinput>sh -cf '/var/qmail/rc &'</userinput>
  -to your boot scripts, so that the qmail daemons are restarted whenever
  -your system reboots. Make sure you include the &.</para>
  +
  +<para>To automate the running of qmail, use following command to
  +create the init.d script:</para> 
  +
  +<para><screen><userinput>
  +cat > /etc/rc.d/init.d/qmail << "EOF"
  +#!/bin/sh
  +# Begin $rc_base/init.d/qmail
  +
  +# 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 Qmail..."
  +	/var/qmail/rc &
  +        ;;
  +
  +        stop)
  +        echo "Stopping Qmail..."
  +        killall qmail-send
  +        ;;
  +		
  +        restart)
  +        $0 stop
  +        sleep 1
  +        $0 start
  +        ;;
  +
  +        *)
  +        echo "Usage: $0 {start|stop|restart}"
  +        exit 1
  +        ;;
  +esac
  +
  +# End $rc_base/init.d/qmail
  +EOF
  +chmod 755 /etc/rc.d/init.d/qmail</userinput></screen></para>
  +
  +<para>Create the symbolic links to this file in the relevant rc.d directory with the following commands:
  +
  +<screen><userinput>cd /etc/rc.d/init.d &&
  +ln -sf ../init.d/qmail ../rc0.d/K25qmail &&
  +ln -sf ../init.d/qmail ../rc1.d/K25qmail &&
  +ln -sf ../init.d/qmail ../rc2.d/K25qmail &&
  +ln -sf ../init.d/qmail ../rc3.d/S35qmail &&
  +ln -sf ../init.d/qmail ../rc4.d/S35qmail &&
  +ln -sf ../init.d/qmail ../rc5.d/S35qmail &&
  +ln -sf ../init.d/qmail ../rc6.d/K25qmail</userinput></screen></para>
  +
   </sect3>
   
   <sect3><title>Configuring mailers to work with qmail</title>
  
  
  
  1.2       +2 -1      BLFS/BOOK/server/mail/qmail/qmail-intro.xml
  
  Index: qmail-intro.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/qmail/qmail-intro.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- qmail-intro.xml	16 Aug 2002 16:05:50 -0000	1.1
  +++ qmail-intro.xml	26 Aug 2002 22:23:32 -0000	1.2
  @@ -1,7 +1,8 @@
   <sect2>
   <title>Introduction to qmail</title>
   
  -<screen>Download location (FTP):       <ulink url="&qmail-download-ftp;"/>
  +<screen>Download location (HTTP):       <ulink url="&qmail-download-http;"/>
  +Download location (FTP):        <ulink url="&qmail-download-ftp;"/>
   Version used:                   &qmail-version;
   Package size:                   &qmail-size;
   Estimated Disk space required:  &qmail-buildsize;</screen>
  
  
  
  1.2       +6 -2      BLFS/BOOK/server/mail/sendmail/sendmail-config.xml
  
  Index: sendmail-config.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail/sendmail-config.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sendmail-config.xml	24 Aug 2002 03:31:59 -0000	1.1
  +++ sendmail-config.xml	26 Aug 2002 22:23:32 -0000	1.2
  @@ -13,8 +13,12 @@
   cat > /etc/mail/aliases << "EOF"
   postmaster: root
   MAILER-DAEMON: root
  -EOF
  -sendmail -v -bi
  +EOF &&
  +cd /etc/mail &&
  +cp -R  /usr/src/sendmail-8.12.5/cf/* . &&
  +cp -R  /usr/src/sendmail-8.12.5/cf/cf/submit.mc . &&
  +cp -R  /usr/src/sendmail-8.12.5/cf/cf/sendmail.mc . &&
  +sendmail -v -bi &&
   /usr/sbin/sendmail -bs -bd -q1m
   </userinput></screen></para>
   
  
  
  
  1.2       +3 -3      BLFS/BOOK/server/mail/sendmail/sendmail-desc.xml
  
  Index: sendmail-desc.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail/sendmail-desc.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sendmail-desc.xml	24 Aug 2002 03:31:59 -0000	1.1
  +++ sendmail-desc.xml	26 Aug 2002 22:23:32 -0000	1.2
  @@ -11,9 +11,9 @@
   <userinput>newaliases</userinput>,
   <userinput>sendmail</userinput>,
   <userinput>vacation</userinput>,
  -<userinput>praliases</userinput>,
  -<userinput>mailstats</userinput>,
  -and <userinput></userinput>.</para>
  +<userinput>praliases</userinput> and
  +<userinput>mailstats</userinput>.
  +</para>
   </sect2>
   <sect2><title>Description</title>
   <sect3><title>mail.local</title>
  
  
  
  1.2       +2 -2      BLFS/BOOK/server/mail/sendmail/sendmail-intro.xml
  
  Index: sendmail-intro.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/BOOK/server/mail/sendmail/sendmail-intro.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sendmail-intro.xml	24 Aug 2002 03:31:59 -0000	1.1
  +++ sendmail-intro.xml	26 Aug 2002 22:23:32 -0000	1.2
  @@ -1,14 +1,14 @@
   <sect2>
   <title>Introduction to sendmail</title>
   
  -<screen>
  +<screen>Download location (HTTP):       <ulink url="&sendmail-download-http;"/>
   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>
  +(MTA).</para>
   
   
   <screen>sendmail depends on: 
  
  
  
  1.3       +2 -2      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sendmail.ent	24 Aug 2002 03:31:59 -0000	1.2
  +++ sendmail.ent	26 Aug 2002 22:23:32 -0000	1.3
  @@ -5,6 +5,6 @@
   <!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-download-http "">
  +<!ENTITY sendmail-download-ftp "ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.5.tar.gz">
   <!ENTITY sendmail-size "1.8 MB">
  
  
  
-- 
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