2
dnl *** EXAMPLE *** sendmail.mc file for a Mailman list server using
3
dnl mm-handler to deal with list operations (in place of aliases).
4
dnl This is what I actually use on my site.
6
dnl $Id: mailman.mc,v 1.1 2001/10/27 02:30:51 bwarsaw Exp $
11
dnl First you need to define your general characteristics. You
12
dnl should know what these settings should be at your site -- I
13
dnl only know what they should be at mine.
19
dnl You can keep the old alias files for back-compatibility, but it's
20
dnl probably better not to as this can become a point of confusion
23
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/lists')
26
dnl I use procmail for local delivery, because it's smart to have a
27
dnl local delivery mailer, even if you don't (ordinarily) do any local
28
dnl delivery. The Solaris local delivery mailer is part of its sendmail
29
dnl package. I pkgrmed the sendmail packages so that system upgrades
30
dnl don't kill my sendmail.com sendmail, so mail.local is unavailable,
31
dnl so I throw procmail in here even though it never gets used.
33
define(`PROCMAIL_MAILER_PATH', `/opt/bin/procmail')
34
FEATURE(`local_procmail')
38
dnl Miscellaneous tuning. Not relevant to Mailman.
40
define(`confCONNECTION_RATE_THROTTLE', 5)
41
define(`confMAX_MESSAGE_SIZE', `5000000')
42
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
43
define(`confME_TOO', `True')
44
define(`confDOUBLE_BOUNCE_ADDRESS', `mailer-daemon')
47
dnl Privacy options. Also not relevant.
49
define(`confPRIVACY_FLAGS', `authwarnings,needvrfyhelo,noexpn,noreceipts,restrictmailq')
53
dnl Mm-handler works by mailertabling all addresses on your list
54
dnl server hostname(s) through the mm-handler mailer. Mailertable
55
dnl maps mail domains to mailer types. I want a mailertable to map
56
dnl listtest.uchicago.edu to the mm-handler mailer, but we need to
57
dnl specifically request this functionality in the .mc file.
59
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')
62
dnl This leads to an immediate and important side-effect: "local"
63
dnl addresses, and notably RFC-specified addresses such as postmaster,
64
dnl are assumed by sendmail to be lists! Since aliases are not processed
65
dnl for domaintabled domains, we must use a virtusertable to reroute
68
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')
71
dnl By default, sendmail applies virtusertable mapping, if at all, for
72
dnl all interfaces for which it accepts mail -- i.e., all domains in
73
dnl $=w. Mm-handler relies on your having a single domain (hostname)
74
dnl that serves only lists, with no users. To avoid potential namespace
75
dnl conflicts, you need not to have this list domain included in $=w.
76
dnl As a result, virtuser mapping does not apply for the Mailman
77
dnl list domain. However, you can pre-empt this rule by defining
78
dnl $={VirtHost}: if there are domains in this class, they will be
79
dnl mapped before $=w is mapped.
81
dnl VIRTUSER_DOMAIN() defines this class.
83
VIRTUSER_DOMAIN(`nospam.uchicago.edu listtest.uchicago.edu listhost.uchicago.edu')
86
dnl On a related point: by default, Sendmail probes for open IP
87
dnl interfaces, and adds their hostnames to $=w. Although Sendmail does
88
dnl virtusertable mapping for members of $=w, it doesn't do mailertable
89
dnl mapping for them, because they're considered "local". This tells
90
dnl Sendmail not to probe interfaces for local hosts, and it's critical
91
dnl if your Mailman domain is actually an IP address (with an A record,
92
dnl not just CNAME or MX) on your server.
94
define(`confDONT_PROBE_INTERFACES', `True')
98
dnl Even though my actual hostname is foobar, tell the world that I'm
99
dnl listtest.uchicago.edu.
101
FEATURE(`limited_masquerade')
102
MASQUERADE_AS(`listtest.uchicago.edu')
106
dnl Access control is a useful feature for blocking abusers and relays
113
dnl This allows you to block access for individual recipents through
114
dnl the same access database as is used for blocking sender hosts and
117
FEATURE(`blacklist_recipients')
121
dnl Other local mailers...
128
dnl Our Mailman-specific local mailer.
131
####################################
132
### New Mailer specifications ###
133
####################################
135
## Special flags! See
136
## http://www.sendmail.org/~ca/email/doc8.10/op-sh-5.html#sh-5.4
137
## Note especially the absence of the "m" and "n" flags. THIS IS
138
## IMPORTANT: mm-handler assumes this behavior to avoid having to know
139
## too much about address parsing and other RFC-2822 mail details.
141
Mmailman, P=/etc/mail/mm-handler, F=rDFMhlqSu, U=mailman:other,
142
S=EnvFromL, R=EnvToL/HdrToL,