Ticket #22: sendmail.patch

File sendmail.patch, 7.4 KB (added by billy@…, 19 years ago)

adds sendmail 8.12.5

  • sendmail/sendmail-config.xml

    diff --exclude=CVS -Naur ./sendmail/sendmail-config.xml /home/billy/NEWBLFS/BOOK/server/mail/sendmail/sendmail-config.xml
    old new  
     1<sect2>
     2<title>Configuring sendmail</title>
     3
     4<sect3><title>Config files</title>
     5<para><userinput>/etc/mail/aliases.db, /etc/mail/sendmail.cf,
     6/etc/mail/submit.cf</userinput> and
     7<userinput>/etc/mail/local-host-names</userinput></para>
     8</sect3>
     9
     10<sect3><title>Configuring sendmail</title>
     11<para><screen><userinput>
     12echo `hostname` > /etc/mail/local-host-names
     13cat > /etc/mail/aliases << "EOF"
     14postmaster: root
     15MAILER-DAEMON: root
     16EOF
     17sendmail -v -bi
     18/usr/sbin/sendmail -bs -bd -q1m
     19</userinput></screen></para>
     20
     21<para>To start and stop sendmail on system boot/shutdown create the
     22sendmail boot script with the following commands: </para>
     23
     24<para><screen><userinput>cat &gt; /etc/rc.d/init.d/sendmail &lt;&lt; "EOF"</userinput>
     25#!/bin/sh
     26# Begin $rc_base/init.d/sendmail
     27
     28# Based on sysklogd script from LFS-3.1 and earlier.
     29# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
     30
     31source /etc/sysconfig/rc
     32source $rc_functions
     33
     34case "$1" in
     35
     36        start)
     37        echo "Starting sendmail..."
     38        loadproc sendmail -bs -bd -q1m start
     39        ;;
     40
     41        stop)
     42        echo "Stopping Sendmail..."
     43        killproc sendmail
     44        ;;
     45               
     46        status)
     47        statusproc sendmail
     48        ;;
     49       
     50        restart)
     51        $0 stop
     52        sleep 1
     53        $0 start
     54        ;;
     55
     56        *)
     57        echo "Usage: $0 {start|stop|status|restart}"
     58        exit 1
     59        ;;
     60esac
     61
     62# End $rc_base/init.d/sendmail
     63<userinput>EOF
     64chmod 755 /etc/rc.d/init.d/sendmail</userinput></screen></para>
     65
     66<para>Create the run level symlinks with the following commands:
     67
     68<screen><userinput>cd /etc/rc.d/init.d &amp;&amp;
     69ln -sf ../init.d/sendmail ../rc0.d/K25sendmail &amp;&amp;
     70ln -sf ../init.d/sendmail ../rc1.d/K25sendmail &amp;&amp;
     71ln -sf ../init.d/sendmail ../rc2.d/K25sendmail &amp;&amp;
     72ln -sf ../init.d/sendmail ../rc3.d/S35sendmail &amp;&amp;
     73ln -sf ../init.d/sendmail ../rc4.d/S35sendmail &amp;&amp;
     74ln -sf ../init.d/sendmail ../rc5.d/S35sendmail &amp;&amp;
     75ln -sf ../init.d/sendmail ../rc6.d/K25sendmail</userinput></screen></para>
     76</sect3>
     77
     78</sect2>
  • sendmail/sendmail-desc.xml

    diff --exclude=CVS -Naur ./sendmail/sendmail-desc.xml /home/billy/NEWBLFS/BOOK/server/mail/sendmail/sendmail-desc.xml
    old new  
     1<sect2>
     2<title>Contents</title>
     3
     4<para>The sendmail package contains
     5<userinput>mail.local</userinput>,
     6<userinput>rmail</userinput>,
     7<userinput>smrsh</userinput>,
     8<userinput>editmap</userinput>,
     9<userinput>makemap</userinput>,
     10<userinput>mailq</userinput>,
     11<userinput>newaliases</userinput>,
     12<userinput>sendmail</userinput>,
     13<userinput>vacation</userinput>,
     14<userinput>praliases</userinput>,
     15<userinput>mailstats</userinput>,
     16and <userinput></userinput>.</para>
     17</sect2>
     18<sect2><title>Description</title>
     19<sect3><title>mail.local</title>
     20<para>mail.local appends its standard input to a user's mail
     21file.</para></sect3>
     22<sect3><title>rmail</title>
     23<para>rmail interprets incoming mail received via uucp.</para></sect3>
     24<sect3><title>smrsh</title>
     25<para>smrsh is a restricted shell for Sendmail.</para></sect3>
     26<sect3><title>editmap</title>
     27<para>editmap queries and edits Sendmail map files.</para></sect3>
     28<sect3><title>makemap</title>
     29<para>makemap creates Sendmail map files.</para></sect3>
     30<sect3><title>mailq</title>
     31<para>mailq prints a summary of waiting mail messages.</para></sect3>
     32<sect3><title>newaliases</title>
     33<para>newaliases rebuilds /etc/mail/aliases.db.</para></sect3>
     34<sect3><title>sendmail</title>
     35<para>sendmail is the Sendmail mail transport agent.</para></sect3>
     36<sect3><title>vacation</title>
     37<para>vacation is an email auto responder.</para></sect3>
     38<sect3><title>praliases</title>
     39<para>praliases displays current Sendmail aliases.</para></sect3>
     40<sect3><title>mailstats</title>
     41<para>mailstats displays Sendmail statistics.</para></sect3>
     42</sect2>
     43
  • sendmail/sendmail-inst.xml

    diff --exclude=CVS -Naur ./sendmail/sendmail-inst.xml /home/billy/NEWBLFS/BOOK/server/mail/sendmail/sendmail-inst.xml
    old new  
     1<sect2>
     2<title>Installation of sendmail</title>
     3
     4<para>Before building sendmail, we need to create users, groups and
     5directories that sendmail uses with the following commands:</para>
     6<para><screen><userinput>
     7groupadd -g 18 smmsp &amp;&amp;
     8groupadd -g 19 mail &amp;&amp;
     9useradd -g smmsp -G mail -u 18 smmsp &amp;&amp;
     10chmod 1777 /tmp &amp;&amp;
     11chmod 1777 /var/mail &amp;&amp;
     12mkdir /var/spool/mqueue
     13</userinput></screen></para>
     14
     15<para>Install sendmail with the following commands:</para>
     16
     17<para><screen><userinput>
     18cd sendmail &amp;&amp;
     19sh Build &amp;&amp;
     20cd ../cf/cf &amp;&amp;
     21cp generic-linux.mc sendmail.mc &amp;&amp;
     22mkdir /etc/mail &amp;&amp;
     23sh Build sendmail.mc &amp;&amp;
     24sh Build install-cf &amp;&amp;
     25cd ../../ &amp;&amp;
     26sh Build install
     27</userinput></screen></para>
     28</sect2>
     29
  • sendmail/sendmail-intro.xml

    diff --exclude=CVS -Naur ./sendmail/sendmail-intro.xml /home/billy/NEWBLFS/BOOK/server/mail/sendmail/sendmail-intro.xml
    old new  
     1<sect2>
     2<title>Introduction to sendmail</title>
     3
     4<screen>
     5Download location (FTP):        <ulink url="&sendmail-download-ftp;"/>
     6Version used:                   &sendmail-version;
     7Package size:                   &sendmail-size;
     8Estimated Disk space required:  &sendmail-buildsize;</screen>
     9
     10<para>The sendmail package contains a Mail Transport Agent
     11(MTA).  </para>
     12
     13
     14<screen>sendmail depends on:
     15<xref linkend="db"/>, <xref linkend="procmail"/></screen>
     16
     17</sect2>
  • sendmail/sendmail.ent

    diff --exclude=CVS -Naur ./sendmail/sendmail.ent /home/billy/NEWBLFS/BOOK/server/mail/sendmail/sendmail.ent
    old new  
    11<!ENTITY sendmail SYSTEM "../sendmail.xml">
     2<!ENTITY sendmail-intro SYSTEM "sendmail-intro.xml">
     3<!ENTITY sendmail-inst SYSTEM "sendmail-inst.xml">
     4<!ENTITY sendmail-desc SYSTEM "sendmail-desc.xml">
     5<!ENTITY sendmail-config SYSTEM "sendmail-config.xml">
     6<!ENTITY sendmail-buildsize "12 MB">
     7<!ENTITY sendmail-version "8.12.5">
     8<!ENTITY sendmail-download-ftp
     9"ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.12.5.tar.gz">
     10<!ENTITY sendmail-size "1.8 MB">
  • sendmail.xml

    diff --exclude=CVS -Naur ./sendmail.xml /home/billy/NEWBLFS/BOOK/server/mail/sendmail.xml
    old new  
    1 <sect1 id="sendmail" xreflabel="sendmail">
     1<sect1 id="sendmail" xreflabel="sendmail-&sendmail-version;">
    22<?dbhtml filename="sendmail.html" dir="server"?>
    3 <title>sendmail</title>
     3<title>sendmail-&sendmail-version;</title>
    44
    5 <para>TO BE DONE</para>
     5&sendmail-intro;
     6&sendmail-inst;
     7&sendmail-config;
     8&sendmail-desc;
    69
    710</sect1>
    811