From a11e412d48a154656848dfd52fee100b38d91426 Mon Sep 17 00:00:00 2001 From: Larry Lawrence Date: Thu, 1 May 2003 23:38:41 +0000 Subject: [PATCH] update to postfix-2.0.9 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@898 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- introduction/welcome/changelog.xml | 3 + server/mail/postfix/postfix-config.xml | 41 ++++++----- server/mail/postfix/postfix-desc.xml | 96 ++++++++++++++++---------- server/mail/postfix/postfix-inst.xml | 28 ++++---- server/mail/postfix/postfix-intro.xml | 35 ++++++---- server/mail/postfix/postfix.ent | 4 +- 6 files changed, 123 insertions(+), 84 deletions(-) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index c23371e7a8..938e065b45 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -10,6 +10,9 @@ page in Chapter 1 for details on who wrote what. +May 1st, 2003 [larry]: server: updated to +postfix-2.0.9. + May 1st, 2003 [larry]: general: after reviewing lcms, it appeared to be a good candidate for the newer LFS installation format. See what you think. diff --git a/server/mail/postfix/postfix-config.xml b/server/mail/postfix/postfix-config.xml index e35761e4ed..9b12c6938b 100644 --- a/server/mail/postfix/postfix-config.xml +++ b/server/mail/postfix/postfix-config.xml @@ -1,5 +1,5 @@ -Configuring postfix +Configuring <application>postfix</application> Config files /etc/aliases, @@ -9,7 +9,7 @@ Configuration Information -cat > /etc/aliases << "EOF" +cat > /etc/aliases << "EOF" # Begin /etc/aliases MAILER-DAEMON: postmaster @@ -17,33 +17,36 @@ postmaster: root root: LOGIN # End /etc/aliases -EOF +EOF The /etc/aliases file that was just created, the main.cf and the master.cf -must be personalized for your system. The aliases file needs your -non-root login identity so mail addressed to root can be forwarded to -you at the user level. The main.cf file needs your fully qualified -hostname. All 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]. You will find the main.cf file is self documenting, so load it into your editor to make the changes you need for your situation. +must be personalized for your system. The aliases file +needs your non-root login identity so mail addressed to root can be forwarded +to you at the user level. The main.cf file needs your +fully qualified hostname. All 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]. You will +find the main.cf file +is self documenting, so load it into your editor to make the changes you need +for your situation. -cp /etc/aliases /etc/aliases.bak +cp /etc/aliases /etc/aliases.bak cp /etc/postfix/main.cf /etc/postfix/main.cf.bak cp /etc/postfix/master.cf /etc/postfix/master.cf.bak -sed "s/LOGIN/[user]/" /etc/aliases.bak > /etc/aliases +sed "s/LOGIN/[user]/" /etc/aliases.bak > /etc/aliases sed "s/#myhostname = host.domain.tld/myhostname = \ - [localhost.localdomain]/" \ + [localhost.localdomain]/" \ /etc/postfix/main.cf.bak > /etc/postfix/main.cf /usr/bin/newaliases -/usr/sbin/postfix start +/usr/sbin/postfix start postfix init.d script To automate the running of postfix, use following command to create the init.d script: -cat > /etc/rc.d/init.d/postfix << "EOF" +cat > /etc/rc.d/init.d/postfix << "EOF" #!/bin/sh # Begin $rc_base/init.d/postfix @@ -83,20 +86,20 @@ case "$1" in esac # End $rc_base/init.d/postfix -EOF -chmod 755 /etc/rc.d/init.d/postfix +EOF +chmod 755 /etc/rc.d/init.d/postfix Create the symbolic links to this file in the relevant rc.d directory with the following commands: -cd /etc/rc.d/init.d && +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 +ln -sf ../init.d/postfix ../rc6.d/K25postfix diff --git a/server/mail/postfix/postfix-desc.xml b/server/mail/postfix/postfix-desc.xml index 9b1213ecbb..64f9e11197 100644 --- a/server/mail/postfix/postfix-desc.xml +++ b/server/mail/postfix/postfix-desc.xml @@ -1,82 +1,102 @@ Contents -The postfix package contains 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. +The postfix package contains 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. Description postfix -postfix is the program that starts and stops the mail delivery system. +postfix is the program that starts and stops the mail delivery system. master -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 +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. postqueue -postqueue implements the Postfix user interface for queue management. -It implements all the operations that are traditionally available via the -sendmail command. +postqueue implements the +Postfix user interface for +queue management. It implements all the operations that are traditionally +available via the sendmail command. sendmail -sendmail implements the Postfix to Sendmail compatibility interface. -mailq and newaliases are symlinks to sendmail. +sendmail implements the +Postfix to +Sendmail compatibility interface. +mailq and newaliases are symlinks to +sendmail. showq -showq will emulate the mailq command when the Postfix mail system is +showq will emulate the mailq command when the +Postfix mail system is not running. postsuper -postsuper does maintenance jobs on the Postfix queue. +postsuper does maintenance jobs on the +Postfix queue. postalias -postalias creates, queries or updates Postfix alias +postalias creates, queries or updates +Postfix alias databases. postcat -postcat prints the contents of a Postfix queue file in human-readable +postcat prints the contents of a +Postfix queue file in human-readable form. postconf -postconf prints or changes the value of configuration +postconf prints or changes the value of configuration parameters. postdrop -postdrop creates a file in the maildrop directory and copies its standard input to the file. +postdrop creates a file in the maildrop directory and +copies its standard input to the file. postkick -postkick makes the mail system private IPC accessible for use in shell +postkick makes the mail system private +IPC accessible for use in shell scripts. postlock -postlock locks a file for exclusive access and executes a command -on that file. +postlock locks a file for exclusive access and +executes a command on that file. postlog -postlog implements a logging interface for use in shell -scripts. +postlog implements a logging interface for use in +shell scripts. postmap -postmap creates, queries or updates Postfix lookup tables. +postmap creates, queries or updates +Postfix lookup tables. diff --git a/server/mail/postfix/postfix-inst.xml b/server/mail/postfix/postfix-inst.xml index 5c688db496..3ae1f9a7f4 100644 --- a/server/mail/postfix/postfix-inst.xml +++ b/server/mail/postfix/postfix-inst.xml @@ -1,29 +1,33 @@ -Installation of postfix +Installation of <application>postfix</application> -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: +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: -groupadd postfix && +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 +chown postfix:postfix /var/mail -Install postfix by running the following commands: +Install postfix by running the following commands: -make && -make install +make && +make install -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. +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. -daemon_directory:[/usr/libexec/postfix]/usr/sbin -manpage_directory:[/usr/local/man]/usr/share/man -sample_directory:[/etc/postfix]/usr/share/doc/postfix +daemon_directory:[/usr/libexec/postfix]/usr/sbin +manpage_directory:[/usr/local/man]/usr/share/man +sample_directory:[/etc/postfix]/usr/share/doc/postfix The final installation step is to install the program's documentation with this command: -cp -rf html/* /usr/share/doc/postfix +cp -rf html/* /usr/share/doc/postfix diff --git a/server/mail/postfix/postfix-intro.xml b/server/mail/postfix/postfix-intro.xml index 768c5936ee..cddda0f6c7 100644 --- a/server/mail/postfix/postfix-intro.xml +++ b/server/mail/postfix/postfix-intro.xml @@ -1,20 +1,29 @@ Introduction to postfix -Download location (HTTP): -Download location (FTP): -Version used: &postfix-version; -Package size: &postfix-size; -Estimated Disk space required: &postfix-buildsize; -Estimated build time: &postfix-time; +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). -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). +Package information + +Download (HTTP): +Download (FTP): +Download size: &postfix-size; +Estimated Disk space required: +&postfix-buildsize; +Estimated build time: +&postfix-time; + -postfix depends on: - +<application>postfix</application> dependencies +Required + + diff --git a/server/mail/postfix/postfix.ent b/server/mail/postfix/postfix.ent index ba8f1850ad..6856142c5c 100644 --- a/server/mail/postfix/postfix.ent +++ b/server/mail/postfix/postfix.ent @@ -3,8 +3,8 @@ - - + +