xref: /freebsd/etc/sendmail/freebsd.mc (revision 742253f5fdaed1fe7a5f3175fc73f2f24a1b1dee)
1c46725b9SPeter Wemmdivert(-1)
2c46725b9SPeter Wemm#
3c46725b9SPeter Wemm# Copyright (c) 1983 Eric P. Allman
4c46725b9SPeter Wemm# Copyright (c) 1988, 1993
5c46725b9SPeter Wemm#	The Regents of the University of California.  All rights reserved.
6c46725b9SPeter Wemm#
7c46725b9SPeter Wemm# Redistribution and use in source and binary forms, with or without
8c46725b9SPeter Wemm# modification, are permitted provided that the following conditions
9c46725b9SPeter Wemm# are met:
10c46725b9SPeter Wemm# 1. Redistributions of source code must retain the above copyright
11c46725b9SPeter Wemm#    notice, this list of conditions and the following disclaimer.
12c46725b9SPeter Wemm# 2. Redistributions in binary form must reproduce the above copyright
13c46725b9SPeter Wemm#    notice, this list of conditions and the following disclaimer in the
14c46725b9SPeter Wemm#    documentation and/or other materials provided with the distribution.
15c46725b9SPeter Wemm# 3. All advertising materials mentioning features or use of this software
16c46725b9SPeter Wemm#    must display the following acknowledgement:
17c46725b9SPeter Wemm#	This product includes software developed by the University of
18c46725b9SPeter Wemm#	California, Berkeley and its contributors.
19c46725b9SPeter Wemm# 4. Neither the name of the University nor the names of its contributors
20c46725b9SPeter Wemm#    may be used to endorse or promote products derived from this software
21c46725b9SPeter Wemm#    without specific prior written permission.
22c46725b9SPeter Wemm#
23c46725b9SPeter Wemm# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24c46725b9SPeter Wemm# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25c46725b9SPeter Wemm# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26c46725b9SPeter Wemm# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27c46725b9SPeter Wemm# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28c46725b9SPeter Wemm# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29c46725b9SPeter Wemm# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30c46725b9SPeter Wemm# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31c46725b9SPeter Wemm# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32c46725b9SPeter Wemm# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33c46725b9SPeter Wemm# SUCH DAMAGE.
34c46725b9SPeter Wemm#
35c46725b9SPeter Wemm
36c46725b9SPeter Wemm#
37dfd79cdaSGregory Neil Shapiro#  This is a generic configuration file for FreeBSD 4.X and later systems.
3862b58260SPeter Wemm#  If you want to customize it, copy it to a name appropriate for your
3962b58260SPeter Wemm#  environment and do the modifications there.
4062b58260SPeter Wemm#
4162b58260SPeter Wemm#  The best documentation for this .mc file is:
427f010cfcSGregory Neil Shapiro#  /usr/share/sendmail/cf/README or
4362b58260SPeter Wemm#  /usr/src/contrib/sendmail/cf/README
44c46725b9SPeter Wemm#
45c46725b9SPeter Wemm
467f010cfcSGregory Neil Shapirodivert(0)
473267d629SPeter WemmVERSIONID(`$FreeBSD$')
48742253f5SGregory Neil ShapiroOSTYPE(freebsd5)
497f010cfcSGregory Neil ShapiroDOMAIN(generic)
507f010cfcSGregory Neil Shapiro
51742253f5SGregory Neil ShapiroFEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
527f010cfcSGregory Neil ShapiroFEATURE(blacklist_recipients)
537f010cfcSGregory Neil ShapiroFEATURE(local_lmtp)
547f010cfcSGregory Neil ShapiroFEATURE(mailertable, `hash -o /etc/mail/mailertable')
557f010cfcSGregory Neil ShapiroFEATURE(relay_based_on_MX)
567f010cfcSGregory Neil ShapiroFEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
577f010cfcSGregory Neil Shapiro
58eac481ecSGregory Neil Shapirodnl Uncomment to activate Realtime Blackhole List
59eac481ecSGregory Neil Shapirodnl information available at http://www.mail-abuse.com/
60eac481ecSGregory Neil Shapirodnl NOTE: This is a subscription service as of July 31, 2001
617f010cfcSGregory Neil Shapirodnl FEATURE(dnsbl)
62a77b8652SGregory Neil Shapirodnl Alternatively, you can provide your own rejection message for the RBL:
63a77b8652SGregory Neil Shapirodnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}')
647f010cfcSGregory Neil Shapiro
657f010cfcSGregory Neil Shapirodnl Other DNS based black hole lists
66a77b8652SGregory Neil Shapirodnl --------------------------------
67a77b8652SGregory Neil Shapirodnl MAPS Relay Spam Stopper (RSS): http://mail-abuse.org/rss/
68eac481ecSGregory Neil Shapirodnl NOTE: This is a subscription service as of July 31, 2001
69a77b8652SGregory Neil Shapirodnl FEATURE(dnsbl, `relays.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected; see http://mail-abuse.org/cgi-bin/nph-rss?" $&{client_addr}')
707f010cfcSGregory Neil Shapiro
71a77b8652SGregory Neil Shapirodnl MAPS Dial-up User List (DUL): http://maps.vix.com/dul/
72eac481ecSGregory Neil Shapirodnl NOTE: This is a subscription service as of July 31, 2001
73a77b8652SGregory Neil Shapirodnl FEATURE(dnsbl, `dialups.mail-abuse.org', `"550 Mail from dial-up rejected; see http://mail-abuse.org/dul/enduser.htm"')
747f010cfcSGregory Neil Shapiro
7547b69cc1SJonathan M. Breslerdnl Dialup users should uncomment and define this appropriately
767f010cfcSGregory Neil Shapirodnl define(`SMART_HOST', `your.isp.mail.server')
777f010cfcSGregory Neil Shapiro
78c577eab2SGregory Neil Shapirodnl Uncomment the first line to change the location of the default
79c577eab2SGregory Neil Shapirodnl /etc/mail/local-host-names and comment out the second line.
807f010cfcSGregory Neil Shapirodnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
817f010cfcSGregory Neil Shapirodefine(`confCW_FILE', `-o /etc/mail/local-host-names')
827f010cfcSGregory Neil Shapiro
83e9031bfeSGregory Neil Shapirodnl Uncomment both of the following lines to listen on IPv6 as well as IPv4
84e9031bfeSGregory Neil Shapirodnl DAEMON_OPTIONS(`Name=IPv4, Family=inet')
85e9031bfeSGregory Neil Shapirodnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6')
86e9031bfeSGregory Neil Shapiro
877f010cfcSGregory Neil Shapirodefine(`confMAX_MIME_HEADER_LENGTH', `256/128')
887f010cfcSGregory Neil Shapirodefine(`confNO_RCPT_ACTION', `add-to-undisclosed')
897f010cfcSGregory Neil Shapirodefine(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
907f010cfcSGregory Neil ShapiroMAILER(local)
917f010cfcSGregory Neil ShapiroMAILER(smtp)
92