krus@diku.dk (Lars Povlsen) (04/26/89)
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