freebsd.mc revision 272461
1321936Shselaskydivert(-1)
2321936Shselasky#
3321936Shselasky# Copyright (c) 1983 Eric P. Allman
4321936Shselasky# Copyright (c) 1988, 1993
5321936Shselasky#	The Regents of the University of California.  All rights reserved.
6321936Shselasky#
7321936Shselasky# Redistribution and use in source and binary forms, with or without
8321936Shselasky# modification, are permitted provided that the following conditions
9321936Shselasky# are met:
10321936Shselasky# 1. Redistributions of source code must retain the above copyright
11321936Shselasky#    notice, this list of conditions and the following disclaimer.
12321936Shselasky# 2. Redistributions in binary form must reproduce the above copyright
13321936Shselasky#    notice, this list of conditions and the following disclaimer in the
14321936Shselasky#    documentation and/or other materials provided with the distribution.
15321936Shselasky# 3. All advertising materials mentioning features or use of this software
16321936Shselasky#    must display the following acknowledgement:
17321936Shselasky#	This product includes software developed by the University of
18321936Shselasky#	California, Berkeley and its contributors.
19321936Shselasky# 4. Neither the name of the University nor the names of its contributors
20321936Shselasky#    may be used to endorse or promote products derived from this software
21321936Shselasky#    without specific prior written permission.
22321936Shselasky#
23321936Shselasky# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24321936Shselasky# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25321936Shselasky# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26321936Shselasky# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27321936Shselasky# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28321936Shselasky# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29321936Shselasky# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30321936Shselasky# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31321936Shselasky# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32321936Shselasky# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33321936Shselasky# SUCH DAMAGE.
34321936Shselasky#
35321936Shselasky
36321936Shselasky#
37321936Shselasky#  This is a generic configuration file for FreeBSD 6.X and later systems.
38321936Shselasky#  If you want to customize it, copy it to a name appropriate for your
39321936Shselasky#  environment and do the modifications there.
40321936Shselasky#
41321936Shselasky#  The best documentation for this .mc file is:
42321936Shselasky#  /usr/share/sendmail/cf/README or
43321936Shselasky#  /usr/src/contrib/sendmail/cf/README
44321936Shselasky# 
45321936Shselasky#
46321936Shselasky#  NOTE: If you enable RunAsUser, make sure that you adjust the permissions
47321936Shselasky#  and owner of the SSL certificates and keys in /etc/mail/certs to be usable
48321936Shselasky#  by that user.
49321936Shselasky#
50321936Shselasky
51321936Shselaskydivert(0)
52321936ShselaskyVERSIONID(`$FreeBSD: releng/10.1/etc/sendmail/freebsd.mc 266698 2014-05-26 15:42:39Z gshapiro $')
53321936ShselaskyOSTYPE(freebsd6)
54321936ShselaskyDOMAIN(generic)
55321936Shselasky
56321936ShselaskyFEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
57321936ShselaskyFEATURE(blacklist_recipients)
58321936ShselaskyFEATURE(local_lmtp)
59321936ShselaskyFEATURE(mailertable, `hash -o /etc/mail/mailertable')
60321936ShselaskyFEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
61321936Shselasky
62321936Shselaskydnl Enable STARTTLS for receiving email.
63321936Shselaskydefine(`CERT_DIR', `/etc/mail/certs')dnl
64321936Shselaskydefine(`confSERVER_CERT', `CERT_DIR/host.cert')dnl
65321936Shselaskydefine(`confSERVER_KEY', `CERT_DIR/host.key')dnl
66321936Shselaskydefine(`confCLIENT_CERT', `CERT_DIR/host.cert')dnl
67321936Shselaskydefine(`confCLIENT_KEY', `CERT_DIR/host.key')dnl
68321936Shselaskydefine(`confCACERT', `CERT_DIR/cacert.pem')dnl
69321936Shselaskydefine(`confCACERT_PATH', `CERT_DIR')dnl
70321936Shselaskydefine(`confDH_PARAMETERS', `CERT_DIR/dh.param')dnl
71321936Shselasky
72321936Shselaskydnl Uncomment to allow relaying based on your MX records.
73321936Shselaskydnl NOTE: This can allow sites to use your server as a backup MX without
74321936Shselaskydnl       your permission.
75321936Shselaskydnl FEATURE(relay_based_on_MX)
76321936Shselasky
77321936Shselaskydnl DNS based black hole lists
78321936Shselaskydnl --------------------------------
79321936Shselaskydnl DNS based black hole lists come and go on a regular basis
80321936Shselaskydnl so this file will not serve as a database of the available servers.
81321936Shselaskydnl For more information, visit
82321936Shselaskydnl http://en.wikipedia.org/wiki/DNSBL
83321936Shselasky
84321936Shselaskydnl Uncomment to activate your chosen DNS based blacklist
85321936Shselaskydnl FEATURE(dnsbl, `dnsbl.example.com')
86321936Shselaskydnl Alternatively, you can provide your own server and rejection message:
87321936Shselaskydnl FEATURE(dnsbl, `dnsbl.example.com', ``"550 Mail from " $&{client_addr} " rejected"'')
88321936Shselasky
89321936Shselaskydnl Dialup users should uncomment and define this appropriately
90321936Shselaskydnl define(`SMART_HOST', `your.isp.mail.server')
91321936Shselasky
92321936Shselaskydnl Uncomment the first line to change the location of the default
93321936Shselaskydnl /etc/mail/local-host-names and comment out the second line.
94321936Shselaskydnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
95321936Shselaskydefine(`confCW_FILE', `-o /etc/mail/local-host-names')
96321936Shselasky
97321936Shselaskydnl Enable for both IPv4 and IPv6 (optional)
98321936ShselaskyDAEMON_OPTIONS(`Name=IPv4, Family=inet')
99321936ShselaskyDAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
100321936Shselasky
101321936Shselaskydefine(`confBIND_OPTS', `WorkAroundBrokenAAAA')
102321936Shselaskydefine(`confNO_RCPT_ACTION', `add-to-undisclosed')
103321936Shselaskydefine(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
104321936ShselaskyMAILER(local)
105321936ShselaskyMAILER(smtp)
106321936Shselasky