Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-21-2008, 06:56 AM
Member
 
Join Date: Nov 2008
Posts: 2
Rep Power: 0
iqcst is on a distinguished road
Question detecting mail server in network
hi ,,

i am wondering how can i detect the mail server ,,
suppose we have a net work and there is mail server ,,
how can i detect it ,,

i hear things about Dns query but actually i don't know how ,,

thanks
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-21-2008, 07:13 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,513
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
The way you have to do it is, read/write from/to the socket. Once you comes with the exception you can decide that server is not detected or not connected. Actually to detect the server you must know the IP and Post.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-23-2008, 01:33 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Originally Posted by iqcst View Post
i hear things about Dns query but actually i don't know how
On a good operating system, if you want to know the public SMTP mail server for foo.com, enter
Code:
dig foo.com MX
That doesn't mean its the only server, but it is the public one.

You did not specify if you want outgoing SMTP or incoming POP3 or IMAP They may and often are different.

What do you know about the network? is it public? NAT'd behind a firewall?
etc?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-24-2008, 09:46 AM
Member
 
Join Date: Nov 2008
Posts: 2
Rep Power: 0
iqcst is on a distinguished road
Default
Quote:
Actually to detect the server you must know the IP and Post.
actually i want to discover where is the smtp server !!
i have an assignment to discover the botnet who send spam to the smtp server ,,
its first discover the network looking for server ..

Quote:
You did not specify if you want outgoing SMTP or incoming POP3 or IMAP They may and often are different.
all my concern is output smtp ,, i want to prevent the spam in netwrok ,,

suppose its lan network and there is a server "mail server"

iam really appreciate your help friends
and i will discover dig command more in my ubunto pc

thanks
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-26-2008, 08:49 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
If you don't know or can't rely upon the DNS/bind/named, you could exhaustivly search the subnet. Just get the IP address of your machine, and try all possible values from 1 to 254 of the last octet.

I'm not sure how talking to the outgoing SMTP server will help debug your botnet. While its easy to use an existing SMTP server, clever bots can just do it all direct. They can fake headers and make it look like your server is sending it, but its really some user in the warehouse with an infected Windows box.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javax.mail.MethodNotSupported Exception in java mail api namarc Advanced Java 2 05-05-2008 07:01 AM
Retreiving of mail body using mail number chandu.v09 JavaServer Pages (JSP) and JSTL 0 03-13-2008 03:25 PM
java mail server krismedia New To Java 2 01-23-2008 05:41 AM
Detecting Browser Settings arupranjans JavaServer Pages (JSP) and JSTL 0 07-31-2007 03:31 PM
Sending a mail with the local mail program thedude Advanced Java 2 07-23-2007 01:19 PM


All times are GMT +2. The time now is 08:27 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org