1 | Return-Path: sanders@austin.BSDI.COM |
---|
2 | Received: from hofmann.CS.Berkeley.EDU (hofmann.CS.Berkeley.EDU [128.32.34.35]) by orodruin.CS.Berkeley.EDU (8.6.9/8.7.0.Beta0) with ESMTP id KAA28278 for <eric@orodruin.CS.Berkeley.EDU>; Sat, 10 Dec 1994 10:49:08 -0800 |
---|
3 | Received: from austin.BSDI.COM (austin.BSDI.COM [137.39.95.2]) by hofmann.CS.Berkeley.EDU (8.6.9/8.6.6.Beta11) with ESMTP id KAA09482 for <eric@cs.berkeley.edu>; Sat, 10 Dec 1994 10:49:03 -0800 |
---|
4 | Received: from austin.BSDI.COM (sanders@localhost [127.0.0.1]) by austin.BSDI.COM (8.6.9/8.6.9) with ESMTP id MAA14919 for <eric@cs.berkeley.edu>; Sat, 10 Dec 1994 12:49:01 -0600 |
---|
5 | Message-Id: <199412101849.MAA14919@austin.BSDI.COM> |
---|
6 | To: Eric Allman <eric@cs.berkeley.edu> |
---|
7 | Subject: Re: sorting mailings lists with fastest delivery users first |
---|
8 | In-reply-to: Your message of Sat, 10 Dec 1994 08:25:30 PST. |
---|
9 | References: <199412101625.IAA15407@mastodon.CS.Berkeley.EDU> |
---|
10 | From: Tony Sanders <sanders@bsdi.com> |
---|
11 | Organization: Berkeley Software Design, Inc. |
---|
12 | Date: Sat, 10 Dec 1994 12:49:00 -0600 |
---|
13 | Sender: sanders@austin.BSDI.COM |
---|
14 | |
---|
15 | (some random text deleted) |
---|
16 | |
---|
17 | I'll send you something else I've hacked up. You are free to use this |
---|
18 | or do with it as you like (I hereby make all my parts public domain). |
---|
19 | It's a sample .mc file that has comments (mostly taken from the README) |
---|
20 | and examples describing most of the common things people need to setup. |
---|
21 | |
---|
22 | # |
---|
23 | # /usr/share/sendmail/cf/sample.mc |
---|
24 | # |
---|
25 | # Do not edit /etc/sendmail.cf directly unless you cannot do what you |
---|
26 | # want in the master config file (/usr/share/sendmail/cf/sample.mc). |
---|
27 | # To create /etc/sendmail.cf from the master: |
---|
28 | # cd /usr/share/sendmail/cf |
---|
29 | # mv /etc/sendmail.cf /etc/sendmail.cf.save |
---|
30 | # m4 < sample.mc > /etc/sendmail.cf |
---|
31 | # |
---|
32 | # Then kill and restart sendmail: |
---|
33 | # sh -c 'set `cat /var/run/sendmail.pid`; kill $1; shift; eval "$@"' |
---|
34 | # |
---|
35 | # See /usr/share/sendmail/README for help in building a configuration file. |
---|
36 | # |
---|
37 | include(`../m4/cf.m4') |
---|
38 | VERSIONID(`@(#)$Id: bsdi.mc,v 1.1.1.2 2003-04-08 15:09:45 zacheiss Exp $') |
---|
39 | |
---|
40 | dnl # Specify your OS type below |
---|
41 | OSTYPE(`bsd4.4') |
---|
42 | |
---|
43 | dnl # NOTE: `dnl' is the m4 command for delete-to-newline; these are |
---|
44 | dnl # used to prevent those lines from appearing in the sendmail.cf. |
---|
45 | dnl # |
---|
46 | dnl # UUCP-only sites should configure FEATURE(`nodns') and SMART_HOST. |
---|
47 | dnl # The uucp-dom mailer requires MAILER(smtp). For more info, see |
---|
48 | dnl # `UUCP Config' at the end of this file. |
---|
49 | |
---|
50 | dnl # If you are not running DNS at all, it is important to use |
---|
51 | dnl # FEATURE(nodns) to avoid having sendmail queue everything |
---|
52 | dnl # waiting for the name server to come up. |
---|
53 | dnl # Example: |
---|
54 | dnl FEATURE(`nodns') |
---|
55 | |
---|
56 | dnl # Use FEATURE(`nocanonify') to skip address canonification via $[ ... $]. |
---|
57 | dnl # This would generally only be used by sites that only act as mail gateways |
---|
58 | dnl # or which have user agents that do full canonification themselves. |
---|
59 | dnl # You may also want to use: |
---|
60 | dnl # define(`confBIND_OPTS',`-DNSRCH -DEFNAMES') |
---|
61 | dnl # to turn off the usual resolver options that do a similar thing. |
---|
62 | dnl # Examples: |
---|
63 | dnl FEATURE(`nocanonify') |
---|
64 | dnl define(`confBIND_OPTS',`-DNSRCH -DEFNAMES') |
---|
65 | |
---|
66 | dnl # If /bin/hostname is not set to the FQDN (Full Qualified Domain Name; |
---|
67 | dnl # for example, foo.bar.com) *and* you are not running a nameserver |
---|
68 | dnl # (that is, you do not have an /etc/resolv.conf and are not running |
---|
69 | dnl # named) *and* the canonical name for your machine in /etc/hosts |
---|
70 | dnl # (the canonical name is the first name listed for a given IP Address) |
---|
71 | dnl # is not the FQDN version then define NEED_DOMAIN and specify your |
---|
72 | dnl # domain using `DD' (for example, if your hostname is `foo.bar.com' |
---|
73 | dnl # then use DDbar.com). If in doubt, just define it anyway; doesn't hurt. |
---|
74 | dnl # Examples: |
---|
75 | dnl define(`NEED_DOMAIN', `1') |
---|
76 | dnl DDyour.site.domain |
---|
77 | |
---|
78 | dnl # Define SMART_HOST if you want all outgoing mail to go to a central |
---|
79 | dnl # site. SMART_HOST applies to names qualified with non-local names. |
---|
80 | dnl # Example: |
---|
81 | dnl define(`SMART_HOST', `smtp:firewall.bar.com') |
---|
82 | |
---|
83 | dnl # Define MAIL_HUB if you want all incoming mail sent to a |
---|
84 | dnl # centralized hub, as for a shared /var/spool/mail scheme. |
---|
85 | dnl # MAIL_HUB applies to names qualified with the name of the |
---|
86 | dnl # local host (e.g., "eric@foo.bar.com"). |
---|
87 | dnl # Example: |
---|
88 | dnl define(`MAIL_HUB', `smtp:mailhub.bar.com') |
---|
89 | |
---|
90 | dnl # LOCAL_RELAY is a site that will handle unqualified names, this is |
---|
91 | dnl # basically for site/company/department wide alias forwarding. By |
---|
92 | dnl # default mail is delivered on the local host. |
---|
93 | dnl # Example: |
---|
94 | dnl define(`LOCAL_RELAY', `smtp:mailgate.bar.com') |
---|
95 | |
---|
96 | dnl # Relay hosts for fake domains: .UUCP .BITNET .CSNET |
---|
97 | dnl # Examples: |
---|
98 | dnl define(`UUCP_RELAY', `mailer:your_relay_host') |
---|
99 | dnl define(`BITNET_RELAY', `mailer:your_relay_host') |
---|
100 | dnl define(`CSNET_RELAY', `mailer:your_relay_host') |
---|
101 | |
---|
102 | dnl # Define `MASQUERADE_AS' is used to hide behind a gateway. |
---|
103 | dnl # add any accounts you wish to be exposed (i.e., not hidden) to the |
---|
104 | dnl # `EXPOSED_USER' list. |
---|
105 | dnl # Example: |
---|
106 | dnl MASQUERADE_AS(`some.other.host') |
---|
107 | |
---|
108 | dnl # If masquerading, EXPOSED_USER defines the list of accounts |
---|
109 | dnl # that retain the local hostname in their address. |
---|
110 | dnl # Example: |
---|
111 | dnl EXPOSED_USER(`postmaster hostmaster webmaster') |
---|
112 | |
---|
113 | dnl # If masquerading is enabled (using MASQUERADE_AS above) then |
---|
114 | dnl # FEATURE(allmasquerade) will cause recipient addresses to |
---|
115 | dnl # masquerade as being from the masquerade host instead of |
---|
116 | dnl # getting the local hostname. Although this may be right for |
---|
117 | dnl # ordinary users, it breaks local aliases that aren't exposed |
---|
118 | dnl # using EXPOSED_USER. |
---|
119 | dnl # Example: |
---|
120 | dnl FEATURE(allmasquerade) |
---|
121 | |
---|
122 | dnl # Include any required mailers |
---|
123 | MAILER(local) |
---|
124 | MAILER(smtp) |
---|
125 | MAILER(uucp) |
---|
126 | |
---|
127 | LOCAL_CONFIG |
---|
128 | # If this machine should be accepting mail as local for other hostnames |
---|
129 | # that are MXed to this hostname then add those hostnames below using |
---|
130 | # a line like: |
---|
131 | # Cw bar.com |
---|
132 | # The most common case where you need this is if this machine is supposed |
---|
133 | # to be accepting mail for the domain. That is, if this machine is |
---|
134 | # foo.bar.com and you have an MX record in the DNS that looks like: |
---|
135 | # bar.com. IN MX 0 foo.bar.com. |
---|
136 | # Then you will need to add `Cw bar.com' to the config file for foo.bar.com. |
---|
137 | # DO NOT add Cw entries for hosts whom you simply store and forward mail |
---|
138 | # for or else it will attempt local delivery. So just because bubba.bar.com |
---|
139 | # is MXed to your machine you should not add a `Cw bubba.bar.com' entry |
---|
140 | # unless you want local delivery and your machine is the highest-priority |
---|
141 | # MX entry (that is is has the lowest preference value in the DNS. |
---|
142 | |
---|
143 | LOCAL_RULE_0 |
---|
144 | # `LOCAL_RULE_0' can be used to introduce alternate delivery rules. |
---|
145 | # For example, let's say you accept mail via an MX record for widgets.com |
---|
146 | # (don't forget to add widgets.com to your Cw list, as above). |
---|
147 | # |
---|
148 | # If wigets.com only has an AOL address (widgetsinc) then you could use: |
---|
149 | # R$+ <@ widgets.com.> $#smtp $@aol.com. $:widgetsinc<@aol.com.> |
---|
150 | # |
---|
151 | # Or, if widgets.com was connected to you via UUCP as the UUCP host |
---|
152 | # widgets you might have: |
---|
153 | # R$+ <@ widgets.com.> $#uucp $@widgets $:$1<@widgets.com.> |
---|
154 | |
---|
155 | dnl ### |
---|
156 | dnl ### UUCP Config |
---|
157 | dnl ### |
---|
158 | |
---|
159 | dnl # `SITECONFIG(site_config_file, name_of_site, connection)' |
---|
160 | dnl # site_config_file the name of a file in the cf/siteconfig |
---|
161 | dnl # directory (less the `.m4') |
---|
162 | dnl # name_of_site the actual name of your UUCP site |
---|
163 | dnl # connection one of U, W, X, or Y; where U means the sites listed |
---|
164 | dnl # in the config file are connected locally; W, X, and Y |
---|
165 | dnl # build remote UUCP hub classes ($=W, etc). |
---|
166 | dnl # You will need to create the specific site_config_file in |
---|
167 | dnl # /usr/share/sendmail/siteconfig/site_config_file.m4 |
---|
168 | dnl # The site_config_file contains a list of directly connected UUCP hosts, |
---|
169 | dnl # e.g., if you only connect to UUCP site gargoyle then you could just: |
---|
170 | dnl # echo 'SITE(gargoyle)' > /usr/share/sendmail/siteconfig/uucp.foobar.m4 |
---|
171 | dnl # Example: |
---|
172 | dnl SITECONFIG(`uucp.foobar', `foobar', U) |
---|
173 | |
---|
174 | dnl # If you are on a local SMTP-based net that connects to the outside |
---|
175 | dnl # world via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules. |
---|
176 | dnl # For example: |
---|
177 | dnl # define(`SMART_HOST', suucp:uunet) |
---|
178 | dnl # LOCAL_NET_CONFIG |
---|
179 | dnl # R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3 |
---|
180 | dnl # This will cause all names that end in your domain name ($m) to be sent |
---|
181 | dnl # via SMTP; anything else will be sent via suucp (smart UUCP) to uunet. |
---|
182 | dnl # If you have FEATURE(nocanonify), you may need to omit the dots after |
---|
183 | dnl # the $m. |
---|
184 | dnl # |
---|
185 | dnl # If you are running a local DNS inside your domain which is not |
---|
186 | dnl # otherwise connected to the outside world, you probably want to use: |
---|
187 | dnl # define(`SMART_HOST', smtp:fire.wall.com) |
---|
188 | dnl # LOCAL_NET_CONFIG |
---|
189 | dnl # R$* < @ $* . > $* $#smtp $@ $2. $: $1 < @ $2. > $3 |
---|
190 | dnl # That is, send directly only to things you found in your DNS lookup; |
---|
191 | dnl # anything else goes through SMART_HOST. |
---|