This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detect SMTP server IP address

 
Manoj Tare
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to find SMTP service running on a Network .
Currently in my application user has to give SMTP server IP address (which is hardcoded).
I want to give facility to detect SMTP server IP address automatically.
Is there any way to find out the same.
Please give some slutn.
in advance thx
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
do u know the host name u mean for the SMTP server and want to find IP? (well that doesnt make sense though )
'coz otherwise knowing nothing we can't probably query where is SMTP server i guess
regards
maulin
 
David Weitzman
Ranch Hand
Posts: 1365
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to identify the SMTP servers that service incoming mail to a specific domain, you'll want to query for MX records with a library like DNSJava. Note that when a domain has no MX records, you should try the IP of the domain itself.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic