summaryrefslogtreecommitdiffstats
path: root/etc/sendmail
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-01-12 13:18:22 +0000
committerpeter <peter@FreeBSD.org>1999-01-12 13:18:22 +0000
commitfab9ce5f4efcb73a8591be2a87c4286a60dc5a5f (patch)
tree17b05b7c7044c62e0394278d8802443dd22352ad /etc/sendmail
parent893c59777846d5c21cd7331b5836db48cf414fd0 (diff)
downloadFreeBSD-src-fab9ce5f4efcb73a8591be2a87c4286a60dc5a5f.zip
FreeBSD-src-fab9ce5f4efcb73a8591be2a87c4286a60dc5a5f.tar.gz
Update the default sendmail.cf to be a little more respectable.
I have not enabled rbl by default, I understand an 'opt-in' is a key part of it's legal protection. Activate a few optional features (access_db, virtusertable, etc) which will operate if (and only if) the corresponding table is created. I've also turned on the MIME buffer overflow checking with sendmail.org's recommended values (256/128).
Diffstat (limited to 'etc/sendmail')
-rw-r--r--etc/sendmail/freebsd.mc30
1 files changed, 19 insertions, 11 deletions
diff --git a/etc/sendmail/freebsd.mc b/etc/sendmail/freebsd.mc
index c1bbe07..beb16cc 100644
--- a/etc/sendmail/freebsd.mc
+++ b/etc/sendmail/freebsd.mc
@@ -34,21 +34,29 @@ divert(-1)
#
#
-# This is a generic configuration file for 4.4 BSD-based systems,
-# including 4.4-Lite, BSDi, NetBSD, and FreeBSD.
-# It has support for local and SMTP mail only. If you want to
-# customize it, copy it to a name appropriate for your environment
-# and do the modifications there.
+# This is a generic configuration file for 4.4 BSD-based systems.
+# If you want to customize it, copy it to a name appropriate for your
+# environment and do the modifications there.
+#
+# The best documentation for this .mc file is:
+# /usr/src/contrib/sendmail/cf/README
#
divert(0)dnl
-VERSIONID(`@(#)freebsd.mc $Revision: 1.2 $')
+VERSIONID(`@(#)freebsd.mc $Revision: 1.3 $')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
+FEATURE(relay_based_on_MX)dnl
+FEATURE(mailertable, `hash -o /etc/mail/mailertable')dnl
+FEATURE(access_db, hash -o /etc/mail/access')dnl
+FEATURE(blacklist_recipients)dnl
+FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')dnl
+dnl Uncomment to activate Realtime Blackhole List (recommended!)
+dnl FEATURE(rbl)dnl
+FEATURE(local_lmtp)dnl
+define(`LOCAL_MAILER_FLAGS', LOCAL_MAILER_FLAGS`'P)dnl
+define(`confCW_FILE', `-o /etc/mail/sendmail.cw')dnl
+define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl
+define(`confMAX_MIME_HEADER_LENGTH', `256/128')dnl
MAILER(local)dnl
MAILER(smtp)dnl
-FEATURE(mailertable, `hash -o /etc/mailertable')dnl
-define(`UUCP_RELAY', ucbvax.Berkeley.EDU)dnl
-define(`BITNET_RELAY', mailhost.Berkeley.EDU)dnl
-define(`CSNET_RELAY', mailhost.Berkeley.EDU)dnl
-define(`confCW_FILE', `-o /etc/sendmail.cw')dnl
OpenPOWER on IntegriCloud