[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: router unable to open aliases db



That was the ticket!! Thanx!

> -----Original Message-----
> From:	mea@nic.funet.fi [SMTP:mea@nic.funet.fi]
> Sent:	Monday, November 17, 1997 12:58 PM
> To:	Paquette, Trevor
> Cc:	zmailer@nic.funet.fi
> Subject:	Re: router  unable to open aliases db
> 
> > Zmailer 2.99.49p8
> ...
> > owner_ndbm: cannot open /apps/zmailer/db/aliases.pag!
> > search_ndbm: cannot open /apps/zmailer/db/aliases.pag!
> > 
> > doing an ls -lg on /apps/zmailer/db/aliases.pag gives:
> > 
> > -rw-rw-rw-   1 root     daemon       1024 Nov 17 11:48
> > /apps/zmailer/db/aliases.pag
> > 
> > Notice read/write for world.. so why can't it open the file?
> 
> 	That report means you have configured the file with
> 	at the configuration scripts with name  aliases.pag,
> 	and yet what the NDBM really does is to add to that
> 	suffixes  .pag  and  .dir  files.
> 
> 	This is why I have following script in latter 2.99.49
> 	versions to automatically have sensible setup:
> 
> if [ -f $MAILVAR/db/aliases ]; then
> 	# Need to be updated at boot ?
> 	if [ ! -f $MAILVAR/db/aliases$DBEXTtest -o \
> 	     $MAILVAR/db/aliases -nt $MAILVAR/db/aliases$DBEXTtest ];
> then
> 		# Yes, so update!
> 		$MAILBIN/zmailer newaliases
> 	fi
> 	relation -lmt $DBTYPE -f $MAILVAR/db/aliases$DBEXT aliases
> else
> 	aliases () { return 1 }
> fi
> 
> 
> 	For NDBM these $DB* things are:
> 		DBTYPE		ndbm
> 		DBEXT		""
> 		DBEXTtest	.pag
> 
> > --
> > Trevor Paquette              |  MetroNet Solutions
> |Work:(403)543-2355
> > TrevorPaquette@mcc.net       | 4300, 150 6th Ave SW |
> Fax:(403)543-2854
> 
> 	/Matti Aarnio