[exim-dev] [Bug 1270] dnsdb lookup for mx-to-ip

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeremy Harris
Data:  
Para: exim-dev
Tópicos Antigos: [exim-dev] [Bug 1270] New: dnsdb lookup for mx-to-ip
Assunto: [exim-dev] [Bug 1270] dnsdb lookup for mx-to-ip
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1270




--- Comment #1 from Jeremy Harris <jgh146exb@???> 2015-01-17 23:26:09 ---
If MX-sorting not needed:
${lookup dnsdb{a+=${lookup dnsdb{>: mxh=example.com}}}}

If you care about MX-priority sorting (but not about IPv6 vs. IPv4):
  ${lookup dnsdb{a+=${map {${sort {${lookup dnsdb{>:,,mx=example.com}}} \
                                  {<} \
                                  {${listextract{1}{<,$item}}}}}  \
                          {${listextract{2}{<,$item}}}}}}


Neither of these account for backstopping a missing MX record with an A-lookup
on the domain.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email