From owner-freebsd-questions Thu Jan 18 8:33:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 95D5F37B404 for ; Thu, 18 Jan 2001 08:33:25 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.11.1/8.11.1) id f0IGXNx28467; Thu, 18 Jan 2001 10:33:23 -0600 (CST) (envelope-from dan) Date: Thu, 18 Jan 2001 10:33:22 -0600 From: Dan Nelson To: Sean Glazier Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail 8 help! Message-ID: <20010118103322.A8311@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: ; from "Sean Glazier" on Thu Jan 18 04:13:38 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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 $#error $@ 4.7.1 $: "450 Cannot resolve PTR record for " $&{client_addr} R $#error $@ 5.7.1 $: "550 IP name possibly forged " $&{client_name} R $#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