Results 1 to 5 of 5
  1. #1
    iqcst is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    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

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    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.

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote 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
    Java 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?

  4. #4
    iqcst is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default

    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 ..

    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

  5. #5
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    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.

Similar Threads

  1. Replies: 2
    Last Post: 05-05-2008, 06:01 AM
  2. Retreiving of mail body using mail number
    By chandu.v09 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-13-2008, 02:25 PM
  3. java mail server
    By krismedia in forum New To Java
    Replies: 2
    Last Post: 01-23-2008, 04:41 AM
  4. Detecting Browser Settings
    By arupranjans in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-31-2007, 02:31 PM
  5. Sending a mail with the local mail program
    By thedude in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •