freebsd.mc revision 285230
1207753Smmdivert(-1)
2207753Smm#
3207753Smm# Copyright (c) 1983 Eric P. Allman
4207753Smm# Copyright (c) 1988, 1993
5207753Smm#	The Regents of the University of California.  All rights reserved.
6207753Smm#
7207753Smm# Redistribution and use in source and binary forms, with or without
8207753Smm# modification, are permitted provided that the following conditions
9207753Smm# are met:
10207753Smm# 1. Redistributions of source code must retain the above copyright
11207753Smm#    notice, this list of conditions and the following disclaimer.
12207753Smm# 2. Redistributions in binary form must reproduce the above copyright
13207753Smm#    notice, this list of conditions and the following disclaimer in the
14207753Smm#    documentation and/or other materials provided with the distribution.
15207753Smm# 3. All advertising materials mentioning features or use of this software
16207753Smm#    must display the following acknowledgement:
17207753Smm#	This product includes software developed by the University of
18207753Smm#	California, Berkeley and its contributors.
19207753Smm# 4. Neither the name of the University nor the names of its contributors
20292588Sdelphij#    may be used to endorse or promote products derived from this software
21292588Sdelphij#    without specific prior written permission.
22207753Smm#
23207753Smm# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24292588Sdelphij# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25292588Sdelphij# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26207753Smm# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27207753Smm# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28207753Smm# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29292588Sdelphij# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30292588Sdelphij# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31207753Smm# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32207753Smm# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33292588Sdelphij# SUCH DAMAGE.
34292588Sdelphij#
35207753Smm
36207753Smm#
37207753Smm#  This is a generic configuration file for FreeBSD 6.X and later systems.
38292588Sdelphij#  If you want to customize it, copy it to a name appropriate for your
39292588Sdelphij#  environment and do the modifications there.
40207753Smm#
41207753Smm#  The best documentation for this .mc file is:
42292588Sdelphij#  /usr/share/sendmail/cf/README or
43292588Sdelphij#  /usr/src/contrib/sendmail/cf/README
44207753Smm# 
45207753Smm#  NOTE: If you enable RunAsUser, make sure that you adjust the permissions
46207753Smm#  and owner of the SSL certificates and keys in /etc/mail/certs to be usable
47292588Sdelphij#  by that user.
48292588Sdelphij#
49207753Smm
50207753Smmdivert(0)
51292588SdelphijVERSIONID(`$FreeBSD: head/etc/sendmail/freebsd.mc 285230 2015-07-07 03:00:57Z gshapiro $')
52292588SdelphijOSTYPE(freebsd6)
53207753SmmDOMAIN(generic)
54207753Smm
55207753SmmFEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
56292588SdelphijFEATURE(blacklist_recipients)
57292588SdelphijFEATURE(local_lmtp)
58207753SmmFEATURE(mailertable, `hash -o /etc/mail/mailertable')
59207753SmmFEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
60292588Sdelphij
61292588Sdelphijdnl Enable STARTTLS for receiving email.
62207753Smmdefine(`CERT_DIR', `/etc/mail/certs')dnl
63207753Smmdefine(`confSERVER_CERT', `CERT_DIR/host.cert')dnl
64207753Smmdefine(`confSERVER_KEY', `CERT_DIR/host.key')dnl
65292588Sdelphijdefine(`confCLIENT_CERT', `CERT_DIR/host.cert')dnl
66292588Sdelphijdefine(`confCLIENT_KEY', `CERT_DIR/host.key')dnl
67207753Smmdefine(`confCACERT', `CERT_DIR/cacert.pem')dnl
68207753Smmdefine(`confCACERT_PATH', `CERT_DIR')dnl
69292588Sdelphijdefine(`confDH_PARAMETERS', `CERT_DIR/dh.param')dnl
70292588Sdelphij
71207753Smmdnl Uncomment to allow relaying based on your MX records.
72207753Smmdnl NOTE: This can allow sites to use your server as a backup MX without
73dnl       your permission.
74dnl FEATURE(relay_based_on_MX)
75
76dnl DNS based black hole lists
77dnl --------------------------------
78dnl DNS based black hole lists come and go on a regular basis
79dnl so this file will not serve as a database of the available servers.
80dnl For more information, visit
81dnl http://en.wikipedia.org/wiki/DNSBL
82
83dnl Uncomment to activate your chosen DNS based blacklist
84dnl FEATURE(dnsbl, `dnsbl.example.com')
85dnl Alternatively, you can provide your own server and rejection message:
86dnl FEATURE(dnsbl, `dnsbl.example.com', ``"550 Mail from " $&{client_addr} " rejected"'')
87
88dnl Dialup users should uncomment and define this appropriately
89dnl define(`SMART_HOST', `your.isp.mail.server')
90
91dnl Uncomment the first line to change the location of the default
92dnl /etc/mail/local-host-names and comment out the second line.
93dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
94define(`confCW_FILE', `-o /etc/mail/local-host-names')
95
96dnl Enable for both IPv4 and IPv6 (optional)
97DAEMON_OPTIONS(`Name=IPv4, Family=inet')
98DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
99
100define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
101define(`confNO_RCPT_ACTION', `add-to-undisclosed')
102define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
103MAILER(local)
104MAILER(smtp)
105