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
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
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
gbl...@gatelink.net
Ong Wei Fah escribió en mensaje <36D2B08C...@pacific.net.sg>...
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