🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3099

UK Sendmail 2.1 on V2

#3099
From: Ian G Batten
Date: Thu, 19 Jan 1989 15:40
61 lines
2572 bytes
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
Technical Details
Message-ID: <8901191540.AA04866@Fulcrum.BT.CO.UK>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!etive!glasgow!igb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!etive!glasgow!igb
From: igb@fulcrum.bt.co.uk (Ian G Batten)
Newsgroups: comp.mail.sendmail,mail.uk-sendmail-workers
Subject: UK Sendmail 2.1 on V2
Message-ID: <8901191540.AA04866@Fulcrum.BT.CO.UK>
Date: 19 Jan 89 15:40:57 GMT
Sender: daemon@cs.glasgow.ac.uk
Lines: 61
Original-Sender: igb <igb%uk.co.bt.fulcrum@uk.co.bt.axion.btnix>
Original-Sender: igb%uk.co.bt.fulcrum%uk.co.bt.axion.btnix@uk.co.bt.axion
X-Mailer: mail-news 2.0.3