Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-29-2004, 03:19 AM
|
#1
|
Member
Registered: Sep 2004
Location: Australia
Distribution: Fedora Core 2
Posts: 36
Rep:
|
smtp problem..telnet to 25
Hi,
When I telnet to port 25
telnet localhost 25
after a few seconds the connection is close by foreign host.
I tried 10 times the same and once in a while it forms a connection with port 25.
Is SMTP running by default on redhat fedora or can it be enabled or disabled by tweaking xinetd?
Please help.
Ta
RnJ
|
|
|
09-29-2004, 03:43 AM
|
#2
|
LQ Newbie
Registered: Sep 2004
Location: india
Posts: 4
Rep:
|
1st it can be enabled and disabled...............2nd why u want telnet by port 25....you can use the default port of telnet........to telnet......u should enable the service telnet..........................
|
|
|
09-29-2004, 08:36 AM
|
#3
|
Member
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188
Rep:
|
I think rnj is using telnet to test for the presence of a listening service at port 25.
If the server is started by xinetd then you can disable it from there.
But if it's a standalone server then you can't disable it from xinetd.
What does netstat -tap show you?
|
|
|
09-29-2004, 10:29 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,444
|
SMTP is normally a standalone daemon. You should be able to stop/start it via the menus if you have X-windows running eg Gnome/KDE.
|
|
|
09-30-2004, 05:47 AM
|
#5
|
Member
Registered: Sep 2004
Location: Australia
Distribution: Fedora Core 2
Posts: 36
Original Poster
Rep:
|
hi guys...
hi
I am using telnet to test the service on port 25..SMTP
SMTP is not running under xinetd..I have configured SMTPS to run under xinetd. Seems to be a standalone server....
I am using Fedora Core 2. When i run nmap..it shows the smtp 25 port open. Why cannot i establish a decent connection to port smtp????
Thx guys.
RnJ
|
|
|
10-02-2004, 09:47 AM
|
#6
|
Member
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188
Rep:
|
Tell me if my understanding of your question is wrong.
You are trying to run SMTPS. you have disabled, or not, the STMP server that comes with fedora and have set up SMTPS to run under xinetd, but you cannot always get a connection, using telnet, to it but nmap shows that the port is open.
So you have 2 (possibly) main questions :
1. Is the server listening at port 25 the SMTPS server?
2. How come you cannot establish a decent connection if it is your SMTPS server.
For the first question, you can try running netstat -tap as root. Look for the program listening at port 25 (smtp). If it is xinetd then it should be for your SMTPS server. Otherwise, some other program is listening at that port and you'll have to stop it somehow.
For the second question, maybe the server is dropping your connection because you cannot complete the ssl handshake. Maybe you can give us more information like the server you are trying to run, exactly what has happened.
You might want to investigate netcat and cryptcat and telnet-ssl for this purpose?
Last edited by mirradric; 10-02-2004 at 09:51 AM.
|
|
|
10-03-2004, 07:12 AM
|
#7
|
Member
Registered: Sep 2004
Location: Australia
Distribution: Fedora Core 2
Posts: 36
Original Poster
Rep:
|
if its default smtp of fedora..how to disable it?
hi mirradric,
if its the default smtp of fedora..how does one disable it? Nmap shows smtp running on port 25, whereas xinetd does not have smtp as a service under it. I have configure a file smtps under xinetd which is also listening to port 25 using stunnel. I am able to connect to imap and pop3 decently. Its only the smtp server.
My conf...
Fedora Core 2
Apache web server
Qmail server installed as per qmailrocks with vpopmail,qmailadmin,courier-imap and squirremail.
Please advice.
Cheers,
RnJ
|
|
|
10-03-2004, 11:56 AM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,444
|
You can only have one prog listening on a given port. If you want to use SMTPS, disable SMTP.
|
|
|
12-12-2005, 10:06 PM
|
#9
|
Member
Registered: Jul 2003
Location: malaysia
Distribution: redhat
Posts: 31
Rep:
|
please check your firewall weather block the smtp service
|
|
|
12-12-2005, 10:16 PM
|
#10
|
Member
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127
Rep:
|
It doesn't sound like a firewall problem; if the firewall was running, you'd get a connection timeout instead, not a connection reset by peer error.
I suspect the problem is like mirradic suggested - you can't establish an encrypted connection using telnet, so after a few seconds of trying to sort things out, the server drops you. Have you tried pointing an actual mail client at the server (after making sure the client is configured to use ssmtp)?
|
|
|
All times are GMT -5. The time now is 06:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|