[Exim] Restricting NS lookups

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Manuel Molina
Datum:  
To: exim-users
Betreff: [Exim] Restricting NS lookups
    Hello to all:

    We have a problem about MX name resolution in exim. We don't want our
server to resolve the address in the following router:


The router

router_ldap:
driver = lookuphost
ignore_target_hosts = 127.0.0.0/8
transport = smtp_backend
condition = "${lookup ldap
{ldap:///LDAP_BASE?LDAP_ATTRIBUTES?sub?LDAP_FILTER1}{true} fail}"
headers_add = Mailhost: ${extract {mailhost}{${lookup ldap
{ldap:///LDAP_BASE?LDAP_ATTRIBUTES?sub?LDAP_FILTER1}{$value}}}}
domains = /opt/exim/etc/domains

    We have two conditions that have been met, so we can't figure out how
exim is resolving names in this stage of processing: (look at the log):


router_ldap router called for pozi@???
dns lookup: route_domain = myexampledomain.com
DNS lookup of myexampledomain.com (MX) gave HOST_NOT_FOUND
returning DNS_NOMATCH
DNS lookup of myexampledomain.com (A) gave HOST_NOT_FOUND
returning DNS_NOMATCH
router_ldap router declined

    The transport smtp_backend use gethostbyname, so we don't want
router_ldap to do the resolution, but smtp_backend.


    Here's the transport:


smtp_backend:
driver=smtp
max_rcpt = 1
gethostbyname = true
delay_after_cutoff = false
hosts_override = true
headers_remove=Mailhost:Bcc
# we get the host from a ldap lookup
hosts = ${extract {mailhost}{${lookup ldap
{ldap:///LDAP_BASE?LDAP_ATTRIBUTES?sub?LDAP_FILTER1}{$value}}}}


    Any idea ?



--
    Thanks in advance,


        Manuel Molina Cuberos / http://easy.to/deluxe
        IP Sistemas           / http://www.ipsistemas.com