Initial import, 0.1 + pk 0.2.4-B1
[unix-history] / usr.sbin / sendmail / cf / cf / proto.mc
CommitLineData
15637ed4
RG
1#
2# Sendmail
3# Copyright (c) 1983 Eric P. Allman
4# Berkeley, California
5#
6# Copyright (c) 1983 Regents of the University of California.
7# All rights reserved. The Berkeley software License Agreement
8# specifies the terms and conditions for redistribution.
9#
10ifdef(`EXTERNAL_VERSION', EXTERNAL_VERSION, `#')
11# @(#)proto.mc 1.20 (Berkeley) 1/25/89
12#
13sinclude(buildinfo)dnl
14#
15############################################################
16############################################################
17#####
18##### SENDMAIL CONFIGURATION FILE
19#####
20############################################################
21############################################################
22
23
24##################
25# local info #
26##################
27
28`#' file containing our internet aliases
29Fw/etc/sendmail.cw
30
31ifdef(`UUCP_NAME',
32`#' uucp hostnames
33UUCP_NAME
34UUCP_ALIASES
35
36`#' local UUCP connections
37`include(UUCP_HOSTS_FILE)')
38
39#############################
40### Setup Information ###
41#############################
42
43include(../m4/nsmacros.m4)
44include(../m4/nsclasses.m4)
45ifdef(`INTERNET_RELAY',
46`include(../sitedep/nicregistered.m4)')
47include(../m4/version.m4)
48include(../m4/boilerplate.m4)
49
50###########################
51### Rewriting Rules ###
52###########################
53
54include(../m4/prewriterule.m4)
55include(../m4/postwriterule.m4)
56include(../m4/rule3.m4)
57
58###################
59### Mailers ###
60###################
61
62include(../m4/localm.m4)
63ifdef(`UUCP_ONLY',,
64`include(../m4/nstcpldm.m4)')
65include(../m4/nstcpm.m4)
66ifdef(`UUCP_NAME',
67`include(../m4/uucpm.m4)'
68`include(../m4/rule5.m4)')
69ifdef(`SMTPUUCP',
70`include(../m4/smtpuucpm.m4)')
71
72#####################
73### Rule Zero ###
74#####################
75
76include(../m4/rule0.m4)
77
78###############################################
79### Machine dependent part of Rule Zero ###
80###############################################
81
82ifdef(`SMTPUUCP',
83`# resolve SMTP UUCP connections'
84`include(SMTPUUCP)')
85
86ifdef(`UUCP_NAME',
87`# resolve local UUCP connections'
88`R<@$=V.UUCP>:$+ $#uucp$@$1$:$2 @host.UUCP:...'
89`R$+<@$=V.UUCP> $#uucp$@$2$:$1 user@host.UUCP'
90)
91
92ifdef(`UUCP_ONLY',,
93`#' resolve fake top level domains by forwarding to other hosts
94`include(../m4/fake_domains.m4)'
95
96`ifdef(`UUCP_RELAY',
97`#' forward non-local UUCP traffic to our UUCP relay
98R$*<@$*.UUCP>$* $`#'tcpld$@$R$:$1<@$2.UUCP> uucp mail)'
99
100`ifdef(`ARPAKLUDGE',
101`#' hide behind our internet relay when talking to people in the arpa domain
102R$*<@$*.arpa>$* $`#'tcp$@$2.arpa$:$1<@$2.arpa>$3 user@host.arpa
103
104`#' but speak domains to them if they speak domains too
105R$*<@$*>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain,
106`#' resolve SMTP traffic
107`ifdef(`INTERNET_RELAY',
108R$*<@$*.$D>$* $`#'tcpld$@$2.$D$:$1<@$2.$D>$3 user@host.ourdomain
109R$*<@$+>$* $`#'tcp$@$2$:$1<@$2>$3 user@host.ourdomain,
110R$*<@$+>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain)')')
111
112# remaining names must be local
113R$+ $#local$:$1 everything else