I tried this Al, with varying results. It's important to remember you're not actually targeting a mail servers with DNS. More often, the MX and PTR records are directed at a load balancer that shuffles the requests across multiple IPs as part of an SMTP-DOS defense strategy. In effect, you are looking for the Domain IP address that accepts mail for forwarding and there are any number of those and none of the "primary".
Still, great script, it expanded my thinking as far as substitution.
Last edited by dijetlo; 01-19-2015 at 11:38 AM.
|