cvs commit: BLFS/packages/p postfix-config.xml postfix-desc.xml postfix-inst.xml postfix-intro.xml postfix.xml

markh at linuxfromscratch.org markh at linuxfromscratch.org
Thu Mar 28 16:42:37 PST 2002


markh       02/03/28 16:42:37

  Modified:    .        index.xml
               appendixa rc0.xml rc1.xml rc2.xml rc3.xml rc4.xml rc5.xml
                        rc6.xml
               chapter01 changelog.xml credits.xml
               chapter08 chapter08.xml
  Added:       chapter08 mtas.xml
               packages/p postfix-config.xml postfix-desc.xml
                        postfix-inst.xml postfix-intro.xml postfix.xml
  Log:
  Add postfix-1.1.5
  
  Revision  Changes    Path
  1.60      +11 -0     BLFS/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/index.xml,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- index.xml	29 Mar 2002 00:11:41 -0000	1.59
  +++ index.xml	29 Mar 2002 00:42:37 -0000	1.60
  @@ -126,6 +126,7 @@
   <!ENTITY ch07-openssh SYSTEM "chapter07/openssh.xml">
   
   <!ENTITY chapter08 SYSTEM "chapter08/chapter08.xml"> 
  +<!ENTITY ch08-mtas SYSTEM "chapter08/mtas.xml">
   
   <!ENTITY chapter09 SYSTEM "chapter09/chapter09.xml"> 
   <!ENTITY ch09-openssh SYSTEM "chapter09/openssh.xml">
  @@ -464,6 +465,16 @@
   <!ENTITY ppp-version "2.4.1">
   <!ENTITY ppp-download "ftp://ftp.samba.org/pub/ppp/ppp-2.4.1.tar.gz">
   <!ENTITY ppp-size "524 KB">
  +
  +<!ENTITY postfix SYSTEM "packages/p/postfix.xml">
  +<!ENTITY postfix-intro SYSTEM "packages/p/postfix-intro.xml">
  +<!ENTITY postfix-inst SYSTEM "packages/p/postfix-inst.xml">
  +<!ENTITY postfix-desc SYSTEM "packages/p/postfix-desc.xml">
  +<!ENTITY postfix-config SYSTEM "packages/p/postfix-config.xml">
  +<!ENTITY postfix-buildsize "46 MB">
  +<!ENTITY postfix-version "1.1.5">
  +<!ENTITY postfix-download "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-1.1.5.tar.gz">
  +<!ENTITY postfix-size "1.2 MB">
   
   <!-- Q -->
   <!ENTITY qt SYSTEM "packages/q/qt.xml">
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc0.xml
  
  Index: rc0.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc0.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc0.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc0.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -28,6 +28,13 @@
   </row>
   
   <row>
  +<entry>K25</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Shut down Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>K30</entry>
   <entry>sshd</entry>
   <entry><filename>../init.d/sshd</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc1.xml
  
  Index: rc1.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc1.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc1.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc1.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -28,6 +28,13 @@
   </row>
   
   <row>
  +<entry>K25</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Shut down Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>K30</entry>
   <entry>sshd</entry>
   <entry><filename>../init.d/sshd</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc2.xml
  
  Index: rc2.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc2.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc2.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc2.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -28,6 +28,13 @@
   </row>
   
   <row>
  +<entry>K25</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Shut down Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>K30</entry>
   <entry>sshd</entry>
   <entry><filename>../init.d/sshd</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc3.xml
  
  Index: rc3.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc3.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc3.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc3.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -49,6 +49,13 @@
   </row>
   
   <row>
  +<entry>S35</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Start Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>S40</entry>
   <entry>alsa</entry>
   <entry><filename>../init.d/alsa</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc4.xml
  
  Index: rc4.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc4.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc4.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc4.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -49,6 +49,13 @@
   </row>
   
   <row>
  +<entry>S35</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Start Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>S40</entry>
   <entry>alsa</entry>
   <entry><filename>../init.d/alsa</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc5.xml
  
  Index: rc5.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc5.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc5.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc5.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -49,6 +49,13 @@
   </row>
   
   <row>
  +<entry>S35</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Start Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>S40</entry>
   <entry>alsa</entry>
   <entry><filename>../init.d/alsa</filename></entry>
  
  
  
  1.2       +7 -0      BLFS/appendixa/rc6.xml
  
  Index: rc6.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/appendixa/rc6.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc6.xml	25 Mar 2002 21:05:11 -0000	1.1
  +++ rc6.xml	29 Mar 2002 00:42:37 -0000	1.2
  @@ -28,6 +28,13 @@
   </row>
   
   <row>
  +<entry>K25</entry>
  +<entry>postfix</entry>
  +<entry><filename>../init.d/postfix</filename></entry>
  +<entry>Shut down Postfix MTA: <xref linkend="postfix"/></entry>
  +</row>
  +
  +<row>
   <entry>K30</entry>
   <entry>sshd</entry>
   <entry><filename>../init.d/sshd</filename></entry>
  
  
  
  1.56      +6 -0      BLFS/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/chapter01/changelog.xml,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- changelog.xml	28 Mar 2002 00:48:11 -0000	1.55
  +++ changelog.xml	29 Mar 2002 00:42:37 -0000	1.56
  @@ -10,6 +10,12 @@
   
   <itemizedlist>
   
  +<listitem><para>March 28th, 2002 [markh]: Chapter 08 - Add postfix-1.1.5
  +instructions.</para></listitem>
  +
  +<listitem><para>March 28th, 2002 [markh]: Chapter 13 - Update to
  +QT-3.0.3.</para></listitem>
  +
   <listitem><para>March 27th, 2002 [markh]: Chapter 07 and 09 - Added
   dhcp package instructions.</para></listitem>
   
  
  
  
  1.23      +1 -1      BLFS/chapter01/credits.xml
  
  Index: credits.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/chapter01/credits.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- credits.xml	28 Mar 2002 00:48:11 -0000	1.22
  +++ credits.xml	29 Mar 2002 00:42:37 -0000	1.23
  @@ -76,7 +76,7 @@
   <listitem><para>fetchmail and wvdial: <emphasis>Paul
   Campbell</emphasis></para></listitem>
   
  -<listitem><para>dhcp, fcron, OpenSSH, pcre and QT: <emphasis>Larry
  +<listitem><para>dhcp, fcron, OpenSSH, pcre, postfix and QT: <emphasis>Larry
   Lawrence</emphasis></para></listitem>
   
   <listitem><para><xref linkend="iptables"/>: <emphasis>Henning
  
  
  
  1.3       +7 -5      BLFS/chapter08/chapter08.xml
  
  Index: chapter08.xml
  ===================================================================
  RCS file: /home/cvsroot/BLFS/chapter08/chapter08.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- chapter08.xml	27 Nov 2001 00:38:47 -0000	1.2
  +++ chapter08.xml	29 Mar 2002 00:42:37 -0000	1.3
  @@ -2,10 +2,12 @@
   <?dbhtml filename="chapter08.html" dir="chapter08"?>
   <title>Setting up mail</title>
   
  -<screen>-- MTA's - Postfix, Sendmail, Qmail
  --- POP servers
  --- Procmail
  --- Using fetchmail
  --- Mail clients</screen>
  +<para>This chapter will eventually contain all the packages which are
  +involved with getting mail services running on your machine.</para>
  +
  +<para>Still to be added:  Other MTA's - Sendmail, Qmail.  POP servers
  +(qpopper?), Procmail, Fetchmail, Mail clients.</para>
  +
  +&ch08-mtas;
   
   </chapter>
  
  
  
  1.1                  BLFS/chapter08/mtas.xml
  
  Index: mtas.xml
  ===================================================================
  <sect1 id="ch08-mtas" xreflabel="MTAs">
  <?dbhtml filename="mtas.html" dir="chapter08"?>
  <title>Mail Transport Agents</title>
  
  <para>MTAs are the programs which transport mail from one machine to the
  other.  The traditional MTA is <emphasis>sendmail</emphasis> however
  there are at least two other major choices which some people prefer.  In
  this section we currently only have instructions for <xref
  linkend="postfix"/>, but hope to add other soon.</para>
  
  <itemizedlist>
  <listitem><para><xref linkend="postfix"/></para></listitem>
  </itemizedlist>
  
  </sect1>
  
  <sect1 id="ch08-postfix">
  <?dbhtml filename="postfix.html" dir="chapter08"?>
  <title>Installing postfix-&postfix-version;</title>
  
  &postfix;
  
  </sect1>
  
  
  
  1.1                  BLFS/packages/p/postfix-config.xml
  
  Index: postfix-config.xml
  ===================================================================
  <sect3>
  <title>Configuring postfix</title>
  
  <sect4><title>Config files</title>
  <para><userinput>/etc/aliases, /etc/postfix/main.cf</userinput> and <userinput>/etc/postfix/master.cf</userinput></para>
  </sect4>
  
  <sect4><title>Configuration Information</title>
  
  <para><screen><userinput>cat > /etc/aliases << "EOF"</userinput>
  # Begin /etc/aliases
  
  MAILER-DAEMON:    postmaster
  postmaster:       root
  
  root:             LOGIN
  # End /etc/aliases
  <userinput>EOF</userinput></screen></para>
  
  <para>The /etc/aliases file that was just created and the main.cf must
  be personalized for your system. aliases needs your non-root login
  identity in order for all mail to root to be forwarded to you at the
  user level.  main.cf needs your fully qualified hostname.  Both of these
  edits can be done with sed commands entered into the console with
  appropriate substitutions of your non-root login name for [user] and
  your fully qualified hostname for [localhost.localdomain]. These edits
  will create a single host mail system, other edits are necessary to
  perform the many other functions available.  You will find the main.cf
  file is self documenting, so load it into your favorite editor to make
  the changes you need for your situation.</para>
  
  <para><screen><userinput>cp /etc/aliases /etc/aliases.bak
  cp /etc/postfix/main.cf /etc/postfix/main.cf.bak
  sed "s/LOGIN/[user]/" /etc/aliases.bak > /etc/aliases
  sed "s/#myhostname = host.domain.name/myhostname = [localhost.localdomain]/" /etc/postfix/main.cf.bak /etc/postfix/main.cf
  /usr/bin/newaliases
  /usr/sbin/postfix start</userinput></screen></para></sect4>
  
  <sect4><title>postfix init.d script</title>
  
  <para>To automate the running of postfix, use following command to create the init.d script:</para>
  
  <para><screen><userinput>cat > /etc/rc.d/init.d/postfix << "EOF"</userinput>
  #!/bin/sh
  # Begin $rc_base/init.d/postfix
  
  # 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 Mail Service..."
  		loadproc postfix start
  		;;
  
  	stop)
  	        echo "Stopping Mail Service..."
  	        loadproc postfix stop
  	        ;;
  										        reload)
                  echo "Reloading Mail Service..."
                  loadproc postfix reload
                  ;;
  
          restart)
  	        $0 stop
  		sleep 1
  		$0 start
  		;;
  
  	*)
  	        echo "Usage: $0 {start|stop|reload|restart}"
  	        exit 1
  	        ;;
  esac
  
  # End $rc_base/init.d/postfix
  <userinput>EOF
  chmod +x /etc/rc.d/init.d/postfix</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/postfix ../rc0.d/K25postfix &&
  ln -sf ../init.d/postfix ../rc1.d/K25postfix &&
  ln -sf ../init.d/postfix ../rc2.d/K25postfix &&
  ln -sf ../init.d/postfix ../rc3.d/S35postfix &&
  ln -sf ../init.d/postfix ../rc4.d/S35postfix &&
  ln -sf ../init.d/postfix ../rc5.d/S35postfix &&
  ln -sf ../init.d/postfix ../rc6.d/K25postfix</userinput></screen></para>
  </sect4>
  
  </sect3>
  
  
  
  1.1                  BLFS/packages/p/postfix-desc.xml
  
  Index: postfix-desc.xml
  ===================================================================
  <sect3>
  <title>Contents</title>
  
  <para>The postfix package contains <userinput>bounce, cleanup, error, flush, lmtp, local, mailq, master, newaliases, nqmgr, pickup, pipe, postalias, postcat, postconf, postdrop, postfix, postkick, postlock, postlog, postmap, postqueue, postsuper, qmgr, qmqpd, sendmail, showq, smtp, smtpd, spawn, trivial-rewrite, and virtual.</userinput></para>
  
  </sect3>
  
  <sect3><title>Description</title>
  
  <sect4><title>postfix</title>
  <para>postfix is the program that starts and stops the mail delivery system.</para></sect4>
  
  <sect4><title>master</title>
  <para>master is the resident process that runs bounce, cleanup, error, flush, 
  lmtp, local, nqmgr, pickup, pipe, qmgr, qmqpd, showq, smtp, smtpd, spawn, 
  trivial-rewrite and virtual on demand. These programs are not designed to 
  work as user commands.</para></sect4>
  
  <sect4><title>postqueue</title>
  <para>postqueue implements the Postfix user interface for queue management.  
  It implements all the operations that are traditionally available via the 
  sendmail command.</para></sect4>
  
  <sect4><title>sendmail</title>
  <para>sendmail implements the Postfix to Sendmail compatibility interface.  
  mailq and newaliases are symlinks to sendmail.</para></sect4>
  
  <sect4><title>showq</title>
  <para>showq will emulate the mailq command when the Postfix mail system is 
  not running.</para></sect4>
  
  <sect4><title>postsuper</title>
  <para>postsuper does maintenance jobs on the Postfix queue.</para></sect4>
  
  <sect4><title>postalias</title>
  <para>postalias creates, queries or updates Postfix alias 
  databases.</para></sect4>
  
  <sect4><title>postcat</title>
  <para>postcat prints the contents of a Postfix queue file in human-readable 
  form.</para></sect4>
  
  <sect4><title>postconf</title>
  <para>postconf prints or changes the value of configuration 
  parameters.</para></sect4>
  
  <sect4><title>postdrop</title>
  <para>postdrop creates a file in the maildrop directory and copies its standard input to the file.</para></sect4>
  
  <sect4><title>postkick</title>
  <para>postkick makes the mail system private IPC accessible for use in shell 
  scripts.</para></sect4>
  
  <sect4><title>postlock</title>
  <para>postlock locks a file for exclusive access and executes a command
  on that file.</para></sect4>
  
  <sect4><title>postlog</title>
  <para>postlog implements a logging interface for use in shell 
  scripts.</para></sect4>
  
  <sect4><title>postmap</title>
  <para>postmap creates, queries or updates Postfix lookup tables.</para></sect4>
  
  </sect3>
  
  
  
  
  1.1                  BLFS/packages/p/postfix-inst.xml
  
  Index: postfix-inst.xml
  ===================================================================
  <sect3>
  <title>Installation of postfix</title>
  
  <para>Before you compile the program, you need to create users and groups that will be expected to be in place when the install script executes.  Add the users and groups with the following commands:</para>
  
  <para><screen><userinput>groupadd postfix &&
  groupadd postdrop &&
  groupadd -g 65534 nogroup &&
  useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &&
  useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &&
  chown postfix:postfix /var/mail</userinput></screen></para>
  
  <para>Install postfix by running the following commands:</para>
  
  <para><screen><userinput>make &&
  make install</userinput></screen></para>
  
  <para>The install script will enter an interactive stage with questions in the form of '*_directory:[default]input'.  Defaults can be accepted in all but three cases.  The following shows the three cases and the modified response.</para>
  
  <para><screen><userinput>daemon_directory:[/usr/libexec/postfix]/usr/sbin
  manpage_directory:[/usr/local/man]/usr/share/man
  sample_directory:[/etc/prefix]/usr/share/doc/postfix</userinput></screen></para>
  
  <para>The final installation step is to install the program's documentation with this command:</para>
  
  <para><screen><userinput>cp -rf html/* /usr/share/doc/postfix</userinput></screen></para>
  
  </sect3>
  
  
  
  
  1.1                  BLFS/packages/p/postfix-intro.xml
  
  Index: postfix-intro.xml
  ===================================================================
  <sect3>
  <title>Introduction to postfix</title>
  
  <screen>Download location:              &postfix-download;
  Version used:                   &postfix-version;
  Package size:                   &postfix-size;
  Estimated Disk space required:  &postfix-buildsize;</screen>
  
  <para>The postfix package contains a Mail Transport Agent (MTA). This
  is useful for sending email to other users of your host machine.  It can
  also be configured to be a central mail server for your domain, a mail
  relay agent or simply a mail delivery agent to your local Internet
  Service Provider (ISP).</para>
  
  <screen>postfix depends on: <xref linkend="db"/></screen>
  
  </sect3>
  
  
  
  1.1                  BLFS/packages/p/postfix.xml
  
  Index: postfix.xml
  ===================================================================
  <sect2 id="postfix" xreflabel="postfix-&postfix-version;">
  <title>postfix-&postfix-version;</title>
  
  &postfix-intro;
  &postfix-inst;
  &postfix-config;
  &postfix-desc;
  
  </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