host -t mx mydomain.com

nslookup -q=mx mydomain.com

dig -t mx mydomain.com

http://superuser.com/questions/44178/how-do-i-get-the-mx-records-for-a-domain-from-nix-command-line

admin