1184610Salfreddivert(-1) 2184610Salfred# 3184610Salfred# Copyright (c) 1983 Eric P. Allman 4184610Salfred# Copyright (c) 1988, 1993 5184610Salfred# The Regents of the University of California. All rights reserved. 6184610Salfred# 7184610Salfred# Redistribution and use in source and binary forms, with or without 8184610Salfred# modification, are permitted provided that the following conditions 9184610Salfred# are met: 10184610Salfred# 1. Redistributions of source code must retain the above copyright 11184610Salfred# notice, this list of conditions and the following disclaimer. 12184610Salfred# 2. Redistributions in binary form must reproduce the above copyright 13184610Salfred# notice, this list of conditions and the following disclaimer in the 14184610Salfred# documentation and/or other materials provided with the distribution. 15184610Salfred# 3. All advertising materials mentioning features or use of this software 16184610Salfred# must display the following acknowledgement: 17184610Salfred# This product includes software developed by the University of 18184610Salfred# California, Berkeley and its contributors. 19184610Salfred# 4. Neither the name of the University nor the names of its contributors 20184610Salfred# may be used to endorse or promote products derived from this software 21184610Salfred# without specific prior written permission. 22184610Salfred# 23184610Salfred# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24184610Salfred# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25184610Salfred# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26184610Salfred# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27184610Salfred# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28184610Salfred# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29184610Salfred# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30184610Salfred# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31184610Salfred# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32184610Salfred# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33184610Salfred# SUCH DAMAGE. 34213852Shselasky# 35213852Shselasky 36213852Shselasky# 37213852Shselasky# This is a generic configuration file for FreeBSD 6.X and later systems. 38213852Shselasky# If you want to customize it, copy it to a name appropriate for your 39213852Shselasky# environment and do the modifications there. 40184610Salfred# 41184610Salfred# The best documentation for this .mc file is: 42184610Salfred# /usr/share/sendmail/cf/README or 43184610Salfred# /usr/src/contrib/sendmail/cf/README 44184610Salfred# 45184610Salfred# NOTE: If you enable RunAsUser, make sure that you adjust the permissions 46184610Salfred# and owner of the SSL certificates and keys in /etc/mail/certs to be usable 47184610Salfred# by that user. 48184610Salfred# 49184610Salfred 50184610Salfreddivert(0) 51184610SalfredVERSIONID(`$FreeBSD$') 52184610SalfredOSTYPE(freebsd6) 53184610SalfredDOMAIN(generic) 54184610Salfred 55184610SalfredFEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access') 56184610SalfredFEATURE(blacklist_recipients) 57184610SalfredFEATURE(local_lmtp) 58192984SthompsaFEATURE(mailertable, `hash -o /etc/mail/mailertable') 59188622SthompsaFEATURE(virtusertable, `hash -o /etc/mail/virtusertable') 60184610Salfred 61184610Salfreddnl Enable STARTTLS for receiving email. 62184610Salfreddefine(`CERT_DIR', `/etc/mail/certs')dnl 63188987Sthompsadefine(`confSERVER_CERT', `CERT_DIR/host.cert')dnl 64188987Sthompsadefine(`confSERVER_KEY', `CERT_DIR/host.key')dnl 65184610Salfreddefine(`confCLIENT_CERT', `CERT_DIR/host.cert')dnl 66184610Salfreddefine(`confCLIENT_KEY', `CERT_DIR/host.key')dnl 67184610Salfreddefine(`confCACERT', `CERT_DIR/cacert.pem')dnl 68184610Salfreddefine(`confCACERT_PATH', `CERT_DIR')dnl 69184610Salfreddefine(`confDH_PARAMETERS', `CERT_DIR/dh.param')dnl 70184610Salfred 71184610Salfreddnl Uncomment to allow relaying based on your MX records. 72184610Salfreddnl NOTE: This can allow sites to use your server as a backup MX without 73184610Salfreddnl your permission. 74184610Salfreddnl FEATURE(relay_based_on_MX) 75184610Salfred 76184610Salfreddnl DNS based black hole lists 77184610Salfreddnl -------------------------------- 78188622Sthompsadnl DNS based black hole lists come and go on a regular basis 79188622Sthompsadnl so this file will not serve as a database of the available servers. 80184610Salfreddnl For more information, visit 81184610Salfreddnl http://en.wikipedia.org/wiki/DNSBL 82184610Salfred 83184610Salfreddnl Uncomment to activate your chosen DNS based blacklist 84188987Sthompsadnl FEATURE(dnsbl, `dnsbl.example.com') 85188987Sthompsadnl Alternatively, you can provide your own server and rejection message: 86184610Salfreddnl FEATURE(dnsbl, `dnsbl.example.com', ``"550 Mail from " $&{client_addr} " rejected"'') 87184610Salfred 88184610Salfreddnl Dialup users should uncomment and define this appropriately 89184610Salfreddnl define(`SMART_HOST', `your.isp.mail.server') 90184610Salfred 91184610Salfreddnl Uncomment the first line to change the location of the default 92184610Salfreddnl /etc/mail/local-host-names and comment out the second line. 93184610Salfreddnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') 94184610Salfreddefine(`confCW_FILE', `-o /etc/mail/local-host-names') 95184610Salfred 96184610Salfreddnl Enable for both IPv4 and IPv6 (optional) 97184610SalfredDAEMON_OPTIONS(`Name=IPv4, Family=inet') 98184610SalfredDAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O') 99184610Salfred 100184610Salfreddefine(`confBIND_OPTS', `WorkAroundBrokenAAAA') 101184610Salfreddefine(`confNO_RCPT_ACTION', `add-to-undisclosed') 102184610Salfreddefine(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') 103184610SalfredMAILER(local) 104184610SalfredMAILER(smtp) 105184610Salfred