Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi, When i do nmap localhost on a server i see: Port State Service 21/tcp open ftp 22/tcp open ssh 25/tcp filtered smtp 80/tcp open http 110/tcp open pop-3 113/tcp ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132

    Severe problem with port 25


    Hi,
    When i do nmap localhost on a server i see:

    Port State Service
    21/tcp open ftp
    22/tcp open ssh
    25/tcp filtered smtp
    80/tcp open http
    110/tcp open pop-3
    113/tcp open auth
    3306/tcp open mysql

    When i use nmap -P0 i see:

    Port State Service
    21/tcp open ftp
    22/tcp open ssh
    25/tcp open smtp
    80/tcp open http
    110/tcp open pop-3
    113/tcp open auth
    1394/tcp open iclpv-nlc
    3306/tcp open mysql

    ______________________________
    The server does not even allow "telnet localhost 25"
    What can i do to allow this?
    ________________________
    O/p of "netstat":

    Active Internet connections
    Proto Recv-Q Send-Q Local Address Foreign Address (state)
    tcp4 0 0 myhost.smtp star-mail-b.fast.62310 ESTABLISHED
    tcp4 0 0 myhost.smtp star-mail-b.fast.62306 ESTABLISHED
    tcp4 0 0 myhost.smtp adsl-static-bais.8217 ESTABLISHED
    tcp4 0 0 myhost.smtp pop3.waycom.4674 ESTABLISHED
    tcp4 0 0 myhost.smtp mail2.t3solution.2429 ESTABLISHED

    I need that i should be allow port 25 access atleast from localhost..
    O/p of netstat puzzles me
    --Anand.
    You are the one Linux!

  2. #2
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113
    Hi!

    Is sendmail, postfix etc running? Check with "ps aux". You can also do "ps aux | grep sendmail/postfix | grep -v grep". If not, maybe inetd or xinetd is running? If that's case, edit their config files. Inetd's config file in slackware is /etc/inetd.conf, might differ from distro to distro.

    If inetd or xinetd listens to hosts.allow and hosts.deny, you can set up the premissions to use your smtp service there.

    Good luck

  3. #3
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    I have qmail and i see it in ps
    But i am not able to do telnet localhost 25
    You are the one Linux!

  4. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Can you send output to qmail, though? Try sending an email through it from localhost and see if that works.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  5. #5
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    Hi,
    When i run qmailctl stat
    I see :

    /service/qmail-send: unable to chdir: file does not exist
    /service/qmail-send/log: unable to chdir: file does not exist
    /service/qmail-smtpd: unable to chdir: file does not exist
    /service/qmail-smtpd/log: unable to chdir: file does not exist
    messages in queue: 422
    messages in queue but not yet preprocessed: 1

    Is it that qmail install is broken?
    You are the one Linux!

  6. #6
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Not necessarily broken, but you might want to check your qmail config.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  7. #7
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    Hi,
    I fixed the previous errors but i still cannot telnet to localhost!
    qmail is not listening over there what can be wrong?

    qmailctl stat is ok.
    You are the one Linux!

  8. #8
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    Code:
    cat  /var/log/qmail/qmail-smtpd/current
    Code:
    @40000000409d1f7305c0196c tcpserver: end 71505 status 0
    @40000000409d1f7305c1a00c tcpserver: status: 19/20
    @40000000409d1f7305c228c4 tcpserver: status: 20/20
    @40000000409d1f7305c545a4 tcpserver: pid 71561 from 128.138.126.11
    @40000000409d1f7309cf8efc tcpserver: ok 71561 MyHost.com:207.106.112.133:25 genome4.colorado.edu:128.138.126.11::33792
    @40000000409d1f730e75e58c tcpserver: end 71559 status 0
    @40000000409d1f730e766a5c tcpserver: status: 19/20
    @40000000409d1f730e76fecc tcpserver: status: 20/20
    @40000000409d1f730e79c1d4 tcpserver: pid 71568 from 204.76.180.2
    @40000000409d1f73134a415c tcpserver: end 71520 status 0
    @40000000409d1f73134afcdc tcpserver: status: 19/20
    @40000000409d1f73134b9534 tcpserver: status: 20/20
    @40000000409d1f73134e600c tcpserver: pid 71578 from 82.145.130.130
    @40000000409d1f731ec0db2c tcpserver: ok 71578 MyHost.com:207.106.112.133:25 eab2.network.biggnet.net:82.145.130.130::46585
    @40000000409d1f7333e0ad84 tcpserver: end 71506 status 0
    @40000000409d1f7333e141f4 tcpserver: status: 19/20
    @40000000409d1f7333e1caac tcpserver: status: 20/20
    @40000000409d1f7333e4acf4 tcpserver: pid 71602 from 153.2.242.117
    @40000000409d1f7334b0de64 tcpserver: end 71519 status 0
    @40000000409d1f7334b16eec tcpserver: status: 19/20
    @40000000409d1f7334b1e804 tcpserver: status: 20/20
    @40000000409d1f7334b4c27c tcpserver: pid 71603 from 81.189.84.43
    @40000000409d1f74011b802c tcpserver: ok 71603 MyHost.com:207.106.112.133:25 dsl-84-43.utaonline.at:81.189.84.43::11682
    @40000000409d1f74128c023c tcpserver: end 71578 status 0
    @40000000409d1f74128c8af4 tcpserver: status: 19/20
    @40000000409d1f74128d234c tcpserver: status: 20/20
    @40000000409d1f74129047fc tcpserver: pid 71618 from 66.235.193.131
    @40000000409d1f74136f0384 tcpserver: end 71518 status 0
    @40000000409d1f74136faf64 tcpserver: status: 19/20
    @40000000409d1f7413703c04 tcpserver: status: 20/20
    @40000000409d1f741372f354 tcpserver: pid 71620 from 193.110.6.7
    @40000000409d1f7416d17804 tcpserver: ok 71618 MyHost.com:207.106.112.133:25 st05.startlogic.com:66.235.193.131::2784
    @40000000409d1f7425785e7c tcpserver: end 71557 status 0
    @40000000409d1f7425791614 tcpserver: status: 19/20
    @40000000409d1f742579aa84 tcpserver: status: 20/20
    @40000000409d1f74257c7d2c tcpserver: pid 71630 from 216.58.97.133
    @40000000409d1f7425a0f134 tcpserver: ok 71630 MyHost.com:207.106.112.133:25 mx2.avalonworks.net:216.58.97.133::3694
    I am clueless why i can't do telnet localhost 25
    You are the one Linux!

  9. #9
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    OH! It's probably only listening on eth0, not lo. Try telnetting you eth0 address.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  10. #10
    Linux Newbie
    Join Date
    Feb 2004
    Location
    India
    Posts
    132
    No still it is not allowing
    And even i "re-installed" qmail.
    You are the one Linux!

Page 1 of 2 1 2 LastLast

Posting Permissions

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