OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Whitelist HASH error

lst_hoe01kwsoft.de
Date: Tue May 30 2006 - 05:04:34 CDT


Zitat von Hement Gopal <hement.gopalwits.ac.za>:

>
> Zitat von Hement Gopal <Hement.Gopalwits.ac.za>:
>
> >
> >
> >
> > Hi all
> >
> >
> >
> > I am a postfix novice running postfix 2.0.13 on Solaris 9 and have RBL
> > in my main.cf file to block spam senders.
> >
> > I now have a need to have a whitelist too so I followed instructions
> > from the FAQ and added the following into my config file , just before
> > my RBL list :-
> >
> >
> >
> > smtpd_client_restrictions =
> >
> > check_sender_access hash:/etc/postfix/whitelist
> >
> > reject_maps_rbl, reject_rbl_client bl.spamcop.net,
> > reject_rbl_client lis
> >
> > t.dsbl.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client
> > sbl-xbl.spamha
> >
> > us.org, reject_rbl_client cbl.abuseat.org, reject_rbl_client
> > relays.ordb.org, re
> >
> > ject_rbl_client block.rhs.mailpolice.com, reject_rbl_client
> > bl.csma.biz, permit
> >
> >
> >
> >
> >
> > However when I restart postfix and telnet to the mail port I get the
> > following msg
> >
> >
> >
> > May 26 11:44:37 artemis postfix/smtpd[11133]: [ID 947731 mail.crit]
> > fatal: unsupported dictionary type: hash
>
> >You should use a supported (built-in) map type. Test with postconf
> -m >if hash is listed, if not use dbm or re-built postfix with
> berkeley DB >types.
>
> >Regards
>
> >Andreas
>
> Postconf shows
>
> # postconf -m
> static
> nis
> dbm
> regexp
> environ
> proxy
> unix
>

Okay, so use "check_sender_access dbm:/etc/postfix/whitelist" and
postmap dbm:/etc/postfix/whitelist". You should also replace hash by
dbm for all your other maps.

Regards

Andreas