Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 10:33:22 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Sean Glazier <seanglazier@hotmail.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: sendmail 8 help!
Message-ID:  <20010118103322.A8311@dan.emsphone.com>
In-Reply-To: <F199K8ZtP0kvdIBirXX0000135a@hotmail.com>; from "Sean Glazier" on Thu Jan 18 04:13:38 GMT 2001
References:  <F199K8ZtP0kvdIBirXX0000135a@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

In the last episode (Jan 18), Sean Glazier said:
> I have been trying al night and all last night with no sucess to get
> spam filters working properly in my sendmail.cf file.
> 
> Is thier any on out there who can telnet in and help me with this
> problem.

Don't try and edit the .cf directly; create an .mc file and generate a
.cf file from that.  Attached is my .mc file, which is just about as
spam-paranoid as you can get.  Run m4 on it to generate your
sendmail.cf:

m4 sendmail.mc > sendmail.cf

-- 
	Dan Nelson
	dnelson@emsphone.com

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sendmail.mc"

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.
#
divert(0)dnl
define(`_CF_DIR_',`/usr/src/contrib/sendmail/cf/')dnl
include(_CF_DIR_`m4/cf.m4')dnl
VERSIONID(`@(#)freebsd.mc	$Revision: 1.5 $')dnl
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl

FEATURE(mailertable, `hash -o /etc/mail/mailertable')dnl
FEATURE(access_db, `hash -o /etc/mail/access')dnl
FEATURE(blacklist_recipients)dnl
FEATURE(use_cw_file)dnl
FEATURE(virtusertable)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(dnsbl)dnl
FEATURE(dnsbl,`dialups.mail-abuse.org',`Mail from dial-up $&{client_addr} rejected; see http://mail-abuse.org/dul/enduser.htm')dnl
FEATURE(dnsbl,`relays.mail-abuse.org',`Abused email relay $&{client_addr} rejected; see http://mail-abuse.org/rss/')dnl
FEATURE(dnsbl,`relays.orbs.org',`Open email relay $&{client_addr} rejected; see http://www.orbs.org/')dnl
FEATURE(local_procmail)dnl

FEATURE(relay_entire_domain)dnl

define(`confMAX_MIME_HEADER_LENGTH', `256/128')dnl

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

LOCAL_RULESETS
SLocal_check_rcpt
# check client name: did it resolve?
R$*			$: < $&{client_resolve} >
R<TEMP>			$#error $@ 4.7.1 $: "450 Cannot resolve PTR record for " $&{client_addr}
R<FORGED>		$#error $@ 5.7.1 $: "550 IP name possibly forged " $&{client_name}
R<FAIL>			$#error $@ 5.7.1 $: "550 IP name lookup failed " $&{client_name}

--YZ5djTAD1cGYuMQK--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010118103322.A8311>