From fab9ce5f4efcb73a8591be2a87c4286a60dc5a5f Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 12 Jan 1999 13:18:22 +0000 Subject: [PATCH] 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). --- etc/sendmail/freebsd.mc | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/etc/sendmail/freebsd.mc b/etc/sendmail/freebsd.mc index c1bbe0745ef5..beb16cc45521 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