This example helps determine the mail server for a given email address. This is also useful for determining your own SMTP mail server.
--- title: How to find the SMTP Mail Server for an Email Address author: exclamationsoft.com date: November 29, 2016 source: http://www.exclamationsoft.com/exclamationsoft/netmailbot/help/website/HowToFindTheSMTPMailServerForAnEmailAddress.html --- ## Purpose This example helps determine the mail server for a given email address. This is also useful for determining your own SMTP mail server. If you are unsure of the name of the mail server for an email address, first try **mail.domain.com** or **smtp.domain.com**. If niether work, try the following. ## Requirements Windows 98/Me/NT/2000/XP/2003. Not available for Windows 95. ## Steps 1. Open a DOS Command Prompt 2. Type **nslookup**. 3. Your computer's DNS Server name and IP address will be displayed. 4. Type **set type=mx** - This will cause NSLOOKUP to only return what are known as MX (Mail eXchange) records from the DNS servers. 5. For an example, type **hotmail.com**, or use your own domain name. 6. Results returned should look similar to this: ``` Server: ns1.xxx.com Address: 192.168.0.1 Non-authoritative answer: hotmail.com MX preference = 5, mail exchanger = mx2.hotmail.com hotmail.com MX preference = 5, mail exchanger = mx3.hotmail.com hotmail.com MX preference = 5, mail exchanger = mx4.hotmail.com hotmail.com MX preference = 5, mail exchanger = mx1.hotmail.com hotmail.com nameserver = ns1.hotmail.com hotmail.com nameserver = ns2.hotmail.com hotmail.com nameserver = ns3.hotmail.com hotmail.com nameserver = ns4.hotmail.com mx2.hotmail.com internet address = 126.96.36.199 mx2.hotmail.com internet address = 188.8.131.52 mx2.hotmail.com internet address = 184.108.40.206 mx3.hotmail.com internet address = 220.127.116.11 mx3.hotmail.com internet address = 18.104.22.168 mx3.hotmail.com internet address = 22.214.171.124 mx4.hotmail.com internet address = 126.96.36.199 mx4.hotmail.com internet address = 188.8.131.52 mx4.hotmail.com internet address = 184.108.40.206 mx1.hotmail.com internet address = 220.127.116.11 mx1.hotmail.com internet address = 18.104.22.168 mx1.hotmail.com internet address = 22.214.171.124 ns1.hotmail.com internet address = 126.96.36.199 ns2.hotmail.com internet address = 188.8.131.52 ns3.hotmail.com internet address = 184.108.40.206 ns4.hotmail.com internet address = 220.127.116.11 ``` **Note the first line after** ***Non-authoritative answer***. The **MX preference** specifies which mail server to use and in which order. The lower the number, the more preferred the mail server is. In this case, since the preferences for each mail server are the same, you can use any of the four **mail exchangers**.