Results 1 to 5 of 5
Thread: detecting mail server in network
- 11-21-2008, 05:56 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
- 11-21-2008, 06:13 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 11-23-2008, 12:33 AM #3
On a good operating system, if you want to know the public SMTP mail server for foo.com, enter
That doesn't mean its the only server, but it is the public one.Java Code:dig foo.com MX
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?
- 11-24-2008, 08:46 AM #4
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
actually i want to discover where is the smtp server !!Actually to detect the server you must know the IP and Post.
i have an assignment to discover the botnet who send spam to the smtp server ,,
its first discover the network looking for server ..
all my concern is output smtp ,, i want to prevent the spam in netwrok ,,You did not specify if you want outgoing SMTP or incoming POP3 or IMAP They may and often are different.
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
- 11-26-2008, 07:49 AM #5
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.
Similar Threads
-
Javax.mail.MethodNotSupported Exception in java mail api
By namarc in forum Advanced JavaReplies: 2Last Post: 05-05-2008, 06:01 AM -
Retreiving of mail body using mail number
By chandu.v09 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-13-2008, 02:25 PM -
java mail server
By krismedia in forum New To JavaReplies: 2Last Post: 01-23-2008, 04:41 AM -
Detecting Browser Settings
By arupranjans in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 07-31-2007, 02:31 PM -
Sending a mail with the local mail program
By thedude in forum Advanced JavaReplies: 2Last Post: 07-23-2007, 12:19 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks