Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

class hash not available, I am trying to block a domain.com

142 views
Skip to first unread message

Gerardo Blanco

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
I am using sendmail 8.9.1 and SCO 5
I am trying to block all incoming mail from a domain.com
I thought writing a line = domain.com REJECT, in /etc/mail/relay-domains
shoud be enough
I did this, restarted sendmail and I am receiving mails from this site yet.
I put a line REJECTING by ip and by domain, and it is the same situation.

Well I suppose my guess is wrong and this option does not work in this
file...
I am trying to use the feature access_db to do this.

reading this file
http://www.sendmail.org/m4/anti-spam.html
There are some instructions to do this.

FEATURE(`access_db')

The FEATURE macro can accept a second parameter giving the key file
definition for the database; for example

FEATURE(`access_db', `hash -o /etc/mail/access')

Remember, since /etc/mail/access is a database, after creating the text file
as described below, you must use makemap to create the database map. For
example:

makemap hash /etc/mail/access < /etc/mail/access

The table itself uses e-mail addresses, domain names, and network numbers as
keys. For example,

spa...@aol.com REJECT
cyberspammer.com REJECT
192.168.212 REJECT

would refuse mail from spa...@aol.com, any user from cyberspammer.com (or
any host within the cyberspammer.com domain), and any host on the
192.168.212.* network.

-------------------------------------------
Actually I have a makemap program.
If I run my makemap program I can run the instruction
makemap hash /etc/mail/access < /etc/mail/access
without problems.. But if I use the makemap program included in sendmail
8.9.1 I receive this error message:

makemap: Type hash not supported in this version

Why ?

----------------------------------------------

I used my old makemap program to build the access.db file and include a line
in my sendmail.cf configuration file.

# Access list database (for spam stomping)
Kaccess hash -o /etc/mail/access

When I try to start sendmail, I receive this error message:

554 /etc/sendmail.cf: line 84: readcf: map access: class hash not available

What's wrong ?? What Am I missing ??

Thanks in advance

--


Gerardo Blanco
gbl...@gatelink.net

Gerardo Blanco

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
I don't know how, but I solved my problem using:

makemap dbm /etc/mail/access < /etc/mail/list
instead of
makemap hash /etc/mail/access < /etc/mail/list

and change the line
Kaccess hash -o /etc/mail/access
to
Kaccess dbm -o /etc/mail/access
in my sendmail.cf

and everything it's working


--


Gerardo Blanco
gbl...@gatelink.net

Ong Wei Fah

unread,
Feb 23, 1999, 3:00:00 AM2/23/99
to
hi,

In my company we are using hash and the access.db works fine. The command
we used is
makemap hash access.db < access

Does it make any difference?

regards
Wei Fah

Gerardo Blanco

unread,
Feb 24, 1999, 3:00:00 AM2/24/99
to
I don't know the difference between hash and dbm
the parameter hash is not accepted in my makemap program
I don't know why

--


Gerardo Blanco
gbl...@gatelink.net


Ong Wei Fah escribió en mensaje <36D2B08C...@pacific.net.sg>...

Mike Schwager

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
[This followup was posted to Usenet and a copy was sent to the author.]

This is because sendmail by default uses the Berkeley dbm database.
"Hash" refers to the "New Berkeley Database" (or, ndbm) that you must
retrieve from www.sleepycat.com.

In article <7b18s7$j...@enews4.newsguy.com>, gbl...@gatelink.net says...


> I don't know the difference between hash and dbm
> the parameter hash is not accepted in my makemap program
> I don't know why
>
> --

--
-Mike Schwager
schw...@enteract.com

0 new messages