Commit | Line | Data |
---|---|---|
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 | # | |
10 | ifdef(`EXTERNAL_VERSION', EXTERNAL_VERSION, `#') | |
11 | # @(#)proto.mc 1.20 (Berkeley) 1/25/89 | |
12 | # | |
13 | sinclude(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 | |
29 | Fw/etc/sendmail.cw | |
30 | ||
31 | ifdef(`UUCP_NAME', | |
32 | `#' uucp hostnames | |
33 | UUCP_NAME | |
34 | UUCP_ALIASES | |
35 | ||
36 | `#' local UUCP connections | |
37 | `include(UUCP_HOSTS_FILE)') | |
38 | ||
39 | ############################# | |
40 | ### Setup Information ### | |
41 | ############################# | |
42 | ||
43 | include(../m4/nsmacros.m4) | |
44 | include(../m4/nsclasses.m4) | |
45 | ifdef(`INTERNET_RELAY', | |
46 | `include(../sitedep/nicregistered.m4)') | |
47 | include(../m4/version.m4) | |
48 | include(../m4/boilerplate.m4) | |
49 | ||
50 | ########################### | |
51 | ### Rewriting Rules ### | |
52 | ########################### | |
53 | ||
54 | include(../m4/prewriterule.m4) | |
55 | include(../m4/postwriterule.m4) | |
56 | include(../m4/rule3.m4) | |
57 | ||
58 | ################### | |
59 | ### Mailers ### | |
60 | ################### | |
61 | ||
62 | include(../m4/localm.m4) | |
63 | ifdef(`UUCP_ONLY',, | |
64 | `include(../m4/nstcpldm.m4)') | |
65 | include(../m4/nstcpm.m4) | |
66 | ifdef(`UUCP_NAME', | |
67 | `include(../m4/uucpm.m4)' | |
68 | `include(../m4/rule5.m4)') | |
69 | ifdef(`SMTPUUCP', | |
70 | `include(../m4/smtpuucpm.m4)') | |
71 | ||
72 | ##################### | |
73 | ### Rule Zero ### | |
74 | ##################### | |
75 | ||
76 | include(../m4/rule0.m4) | |
77 | ||
78 | ############################################### | |
79 | ### Machine dependent part of Rule Zero ### | |
80 | ############################################### | |
81 | ||
82 | ifdef(`SMTPUUCP', | |
83 | `# resolve SMTP UUCP connections' | |
84 | `include(SMTPUUCP)') | |
85 | ||
86 | ifdef(`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 | ||
92 | ifdef(`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 | |
98 | R$*<@$*.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 | |
102 | R$*<@$*.arpa>$* $`#'tcp$@$2.arpa$:$1<@$2.arpa>$3 user@host.arpa | |
103 | ||
104 | `#' but speak domains to them if they speak domains too | |
105 | R$*<@$*>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain, | |
106 | `#' resolve SMTP traffic | |
107 | `ifdef(`INTERNET_RELAY', | |
108 | R$*<@$*.$D>$* $`#'tcpld$@$2.$D$:$1<@$2.$D>$3 user@host.ourdomain | |
109 | R$*<@$+>$* $`#'tcp$@$2$:$1<@$2>$3 user@host.ourdomain, | |
110 | R$*<@$+>$* $`#'tcpld$@$2$:$1<@$2>$3 user@host.domain)')') | |
111 | ||
112 | # remaining names must be local | |
113 | R$+ $#local$:$1 everything else |