Foros del Web » Administración de Sistemas » Unix / Linux »

problema con telnet localhost 25

Estas en el tema de problema con telnet localhost 25 en el foro de Unix / Linux en Foros del Web. Tengo un problema con telnet localhost 25 Obtengo los siguientes errores: webMailServer:~# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Porque ...
  #1 (permalink)  
Antiguo 19/01/2005, 10:05
 
Fecha de Ingreso: abril-2004
Mensajes: 185
Antigüedad: 20 años
Puntos: 0
problema con telnet localhost 25

Tengo un problema con
telnet localhost 25

Obtengo los siguientes errores:

webMailServer:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Porque no puedo ver nada?
Estoy siguiendo las instrucciones de instalacion de http://www.qmailrocks.org/start_qmail.htm.

Esta es la informacion interesante que he recopilado por si ayuda.

webMailServer:~#netstat -lp grep smtp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 *:ssmtp *:* LISTEN 309/inetd
tcp 0 0 *:smtp *:* LISTEN 309/inetd


rec-palvarez@webMailServer:~$ qmailctl stat
/service/qmail-send: unable to open supervise/ok: access denied
/service/qmail-send/log: unable to open supervise/ok: access denied
/service/qmail-smtpd: unable to open supervise/ok: access denied
/service/qmail-smtpd/log: unable to open supervise/ok: access denied
/service/qmail-pop3d: unable to open supervise/ok: access denied
/service/qmail-pop3d/log: unable to open supervise/ok: access denied
find: queue/mess/*: Permission denied
find: queue/todo: Permission denied
messages in queue: -1
messages in queue but not yet preprocessed: -1
rec-palvarez@webMailServer:~$


rec-palvarez@webMailServer:~$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Qpopper (version 4.0.4) at webMailServer starting. <9471.1106131172@webMailServer>

Y puedo introducir ususario y ver sus mails.


webMailServer:~#ps -aux|grep smtp

Bad syntax, perhaps a bogus '-'?
root 688 0.0 0.4 1240 292 ? S Jan18 0:01 supervise qmail-smtpd
qmaill 698 0.0 0.4 1252 280 ? S Jan18 0:00 multilog t s100000 n20 /var/log/qmail/qmail-smtpd
root 5582 0.0 0.7 1340 472 pts/0 S 11:28 0:00 grep smtp

webMailServer:~# ps -aux|grep qmail

Bad syntax, perhaps a bogus '-'?
root 686 0.0 0.0 1240 60 ? S Jan18 0:00 supervise qmail-send
root 688 0.0 0.1 1240 64 ? S Jan18 0:01 supervise qmail-smtpd
root 690 0.0 0.1 1240 64 ? S Jan18 0:00 supervise qmail-pop3d
qmails 695 0.0 0.2 1320 184 ? S Jan18 0:01 qmail-send
qmaill 696 0.0 0.0 1260 60 ? S Jan18 0:00 multilog t s100000 n20 /var/log/qmail/qmail-send
qmaill 698 0.0 0.0 1252 0 ? SW Jan18 0:00 [multilog]
qmaill 700 0.0 0.1 1260 124 ? S Jan18 0:00 multilog t s100000 n20 /var/log/qmail/qmail-pop3d
root 703 0.0 0.1 1256 72 ? S Jan18 0:00 qmail-lspawn ./Maildir
qmailr 704 0.0 0.1 1256 108 ? S Jan18 0:00 qmail-rspawn
qmailq 705 0.0 0.0 1248 40 ? S Jan18 0:00 qmail-clean
root 7132 0.0 0.7 1340 472 pts/0 S 11:32 0:00 grep qmail

webMailServer:~# ps -aux|grep sendmail does nothing

Mi /etc/inet.conf

# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet server configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal
discard stream tcp nowait root internal
discard dgram udp wait root internal
daytime stream tcp nowait root internal
#daytime dgram udp wait root internal
time stream tcp nowait root internal
#time dgram udp wait root internal

#:STANDARD: These are standard services.
#<off># ftp stream tcp nowait root /usr/local/sbin/vsftpd vsftpd

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.
imap2 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/imapd
imap3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/imapd
pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper -f /etc/qpopper.conf

This three following lines were pointing to sendmail, and they were #<off>#
I have chjanged the parameters and enable them.

smtp stream tcp nowait root /usr/sbin/sendmail qmail
587 stream tcp nowait root /usr/sbin/sendmail qmail
smtps stream tcp nowait root /usr/sbin/sendmail qmail


#:INFO: Info services
ident stream tcp wait identd /usr/sbin/identd identd

#:BOOT: Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
linuxconf stream tcp wait root /bin/linuxconf linuxconf --http
#<off># netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd -a
#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
391002/1-2 stream rpc/tcp wait root /usr/sbin/famd fam
#<off># swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat

#<off># kshell stream tcp nowait root /usr/sbin/tcpd /usr/lib/kerberos4kth-servers/rshd -k
#<off># telnet stream tcp nowait root /usr/sbin/tcpd /usr/lib/kerberos4kth-servers/telnetd -a none

Si se necesita mas informacion la enviare a peticion.

Gracias.
__________________
Recologic
  #2 (permalink)  
Antiguo 19/01/2005, 12:23
Avatar de ociomax
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Temuco, Chile
Mensajes: 5.595
Antigüedad: 22 años
Puntos: 35
¿Es necesario que uses telnet? ¿No puedes usar SSH?

Telnet es una invitación a que tu sistema se llene de "visitantes indeseados". De hecho, la mayoría de las distribuciones lo traen deshabilitado.
__________________
Christian González, "OCIOMax"
http://chgonzalez.blogspot.com
http://twitter.com/chgonzalez
  #3 (permalink)  
Antiguo 20/01/2005, 03:26
 
Fecha de Ingreso: abril-2004
Mensajes: 185
Antigüedad: 20 años
Puntos: 0
Cita:
Iniciado por ociomax
¿Es necesario que uses telnet? ¿No puedes usar SSH?

Telnet es una invitación a que tu sistema se llene de "visitantes indeseados". De hecho, la mayoría de las distribuciones lo traen deshabilitado.
Solo tengo habilitado telnet desde el interior. Desde fuera esta deshabilitado. Pero internamente sirve para probar.
Gracias.
__________________
Recologic
  #4 (permalink)  
Antiguo 20/01/2005, 22:35
Avatar de Slayer_X
Colaborador
 
Fecha de Ingreso: mayo-2001
Ubicación: Lima
Mensajes: 865
Antigüedad: 23 años
Puntos: 1
Hola

Para empezar el uso del telnet como cliente no tiene ningun problema, el problema seria que tuvieras un servidor de telnet, pero eso no es lo importante para tu problema.

Hacer un telnet al puerto 25 solo te sirve para verificar que tu SMTP esta respondiendo, los SMTP corren por defecto en el puerto 25. Si no responde es porque tu SMTP probablemente no este levantado, que distribucion usas? has verificado que el qmail este levantado? estas usando el puerto 25? no estaras usando otro puerto?
__________________
(o> Cesar Villegas Ureta
// "Slayer_X"
V_/_ http://www.slayerx.org/
  #5 (permalink)  
Antiguo 21/01/2005, 04:51
 
Fecha de Ingreso: abril-2004
Mensajes: 185
Antigüedad: 20 años
Puntos: 0
Estoy usando Debian 3.0 Y estoy instalando qmail a traves de las indicaciones de www.qmailrocks.org

Antes mas tenia instalado sendm,ail. Y cuando acabe con las instrucciones de instalacion de qmailrocks, no me funcionaba el tema de telnet 25. Vi que en /etc/inetd.conf apuntaba a sendmail y daba error. Asiuq que modifique para apuntar a qmail. Con esto ya no me reusaba conectarme al puerto 25 pero no conseguia nada.Asi que alguien en un foro me dijo que deberia quitar toda referencia a qmail o sendmail del inted.conf. Pero esto hace que el telent a 25 me da refused. Y hay ando. No se si poner algo mas en el inedt.conf, pero que?

Gracias.
__________________
Recologic
  #6 (permalink)  
Antiguo 25/01/2005, 05:47
 
Fecha de Ingreso: abril-2004
Mensajes: 185
Antigüedad: 20 años
Puntos: 0
Ademas si reinicio el sistema qmail aparecen funcionando. Aunque ya no hay referencia hacia el en el inetd.conf.

Como creeis que se inicia?
__________________
Recologic
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:47.