# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
ifdef(`EXTERNAL_VERSION', EXTERNAL_VERSION, `#')
# @(#)proto.mc 1.20 (Berkeley) 1/25/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