# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988 The Regents of the University of California.
# 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.
ifdef(`EXTERNAL_VERSION', EXTERNAL_VERSION, `#')
# @(#)proto.mc 1.21 (Berkeley) 2/15/89
############################################################
############################################################
##### SENDMAIL CONFIGURATION FILE
############################################################
############################################################
`#' file containing our internet aliases
`#' local UUCP connections
`include(UUCP_HOSTS_FILE)')
#############################
### Setup Information ###
#############################
include(../m4/nsmacros.m4)
include(../m4/nsclasses.m4)
`include(../sitedep/nicregistered.m4)')
include(../m4/version.m4)
include(../m4/boilerplate.m4)
###########################
###########################
include(../m4/prewriterule.m4)
include(../m4/postwriterule.m4)
`include(../m4/nstcpldm.m4)')
`include(../m4/uucpm.m4)'
`include(../m4/rule5.m4)')
`include(../m4/smtpuucpm.m4)')
###############################################
### Machine dependent part of Rule Zero ###
###############################################
`# resolve SMTP UUCP connections'
`# resolve local UUCP connections'
`R<@$=V.UUCP>:$+ $#uucp$@$1$:$2 @host.UUCP:...'
`R$+<@$=V.UUCP> $#uucp$@$2$:$1 user@host.UUCP'
`#' resolve fake top level domains by forwarding to other hosts
`include(../m4/fake_domains.m4)'
`#' forward non-local UUCP traffic to our UUCP relay
R$*<@$*.UUCP>$* $`#'tcpld$@$R$:$1<@$2.UUCP> uucp mail)'
`#' hide behind our internet relay when talking to people in the arpa domain
R$*<@$*.arpa>$* $`#'tcp$@$2.arpa$:$1<@$2.arpa>$3 user@host.arpa
`#' but speak domains to them if they speak domains too
R$*<@$*>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain,
R$*<@$*.$D>$* $`#'tcpld$@$2.$D$:$1<@$2.$D>$3 user@host.ourdomain
R$*<@$+>$* $`#'tcp$@$2$:$1<@$2>$3 user@host.ourdomain,
R$*<@$+>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain)')')
# remaining names must be local
R$+ $#local$:$1 everything else