Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I want to know whether a machine (say ip:10.232.13.13) is mail server or not? How to know that...any commands like ps or pgrep or ping or telnet will help ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758

    Exclamation How to find a machine acts as mail server?


    Hi,
    I want to know whether a machine (say ip:10.232.13.13) is mail server or not?
    How to know that...any commands like ps or pgrep or ping or telnet will help me?
    Please help me.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6
    Hi there,

    if you telnet to the ip address, and suppy port 25 (SMTP protocol), you should get a welcome message from the server. you can actually interactivey check your mail in this mode. Alternatively, you could just point a mail client like Thunderbird at the server using the ip/host name and the default ports and try to send a mail. if you get a meaningful error message (rather than connection refused) you will know a mail server exists.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758

    Smile

    Hi,
    thanks for reply.Ok can telnet to the system and use interactively with the server.
    So i guess it's mail server only.
    But can it be relaying mail server?-ie. just relay mails to another original mail server?
    Is that possible??
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. #4
    Just Joined!
    Join Date
    Jul 2006
    Posts
    6
    Hi there,


    It is possible that it is a mail relay only, although often servers are multi-purpose depending on the environment.

    There are a few other things you can try to test and see what else is going on.

    You can try using telnet to the POP (post office protocol) service on port 110 or IMAP on port 143; again you should get an interactive session rather than a connection refused. You can also try and SSH, or telnet to port 22 to see if this has any service running. This should give you some idea whether the server has other uses or not.

    Often, if the server is more than an internal relay, the IP Address will map to a hostname somewhere. Can you ping the IP Address you are testing? If you ping the IP Address, it shoud resolve to a hostname and return that. If you can resolve the hostname directly (in your browser or by pinging the hostname rather than the IP) then that server will likely be used as an inbound and outbound mail relay.

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758

    Exclamation

    Quote Originally Posted by redthree View Post
    Hi there,


    It is possible that it is a mail relay only, although often servers are multi-purpose depending on the environment.

    There are a few other things you can try to test and see what else is going on.

    You can try using telnet to the POP (post office protocol) service on port 110 or IMAP on port 143; again you should get an interactive session rather than a connection refused. You can also try and SSH, or telnet to port 22 to see if this has any service running. This should give you some idea whether the server has other uses or not.

    Often, if the server is more than an internal relay, the IP Address will map to a hostname somewhere. Can you ping the IP Address you are testing? If you ping the IP Address, it shoud resolve to a hostname and return that. If you can resolve the hostname directly (in your browser or by pinging the hostname rather than the IP) then that server will likely be used as an inbound and outbound mail relay.
    Thanks and got a problem yesterday i can telnet into port 25 of the machine ,
    But it says ,
    Code:
    :connection refused.
    whats it mean?
    and when i
    telnet to 110 or 143
    its says,
    Code:
    Trying 10.232.13.99.....
    But i can telnel to 22 port
    and i type the ip-address on browser i'm getting apache running screen.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Quote Originally Posted by redthree View Post
    Often, if the server is more than an internal relay, the IP Address will map to a hostname somewhere. Can you ping the IP Address you are testing? If you ping the IP Address, it shoud resolve to a hostname and return that. If you can resolve the hostname directly (in your browser or by pinging the hostname rather than the IP) then that server will likely be used as an inbound and outbound mail relay.
    i can ping to that address.But it doesn't display any hostname.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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