AnyEvent::DNS since version 6.01 puts TTL in the fourth element of its
return where AnyEvent::SMTP::Client is expecting the MX hostname, which
fouls things up in the in-place sort at Client.pm line 351.
I haven't tried it, but it seems that using AnyEvent::DNS::mx directly
would be a good fix as mx() returns a list sorted by preference.