lookup type "dnsdb" is not available

SamotniQ

Verified User
Joined
Nov 21, 2008
Messages
17
Location
Poland
I try to use MX checking for domains in check_recipient section. I use acl like this:

deny message = Brak zdefiniowanego rekordu MX dla domeny. \n\
No MX envelope sender domain $sender_address_domain.
hosts = ! : !+relay_from_hosts
senders = ! :
condition = ${if eq{${lookup dnsdb{mx=$sender_address_domain}{$value}fail}}{fail}{yes}{no}}
delay = 5s
log_message = No MX record in DNS.

deny message = Rekord MX w DNS musi byc postaci FQDN. \n\
MX for transport sender domain $sender_address_domain must be FQDN.
hosts = ! : !+relay_from_hosts
senders = ! :
condition = ${if !match {${lookup dnsdb{mx=$sender_address_domain}{$value}fail}}\
{\N.*[A-Za-z].*\..*[A-Za-z].*\N}{yes}{no}}
delay = 5s
log_message = MX record is not a FQDN.



I my /var/log/exim/mainlog get some errors:

failed to expand ACL string "${if eq{${lookup dnsdb{mx=$sender_address_domain}{$value}fail}}{fail}{yes}{no}}": lookup type "dnsdb" is not available (not in the binary - check buildtime LOOKUP configuration)


How to enable dnsdb in Exim on FreeBSD 6.3 box?
 
Last edited:
dnsdb lookup needs to be compiled into the exim binary used.

Hopefully DirectAdmin staff will look at this thread and check into it, perhaps giving us some suggestions.

Jeff
 
Hello,

Based on this:
http://www.directadmin.com/Makefile

it shows:

#LOOKUP_DNSDB=yes

which is commented out.. now it has a default value of "yes" so I'm not sure if that means it's compiled in by default with a value of yes, or if the fact it's uncommented means it's not compiled in. Usually a commented out value with a value implies the internal default.. so my guess is that it *should* already be compiled in.

I believe the command:
exim -bV
should show you what items are included in the binary.. on the files I just tested on it gave:
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz
which likely means that it is *not* actually included, since it's not in the list...

So basically, exim would have to be recomipled with the value:
LOOKUP_DNSDB=yes
(without the # character)

John
 
serwer# exim -bV
Exim version 4.62 #1 built 02-May-2006 13:10:24
Copyright (c) University of Cambridge 2006
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq use_setclassresources Perl OpenSSL move_frozen_messages Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Size of off_t: 8
Configuration file is /etc/exim.conf

So ... what is the fast way ... to recompile Exim with dnsdb using DirectAdmin?
 
Last edited:
Back
Top