how to get web address of email service from an email address
how to get web address of email service from an email address?
Most of times we ca开发者_运维百科n split email address by @ character and get the last part and plus "mail.", but sometimes for example abc@hotmail.com, it's not right. My purpose is to get the complete email server address http url such as "http://mail.gmail.com/"
Could someone tell me how to get the correct web address of email service from email address ?
Thank you in advance.
You need to look up the MX record for the domain to find out the details of the mail servers for that domain. This is part of the Domain Name System (DNS).
Here is an interactive tool that does this: http://www.mxtoolbox.com/
On Unix, you could use dig
:
aix@aix:~$ dig google.com MX
;; QUESTION SECTION:
;google.com. IN MX
;; ANSWER SECTION:
google.com. 589 IN MX 40 alt3.aspmx.l.google.com.
google.com. 589 IN MX 50 alt4.aspmx.l.google.com.
google.com. 589 IN MX 10 aspmx.l.google.com.
google.com. 589 IN MX 20 alt1.aspmx.l.google.com.
google.com. 589 IN MX 30 alt2.aspmx.l.google.com.
精彩评论