[comp.mail.sendmail] UK Sendmail 2.1 on V2

igb@fulcrum.bt.co.uk (Ian G Batten) (01/19/89)

I've just (today) put UK Sendmail 2.1 up on one of our (Unisoft V.2)
machines.  I had to make a few changes.  I don't have diff -c, I'm
afraid.  I have run Support/SysV.sh before doing these modifications.
The Sendmail is 5.60 with modifications made by CMC.  The nameserver is
named 4.8.

(1) The sed script in Config which massages the config file into
/tmp/config.$$ didn't seem to work correctly.  All entries after the
first "channel" line got deleted.  I suspect some lossage in my sed. 
I replaced it with:

34,43c34
< (cat $1; echo) | sed -n '
< /#/s/#.*//
< /^$/d
< : repeat
< N
< s/\n[	 ][	 ]*//
< t repeat
< P
< D
< ' > /tmp/config.$$
---
| (cat $1; echo) | sed '/#/s/#.*//;/^$/d' > /tmp/config.$$

(2) As I found with 1.4 last week, the DA line gets lost by the
nroff-ing process.  I altered Dombuild as follows:

101c101
< 			printf "\nD%s%s\n", C, rhs		>cl_outd
---
| 			printf "\nD%s %s\n", C, rhs		>cl_outd

(3) I run with a nameserver, as an experiment, and the Dj macro is
defined wrongly for that case (I think).  Using the standard version for
MULTIHOST resulted in message ids like
"<...@pea.fulcrum.bt.co.uk.fulcrum.bt.co.uk>", presumably because the
hostname was already fully qualified from the resolver.  Here's my fix:

27c27
< ifdef(`MULTIHOST',`Dj$w.$J',`Dj$J')
---
| ifdef(`MULTIHOST',`ifdef(`NAMESERVER',`Dj$w',`Dj$w.$J')',`Dj$J')

(4) System V Release 2 /bin/mail is very limited.  I altered the flags
as follows (the settings are taken from the sendmail.cf supplied with my
System V port of sendmail).

21,23c21,23
< Mlocal,   P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u 
< Mbinmail, P=/bin/mail, F=rnlsmFD, S=20, R=20, A=mail -d $u 
< Mprog,    P=/bin/sh,   F=nlsFD,   S=20, R=20, A=sh -c $u 
---
| Mlocal,   P=/bin/mail, F=lsDFMmn, S=20, R=20, A=mail $u 
| Mbinmail, P=/bin/mail, F=lsDFMmn, S=20, R=20, A=mail $u 
| Mprog,    P=/bin/sh,   F=lsDFMe,   S=20, R=20, A=sh -c $u 
53c53
< Mether,	P=[IPC], F=nsmFDMuXC, S=21, R=21, A=IPC $h
---
| Mether,	P=[IPC], F=mDFMueCX, S=11, R=21, A=IPC $h