From: davidf@golem.uucp (David J. Fiander)
Newsgroups: comp.mail.uucp,biz.sco.general
Subject: Re: Configuring MMDF for UUCP connection only
Keywords: MMDF, UUCP, cookbook
Date: 13 Aug 92 00:01:04 GMT

According to bulli@kodak.com:
>I want to send mail to anyone on the net by using the standard domain
>addressing, e.g. bulli@kodak.com. How can I set up MMDF to forward
>everything to an outside address via UUCP, even if the address is not
>foo.UUCP? (I guess somewhere in /usr/mmdf/table or so ...)

You should probably get the FAX-pack that SCO support has on
configuring MMDF; copies are floating around the net (too bad
_I_ don't have one, or I'd forward it to youo (hint, hint)).

The following shar file is everything you need to set up a
single node site with one connection to the outside world.
Change 'ME' to your host name anywhere it may appear, and
'SMART' to the name of your smart host.

In the root.dom, uucp.chn, and uucp.dom files you will want to
make sure that if your gateway has a domain name that you can
handle both the domain name and the plain uucp name.

- David

#!/bin/sh
# This is a SHell ARchive(shar), meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#
# List of Archived Files:
#
#      mmdftailor
#      table/local.chn
#      table/uucp.chn
#      table/root.dom
#      table/uucp.dom
#
# This archive created: Wed Aug 12 19:58:19 EDT 1992
#
echo "x - mmdftailor (993 characters)"
if [ -f "mmdftailor" ]
then echo "$0: will not over-write existing file 'mmdftailor'"
else
sed 's/^X//' <<\SHARC_EOF > mmdftailor
X# The 'exec' means that the shell that the uucp channel fires up
X# doesn't have to stick around and suck up resources.
XUuxstr	"exec uux - -r"
X
XMLOCNAME ME
XMLOCDOM UUCP
X
XMTBL aliases,				show="Mail alias mappings"
XMTBL uucp,	file="uucp.chn",	show="UUCP channel table"
XMTBL uudom,	file="uucp.dom",	show="UUCP domain table",
X	flags=route, flags=partial
XMTBL local,	file="local.chn",	show="Local channel table"
XMTBL rootdom,	file="root.dom",	show="Root domain table",
X	flags=route, flags=partial
X
XALIAS table=aliases, trusted, nobypass
X
XMDMN "UUCP", table=uudom
XMDMN "", table=rootdom
X
X# The channel log level has to be set before the channels are
X# declared, since the channel log level is defined to be that
X# in effect when the channel structure is initialised.
XMCHANLOG	level=FAT
X
XMCHN local, show="Local delivery", mod=reg, ap=822
XMCHN uucp, show="UUCP delivery", mod=imm, ap=822
XMCHN badhosts, show="Bad host delivery", mod=imm, ap=822,
X	host="SMART", tbl=uucp, pgm=uucp
X
XMMSGLOG		level=FST
SHARC_EOF
if [ 993 -ne `wc -c < mmdftailor` ]
then echo "$0: transmit error 'mmdftailor' (should have been 993 chars)"
fi
fi # end of overwriting check
echo "x - table/local.chn (28 characters)"
if [ -f "table/local.chn" ]
then echo "$0: will not over-write existing file 'table/local.chn'"
else
sed 's/^X//' <<\SHARC_EOF > table/local.chn
XME		ME.uucp
XME.uucp	ME.uucp
SHARC_EOF
if [ 28 -ne `wc -c < table/local.chn` ]
then echo "$0: transmit error 'table/local.chn' (should have been 28 chars)"
fi
fi # end of overwriting check
echo "x - table/uucp.chn (15 characters)"
if [ -f "table/uucp.chn" ]
then echo "$0: will not over-write existing file 'table/uucp.chn'"
else
sed 's/^X//' <<\SHARC_EOF > table/uucp.chn
XSMART	SMART!%s
SHARC_EOF
if [ 15 -ne `wc -c < table/uucp.chn` ]
then echo "$0: transmit error 'table/uucp.chn' (should have been 15 chars)"
fi
fi # end of overwriting check
echo "x - table/root.dom (23 characters)"
if [ -f "table/root.dom" ]
then echo "$0: will not over-write existing file 'table/root.dom'"
else
sed 's/^X//' <<\SHARC_EOF > table/root.dom
XME	ME.uucp
XSMART	SMART
SHARC_EOF
if [ 23 -ne `wc -c < table/root.dom` ]
then echo "$0: transmit error 'table/root.dom' (should have been 23 chars)"
fi
fi # end of overwriting check
echo "x - table/uucp.dom (11 characters)"
if [ -f "table/uucp.dom" ]
then echo "$0: will not over-write existing file 'table/uucp.dom'"
else
sed 's/^X//' <<\SHARC_EOF > table/uucp.dom
XME	ME.UUCP
SHARC_EOF
if [ 11 -ne `wc -c < table/uucp.dom` ]
then echo "$0: transmit error 'table/uucp.dom' (should have been 11 chars)"
fi
fi # end of overwriting check
exit 0