File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

how to know the domain names of the smtp servers

aditya vikram
Greenhorn

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,usa.net..etc
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 account....how is exactly a mail sent to the destination smtp server from an email client...is is routed via the users email service provider.
thanks
aditya vikram
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello,
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.
Cheers
- Lars J. Nilsson
http://www.larsan.net/java/
webmaster@larsan.net
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to know the domain names of the smtp servers