🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #12318

Re: Sendmail 5.61 patch kit for Suns [Making aliases]

#12318
From: Lars Povlsen
Date: Wed, 26 Apr 1989 05:20
39 lines
2389 bytes
sob@bcm.tmc.edu (Stan Barber) writes: [In the README file in the kit]

> 9. If you care about Yellow Pages Support, you will need to keep the
> old version of sendmail around on the Yellow Pages master to correctly
> rebuild the mail.aliases file so that the mail.byaddr database will 
> be rebuilt correctly. You will need to edit /var/yp/Makefile and change
> the reference to /usr/lib/sendmail to /usr/lib/sendmail.old. This is
> only necessary on the Yellow Pages Master. If anyone can tell me how
> to get makedbm to do this, please do. I have not found out how yet. It
> builds a mail.aliases database just fine, but the mail.byaddr will not
> build correctly.

I had similar trouble with 5.61/IDA on SunOS, using YP aliases. The thing
is, the YP maps have to have some entries a la' YPMASTER and
YP_LAST_MODIFIED, otherwise you can't push them. The trick is to pass the
map via makedbm, which by default add these records. I modified the
yp-makefile to pass the sendmail generated aliases via makedbm -u |
makedbm -, that is, undump the alias dbm file and have makdbm generate it
properly. Here are the associated lines from the makefile:

aliases.time: $(ALIASES)
	-@if [ -f $(ALIASES) ]; then \
	  cp $(ALIASES) $(YPDBDIR)/$(DOM)/temp.mail.aliases; \
	  /usr/lib/sendmail -bi -oA$(YPDBDIR)/$(DOM)/temp.mail.aliases; \
	  $(MAKEDBM) -u $(YPDBDIR)/$(DOM)/temp.mail.aliases | \
			$(MAKEDBM) - $(YPDBDIR)/$(DOM)/mail.aliases; \
	  $(MKALIAS) $(YPDBDIR)/$(DOM)/mail.aliases \
		     $(YPDBDIR)/$(DOM)/mail.byaddr; \
	  rm $(YPDBDIR)/$(DOM)/temp.mail.aliases* ; \
	...rest unchanged...

Hope this really was the problem. Anycase it should help those trying to
use 5.61/IDA with YP aliases.

---Lars

Lars Povlsen,
Institute of Datalogy, University of Copenhagen
E-mail: krus@diku.dk / ...!mcvax!dkuug!diku!krus
Technical Details
Message-ID: <4576@freja.diku.dk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <8903190914.AA19847@bcm.tmc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: krus@diku.dk (Lars Povlsen)
Newsgroups: comp.sys.sun
Subject: Re: Sendmail 5.61 patch kit for Suns [Making aliases]
Keywords: Networks
Message-ID: <4576@freja.diku.dk>
Date: 26 Apr 89 05:20:15 GMT
References: <8903190914.AA19847@bcm.tmc.edu>
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 39
Approved: Sun-Spots@rice.edu
Original-Date: 5 Apr 89 07:59:53 GMT
X-Sun-Spots-Digest: Volume 7, Issue 252, message 1 of 8