File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes how to know the domain names of the smtp servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to know the domain names of the smtp servers" Watch "how to know the domain names of the smtp servers" New topic

how to know the domain names of the smtp servers

aditya vikram

Joined: Jul 13, 2001
Posts: 2

hello everybody..
i need to know how to find the domain name of any smtp server like yahoo,hotmail,angelfire,
is there any general name that these portals use for their smtp servers. similarly i need to know the pop3 servers of such portals.
also i would like to know how is a "web based email services " defined.are these the services that offer their services only through the www..or the internet...or even the isp based email services come under this category.
can any email client contact the destination smtp server to send a mail directly to the reciepent of the mail, instead of contacting a smtp server where the user has an is exactly a mail sent to the destination smtp server from an email is routed via the users email service provider.
aditya vikram
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The mail services of a domain name is registered in the DNS as "MX" records and that's where you can get hold of the mail server address for a specific domain. An MX-query will list the public SMTP-servers of a domain name, the POP-servers are for users only and therefore not in the DNS.
For any mail sent a transport agent will attempt to do an MX-query on the recipient domain. This will return a list of servers responsible for the users mailbox.
Any SMTP-server can refuse any connection, or demand authorization - in which case the transport agent will attempt either the next server on the MX-record or the recipient domain directly.
A mail can be routed through several servers. I suggest you read the SMTP RFC for details about that.
- Lars J. Nilsson
I agree. Here's the link:
subject: how to know the domain names of the smtp servers
It's not a secret anymore!