Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 1999 22:44:03 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Dan Busarow <dan@dpcsys.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: problems with sendmail 
Message-ID:  <199904010444.WAA47267@nospam.hiwaay.net>
In-Reply-To: Message from Dan Busarow <dan@dpcsys.com>  of "Wed, 31 Mar 1999 19:43:06 PST." <Pine.BSF.3.96.990331193709.15294W-100000@java.dpcsys.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




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