From owner-freebsd-questions Wed Mar 31 20:45:16 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id A83DE14FBA for ; Wed, 31 Mar 1999 20:45:14 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt8-216-180-15-157.dialup.HiWAAY.net [216.180.15.157]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id WAA11133; Wed, 31 Mar 1999 22:44:22 -0600 (CST) Received: from nospam.hiwaay.net (nospam.hiwaay.net [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id WAA47267; Wed, 31 Mar 1999 22:44:04 -0600 (CST) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199904010444.WAA47267@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Dan Busarow Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: problems with sendmail In-reply-to: Message from Dan Busarow of "Wed, 31 Mar 1999 19:43:06 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 31 Mar 1999 22:44:03 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Busarow writes: > On Wed, 31 Mar 1999, David Kelly wrote: > > Step by step instructions? Am guessing access.db is a hashed database > > file. So how is it created? > > I'm not running 3.1 (that is your version right?) so I can't give > you step by step for the delivered sendmail.cf > > But, if you go to www.sendmail.org and look at "Configuration Information", > "Anti-Spam Configuration Control" you'll see the available options. > Our stock sendmail will be using one of them. > > I use access_db for our sendmail but the standard version may be using > one of the other db's. For me, building the access.db is > > # makemap hash /etc/mail/access < /etc/mail/access Yup, that appears to be close enough for me too. Didn't grok the format of access but http://www.sendmail.org/m4/anti-spam.html had a good enough example. (Duh! Have to tell it OK, REJECT, etc.) And some words that give me hope: OK Accept mail even if other rules in the running ruleset would reject it, for example, if the domain name is unresolvable. "...domain name is unresolvable..." that's my problem! I think. Presume anything that does not specifically hit on definitions in access.db fall thru to the pre-existing rules? I don't need a default rule in access.db? After "kill -HUP `head -1 /var/run/sendmail.pid`" I noticed my /etc/mail/access.db had not been accessed according to "ls -lut" but there are access_db stuff in /etc/sendmail.cf: ##### @(#)access_db.m4 8.8 (Berkeley) 5/19/1998 ##### ... # Access list database (for spam stomping) Kaccess hash -o /etc/mail/access' Hey! Why is there a tick at the end of access above? Bet its a typo but its really in my sendmail.cf, and its the only line that ends that way. That would explain why my file was not accessed on HUP of sendmail. Yup. Changed access' to access, HUP'ed, and now somebody has read my access.db file. It may be a while yet before I'm offline and get to test it for real. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message