BSD 4_4 release
[unix-history] / usr / src / usr.sbin / sendmail / cf / cf / ucbvax.mc
index efece3c..bae55d5 100644 (file)
-divert(10)dnl
-define(DOMAIN, `DDBerkeley.EDU')
-define(BITNET_RELAY, `DBjade.Berkeley.EDU')
-define(CSNET_RELAY, `DCrelay.cs.net')
-divert(0)dnl
-
-############################################################
+divert(-1)
 #
 # Copyright (c) 1983 Eric P. Allman
 #
 # Copyright (c) 1983 Eric P. Allman
-# Copyright (c) 1988 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+# Copyright (c) 1988, 1993
+#      The Regents of the University of California.  All rights reserved.
 #
 #
-#      @(#)ucbvax.mc   1.41 (Berkeley) 2/15/89
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#      This product includes software developed by the University of
+#      California, Berkeley and its contributors.
+# 4. Neither the name of the University nor the names of its contributors
+#    may be used to endorse or promote products derived from this software
+#    without specific prior written permission.
 #
 #
-sinclude(buildinfo)dnl
+# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
 #
 #
-############################################################
-############################################################
-#####
-#####          SENDMAIL CONFIGURATION FILE
-#####
-#####  This one is the big daddy.  There is no "upstairs"
-#####  to bounce a message to -- except perhaps the arpanet.
-#####
-#####
-############################################################
-############################################################
-
-
-
-######################
-###   local info   ###
-######################
-
-# internet hostnames
-Cwucbvax vax k UCB-VAX Berkeley UCB-C70 UCB
-
-# UUCP hostnames
-DUucbvax
-CUucbvax 
-
-# local UUCP connections
-include(../sitedep/uucp.ucbvax.m4)dnl
-
-# UUCP connections on ucbarpa
-DWucbarpa.Berkeley.EDU
-define(`CV', CW)dnl
-include(../sitedep/uucp.ucbarpa.m4)dnl
-undefine(`CV')dnl
-
-# UUCP connections on ucbcad
-DXcad.Berkeley.EDU
-define(`CV', CX)dnl
-include(../sitedep/uucp.cad.m4)dnl
-undefine(`CV')dnl
-
-# UUCP connections on cogsci
-DYcogsci.Berkeley.EDU
-define(`CV', CY)dnl
-include(../sitedep/uucp.cogsci.m4)dnl
-undefine(`CV')dnl
-
-# known uucp connections with a smart uucp
-CMdecvax
-
-# we have full sendmail support here
-Oa
-
-#############################
-###   Setup Information   ###
-#############################
-
-include(../m4/nsmacros.m4)
-include(../m4/nsclasses.m4)
-include(../sitedep/nicregistered.m4)
-include(../m4/version.m4)
-include(../m4/boilerplate.m4)
-
-###########################
-###   Rewriting Rules   ###
-###########################
-
-include(../m4/prewriterule.m4)
-include(../m4/postwriterule.m4)
-
-# addition to Post-rewrite Rule
-R$+%$=w@$=w.EDU                $1@$w                   u%UCB@UCB.edu => u@UCB.berk.edu
-R$+%$=w@$=w.$=w.EDU    $1@$w                   u%UCB@UCB.berk.edu => u@UCB
-
-include(../m4/rule3.m4)
-include(../m4/rule5.m4)
-
-###################
-###   Mailers   ###
-###################
-
-include(../m4/localm.m4)
-define(`m4UUCP',TRUE)
-include(../m4/suucpm.m4)
-include(../m4/uucpm.m4)
-include(../m4/smtpuucpm.m4)
-include(../m4/nstcpm.m4)
-include(../m4/nstcpldm.m4)
-
-#####################
-###   Rule Zero   ###
-#####################
-
-include(../m4/rule0.m4)
-
-################################################
-###  Machine dependent part of ruleset zero  ###
-################################################
-
-# resolve SMTP UUCP connections
-include(../sitedep/smtpuucp.ucbvax.m4)
-
-# resolve local UUCP links
-R<@$=V.UUCP>:$+                $#uucp$@$1$:$1:$2               @host.UUCP: ...
-R$+<@$=V.UUCP>         $#uucp$@$2$:$1                  user@host.UUCP
-
-# resolve explicit arpanet names (to avoid with machine name "arpa" below)
-R$*<@$*$-.ARPA>$*      $#tcp$@$3.ARPA$:$1<@$2$3.ARPA>$4        user@domain.ARPA
-
-# resolve fake top level domains by forwarding to other hosts
-include(../m4/fake_domains.m4)
-
-# resolve non-local UUCP links
-R$*<@$=W.UUCP>$*       $#tcpld$@$W$:$1<@$2.UUCP>$3     user@host.UUCP
-R$*<@$=X.UUCP>$*       $#tcpld$@$X$:$1<@$2.UUCP>$3     user@host.UUCP
-R$*<@$=Y.UUCP>$*       $#tcpld$@$Y$:$1<@$2.UUCP>$3     user@host.UUCP
-
-# this uucp stuff is wrong for domain uucp addresses
-# - we should pass the whole "host.domain" to uucp so it can
-#   find the best route.  But that depends on a uucp router
-#   which doesn't exist here yet, so for now, we'll settle for
-#   trying to route to the domain (pretending its a host).
-#   Suitable L.sys entries can make this work.  If it doesn't
-#   then returned mail will just say "dom unknown", which is true ..
-
-# resolve smart UUCP links
-R<@$=M.$-.UUCP>:$+     $#suucp$@$2$:@$1.$2.UUCP:$3     @host.domain.UUCP: ...
-R<@$=M.UUCP>:$+                $#suucp$@$1$:$2                 @host.UUCP: ...
-R$+<@$=M.$-.UUCP>      $#suucp$@$3$:$1@$2.$3.UUCP      user@host.domain.UUCP
-R$+<@$=M.UUCP>         $#suucp$@$2$:$1                 user@host.UUCP
-
-# local domain sites
-R$*<@$*.$D>$*          $#tcpld$@$2.$D$:$1<@$2.$D>$3    user@host.our.domain
-R$*<@$->$*             $#tcpld$@$2.$D$:$1<@$2.$D>$3    user@host
-R$*<@$-.UUCP>$*                $#tcpld$@$2.$D$:$1<@$2.$D>$3    user@host.UUCP
-
-# other non-local names will be kicked upstairs
-R$*<@$+>$*             $#tcp$@$2$:$1<@$2>$3            user@some.where
-
-# remaining names must be local
-R$+                    $#local$:$1                     everything else
-
-########################################
-###  Host dependent address cleanup  ###
-########################################
 
 
-S8
-R$*$=U!$+@$+           $3@$4                           drop uucp forward
+include(`../m4/cf.m4')
+VERSIONID(`@(#)ucbvax.mc       8.1 (Berkeley) 6/7/93')
+OSTYPE(bsd4.3)
+DOMAIN(cs.hidden)
+FEATURE(notsticky)
+MAILER(local)
+MAILER(smtp)
+MAILER(uucp)
+undefine(`UUCP_RELAY')dnl
+DDBerkeley.EDU
+
+# names for which we act as a local forwarding agent
+CF CS
+FF/etc/sendmail.cw
+
+# local UUCP connections, and our local uucp name
+SITECONFIG(uucp.ucbvax, ucbvax, U)
+
+# remote UUCP connections, and the machine they are on
+SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
+
+SITECONFIG(uucp.cogsci, cogsci.Berkeley.EDU, X)
+
+LOCAL_RULE_3
+# map old UUCP names into Internet names
+UUCPSMTP(bellcore,     bellcore.com)
+UUCPSMTP(decvax,       decvax.dec.com)
+UUCPSMTP(decwrl,       decwrl.dec.com)
+UUCPSMTP(hplabs,       hplabs.hp.com)
+UUCPSMTP(lbl-csam,     lbl-csam.arpa)
+UUCPSMTP(pur-ee,       ecn.purdue.edu)
+UUCPSMTP(purdue,       purdue.edu)
+UUCPSMTP(research,     research.att.com)
+UUCPSMTP(sdcarl,       sdcarl.ucsd.edu)
+UUCPSMTP(sdcsvax,      sdcsvax.ucsd.edu)
+UUCPSMTP(ssyx,         ssyx.ucsc.edu)
+UUCPSMTP(sun,          sun.com)
+UUCPSMTP(ucdavis,      ucdavis.ucdavis.edu)
+UUCPSMTP(ucivax,       ics.uci.edu)
+UUCPSMTP(ucla-cs,      cs.ucla.edu)
+UUCPSMTP(ucla-se,      seas.ucla.edu)
+UUCPSMTP(ucsbcsl,      ucsbcsl.ucsb.edu)
+UUCPSMTP(ucscc,                c.ucsc.edu)
+UUCPSMTP(ucsd,         ucsd.edu)
+UUCPSMTP(ucsfcgl,      cgl.ucsf.edu)
+UUCPSMTP(unmvax,       unmvax.cs.unm.edu)
+UUCPSMTP(uwvax,                spool.cs.wisc.edu)
+
+LOCAL_RULE_0
+
+# make sure we handle the local domain as absolute
+R$* <  @ $* $D > $*            $: $1 < @ $2 $D . > $3
+
+# handle names we forward for as though they were local, so we will use UDB
+R< @ $=F . $D . > : $*         $@ $>7 $2               @here:... -> ...
+R< @ $D . > : $*               $@ $>7 $1               @here:... -> ...
+R$* $=O $* < @ $=F . $D . >    $@ $>7 $1 $2 $3         ...@here -> ...
+R$* $=O $* < @ $D . >          $@ $>7 $1 $2 $3         ...@here -> ...
+
+R$* < @ $=F . $D . >           $#local $: $1           use UDB
+
+# handle local UUCP connections in the Berkeley.EDU domain
+R$+<@cnmat.$D . >              $#uucp$@cnmat$:$1
+R$+<@cnmat.CS.$D . >           $#uucp$@cnmat$:$1
+R$+<@craig.$D . >              $#uucp$@craig$:$1
+R$+<@craig.CS.$D . >           $#uucp$@craig$:$1