Re: [exim] Usage of dnsdb primary mx

Pàgina inicial
Delete this message
Reply to this message
Autor: Marc Perkel
Data:  
A: exim-users
Assumpte: Re: [exim] Usage of dnsdb primary mx


Phil Pennock wrote:
> ${if !eq{${reduce{<\n ${lookup dnsdb{mx=$domain}}}{70000 .}{${if <{${extract{1}{ }{$item}}}{${extract{1}{ }{$value}}}{$item}{$value}}}}}{70000 .}{${reduce{<\n ${lookup dnsdb{mx=$domain}}}{70000 .}{${if <{${extract{1}{ }{$item}}}{${extract{1}{ }{$value}}}{$item}{$value}}}}}fail}
>
>
>

I haven't really tried to figure this out yet but it seems to work. how
would this code be modified to return all MX records EXCEPT the lowest?
The above code works great for me to test "is the lowest MX pointing to
any of my server". What I want to test separately is "are MX records
other than the lowest numbered MX pointing to our server" so that then I
can test "we are not the primary but we are the secondary for $domain"