DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦ab8e52bd2⟧ TextFile

    Length: 3254 (0xcb6)
    Types: TextFile
    Notes: UNIX file
    Names: »install.mail«

Derivation

└─⟦50c223e0a⟧ Bits:30004042/network1.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦50c223e0a⟧ UNIX Filesystem
    └─⟦this⟧ »bn/new/usr/lib/install.mail« 

TextFile

#! /bin/sh
#
# @(#)make.cf.sh	2.1 (smail) 12/14/86
#
#make
rm -f /bin/rmail /bin/lmail
if [ ! -r /bin/mail.old ]
then
	echo "saving old /bin/mail in /bin/mail.old"
	mv /bin/mail /bin/mail.old
fi
if [ ! -r /usr/bin/mailx.old ]
then
	echo "saving old /usr/bin/mailx in /usr/bin/mailx.old"
	mv /usr/bin/mailx /usr/bin/mailx.old
fi
ln /bin/mail.new /bin/mail
ln /usr/bin/mailx.new /usr/bin/mailx
ln /bin/mail /bin/lmail
ln /bin/smail /bin/rmail
chmod 4755 /usr/lib/sendmail
rm -f /usr/bin/newaliases /usr/bin/mailq
ln /usr/lib/sendmail /usr/bin/newaliases
ln /usr/lib/sendmail /usr/bin/mailq
if [ ! -d /usr/spool/mqueue ]
then
	mkdir /usr/spool/mqueue
	chown daemon /usr/spool/mqueue
	chmod 755 /usr/spool/mqueue
fi
mv -f /usr/lib/sendmail.cf /usr/lib/sendmail.ocf
cd /usr/lib
cat <<!EOM!
This script will prompt you for the automatically configurable parameters
in the stock version of the sendmail configuration file.  Naturally, any
local extensions will have to be added manually.

Clyde is a VAX running AT&T System V Release 2.0, with a port of sendmail.
Clyde is a gateway for the domain .att.com.

Below is a trace of the session that
configured the sendmail.cf on clyde.ATT.COM:
===

!EOM!

echo "press return to continue"; read foo

cat <<!EOM!
Enter Date (MM-DD-YY):
06-24-86
Enter This Host's Name:
clyde
Enter This Host's Official Domain:
ATT.COM
Enter Any Equivalent Domain Classes:
ATT
Enter Any Domains For Which This Host Is An Authority:
ATT.UUCP
Does This Host Have SMTP Connections (y/n)?
yes
Enter Full Path to File that Contains List of SMTP Connections:
/etc/hosts.equiv
Will This Host Act As A Gateway Between Domains (y/n)?
yes
Are subdomains beneath this hosts' domain to be hidden (y/n)?
yes
===
!EOM!
# get date of configuration
CF_DATE=`/bin/sh ./smail.prompt string "Enter Date (MM-DD-YY):"`

# get host name
CF_HOST=`/bin/sh ./smail.prompt string "Enter This Host's Name:"`

# get host domain
CF_DOMAIN=`/bin/sh ./smail.prompt string "Enter This Host's Official Domain:"`

# get domain classes
CF_DCLASS=`/bin/sh ./smail.prompt string "Enter Any Equivalent Domain Classes:"`

# get domain authority
CF_AUTHORITY=`/bin/sh ./smail.prompt string "Enter Any Domains For Which This Host Is An Authority:"`

CF_SMTP=`/bin/sh ./smail.prompt yesno "Does This Host Have SMTP Connections (y/n)?"`
if test "$CF_SMTP" = "yes"
then

#get list of local SMTP connections
	CF_SMTP=`/bin/sh ./smail.prompt file "Enter Full Path to File that Contains List of SMTP Connections:"`

	CF_SMTP="FE$CF_SMTP %s"
else
	CF_SMTP=""
fi

CF_GATEWAY=`/bin/sh ./smail.prompt yesno "Will This Host Act As A Gateway Between Domains(y/n)?"`
if test "$CF_GATEWAY" = "yes"
then
	CF_GATEWAY=""
else
	CF_GATEWAY="#"
fi

CF_HIDDENHOSTS=`/bin/sh ./smail.prompt yesno "Are subdomains beneath this hosts' domain to be hidden (y/n)?"`
if test "$CF_HIDDENHOSTS" = "yes"
then
	CF_HIDDENHOSTS=""
else
	CF_HIDDENHOSTS="#"
fi

sed 	\
	-e "s/CF_HOST/Dw$CF_HOST/" \
	-e "s/CF_DOMAIN/DD$CF_DOMAIN/" \
	-e "s/CF_AUTHORITY/DA$CF_AUTHORITY/" \
	-e "s/CF_DCLASS/CDUUCP $CF_DCLASS/" \
	-e "s;CF_SMTP;$CF_SMTP;" \
	-e "s;CF_DATE;$CF_DATE;" \
	-e "s;CF_GATEWAY;$CF_GATEWAY;" \
	-e "s;CF_HIDDENHOSTS;$CF_HIDDENHOSTS;" \
	/usr/lib/template.cf > /usr/lib/sendmail.cf
/usr/lib/sendmail -bz