Sendmail cf-8.{8,9}.x/m4/proto-patch-8.{8,9}.x

http://www.lege.com/proto.html





Select which sendmail configuration version you want to patch

In order to prevent your www browser from unpacking and displaying the
below files, a    .bin    ending has been added to all the file-names.

Simply re-name the file so the    .bin    ending is removed during the fetch!

Users of recent Linux distributions may have to patch their cpio version 2.4.2
to be compliant with glibc 6 before being able to unpack these packets. See below.


Assuming you fetched the 8.9.3 bzipped version, here's an example:

	cd  /usr/src/sendmail-8.9.3/cf 

	cp -p  ostype/linux.m4  ostype/linux.m4.yourname 

	bzip2 -d < /tmp/sendmail-8.9.3-cf-cpio-idcmu.bz2 | \
	cpio -idcmu

	# Or, for the gzipped version, ...
	gzip -d < /tmp/sendmail-8.9.3-cf-cpio-idcmu.gz | \
	cpio -idcmu 

These files are unpacked...
       92347 Aug  3 16:10 README
       90792 Feb  3  1999 README.orig
        3527 Aug  3 16:09 README.patch
       40261 Aug 23 18:46 cf/elijah.smtp.cf
       10912 Aug 23 18:46 cf/elijah.smtp.mc
          46 Nov 10  1998 cf/make_elijah
          42 Nov 10  1998 cf/make_ruth
       13696 Aug  3 22:08 cf/ruth.smtp.cf
        4504 Nov 10  1998 cf/ruth.smtp.mc
       14702 Jan  6  1999 domain/elijah.m4
        4199 Jan  4  1999 domain/ruth.m4
       51891 Aug  3 17:06 m4/proto.m4
       44198 Feb  3  1999 m4/proto.m4.orig
       12061 Aug  3 17:02 m4/proto.m4.patch
        2376 Aug  3 17:33 ostype/linux.m4
         502 Dec 29  1998 ostype/linux.m4.orig
        2343 Aug  3 17:32 ostype/linux.m4.patch
        2124 Aug  3 17:32 ostype/solaris2.m4
        1121 Dec 29  1998 ostype/solaris2.m4.orig
        2692 Aug  3 17:32 ostype/solaris2.m4.patch

Study cf/elijah.smtp.mc, domain/elijah.m4, ostype/linux.m4 and possibly m4/proto-patch-8.9.3.    "ruth" is an ethernet-connected second Linux system on network 192.168.16.0 ... IP addresses on this network are not routed, so "ruth" doesn't even try to look up in DNS -- instead it's sendmail has been recompiled not to use DNS at all and the configuration is a very simple nullclient.    Happy hunting!

I *strongly* recommend that you also install xaliases-2.2.

	cd /usr/src	or	cd /usr/local/src

	tar -zxvf /tmp/xaliases-2.2.tar.gz

	cd xaliases-2.2

	less INSTALL

Starting with version 8.9.1,   I have moved the sendmail config files,   /etc/mail/sendmail.cf   included,   to   /etc/mail.

This means you ought to recompile sendmail,   see one of these... "/tmp/sendmail-8.9.3-elijah-havedone.txt" (normal PPP-connected Linux box) or "/tmp/sendmail-8.9.3-ruth-havedone.txt" (null-client and no available nameserver) or "/tmp/sendmail-8.9.1a-havedone.txt" (normal PPP-connected Linux box) for how I have done it on my systems.   Your mileage may of course vary,   especially if you are not using bind-8.1.2 -- in which case you must omit lines referencing /usr/bind/include,   /usr/bind/lib etc from the above "havedone"-files.   You may want to study this "/tmp/sendmail-8.9.3-README" or this "/tmp/sendmail-8.9.1a-README" first!

One or several of the above "havedone" - files mention db-2.7.5-havedone.txt. You may want to consult it too. You may also want to consult bind-8.1.2-havedone.txt.

There is also a FAQ that you may want to study.



Bugpatch for cpio version 2.4.2 running under glibc 6

Users of recent Linux distributions may have to patch their cpio version 2.4.2
to be compliant with glibc 6 before being able to unpack the above patches.
For your benefit I am here supplying the fixes I made to my own system back in May
(yeah, I forgot about you all this time, you should have told me! ;-)):

In order to prevent your www browser from unpacking and displaying some of the
below files, a    .bin    ending has been added to some of the file-names.

Simply re-name the file so the    .bin    ending is removed during the fetch!

Instructions:

Either just grab the binary and unpack it in place then change it's permissions:

	mv /usr/bin/cpio /usr/bin/cpio.orig
	gzip -d < cpio.gz > /usr/bin/cpio
	chmod 755 /usr/bin/cpio
Or else untar the source tarball and apply the above patches yourself:
	mkdir -p /usr/src/cpio-2.4.2.log
	cp -p cpio-2.4.2.tar.gz \
		/usr/src/cpio-2.4.2.log/cpio-2.4.2.tar.gz
	cp -p cpio-2.4.2.copyout.c.GCC-libc6-workaround.patch \
		/usr/src/cpio-2.4.2.log/cpio-2.4.2.copyout.c.GCC-libc6-workaround.patch
	cp -p cpio-2.4.2.rmt.c.LEGE-linux-patch \
		/usr/src/cpio-2.4.2.log/cpio-2.4.2.rmt.c.LEGE-linux-patch
	cd /usr/src
	tar -ztvf /usr/src/cpio-2.4.2.log/cpio-2.4.2.tar.gz
	tar -zxvf /usr/src/cpio-2.4.2.log/cpio-2.4.2.tar.gz
	cd /usr/src/cpio-2.4.2
	cp -p COPYING* NEWS README INSTALL \
		/usr/src/cpio-2.4.2.log
	patch < /usr/src/cpio-2.4.2.log/cpio-2.4.2.copyout.c.GCC-libc6-workaround.patch
	patch < /usr/src/cpio-2.4.2.log/cpio-2.4.2.rmt.c.LEGE-linux-patch
	./configure --prefix=/usr 2>&1 | \
		tee /usr/src/cpio-2.4.2.log/LEGE-configure.log
	make 2>&1 | \
		tee /usr/src/cpio-2.4.2.log/LEGE-make.log
	ls -ld cpio mt rmt
	strip cpio
	strip mt
	strip rmt
	ls -ld cpio mt rmt
	make install 2>&1 | \
		tee /usr/src/cpio-2.4.2.log/LEGE-make-install.log
	cp -p /usr/bin/cpio /usr/bin/cpio.GCC-libc6-workaround
	cp -p /usr/bin/cpio /usr/bin/cpio.LEGE
	# This is so I can later copy back my cpio in case an upgrade
	# trashes it.
	rm -rf /usr/src/cpio-2.4.2

	# DONE!
	

HOME


Copyright © 1997, 1998, 1999 DATA LEGE

Updated November 27, 1999