This will direct you to the address of the mail server.
However, this isn't always the actual mail server - in some environments this is actually the address of the spam filter, which forwards the messages to the actual mail server where they are stored.
$ host serverfault.com
serverfault.com has address 64.34.119.12
serverfault.com mail is handled by 50 aspmx3.googlemail.com.
serverfault.com mail is handled by 10 aspmx.l.google.com.
serverfault.com mail is handled by 20 alt1.aspmx.l.google.com.
serverfault.com mail is handled by 30 alt2.aspmx.l.google.com.
serverfault.com mail is handled by 40 aspmx2.googlemail.com.
The MX record is part of the DNS record for a domain name; you can look at the record directly, or just use a website like MX toolbox: http://www.mxtoolbox.com/SuperTool.aspx?action=mx%3agmail.com
This will direct you to the address of the mail server.
However, this isn't always the actual mail server - in some environments this is actually the address of the spam filter, which forwards the messages to the actual mail server where they are stored.
look up the MX record in DNS.
on windows: at cmd prompt:
The
host
command will show you.You could also use dig: dig yourdomain.com mx
Here's a quick command to check the MX records of a domain;