LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to open port 7025 on RedHat 9.0 (https://www.linuxquestions.org/questions/linux-networking-3/how-to-open-port-7025-on-redhat-9-0-a-227329/)

klinton 09-06-2004 12:01 PM

How to open port 7025 on RedHat 9.0
 
I'm running RedHat 9.0 without a firewall and need to connect to port 7025 so that I can configure Surgemail. My browser gets a refused conection and I have confirmed the port is closed with Nmap

Thanks for any help.

nitin_batta 09-06-2004 12:44 PM

This either means you have a firewall or some default iptable rules or you Surgemail might not be listening on the port 7025

You just need to have a look at surgemail's conf file to check if it has some settings on allow or deny of some ip blocks.

The best way to check if Surgemail is listening for connections is to log in to the machine running it:

$telnet localhost 7025

klinton 09-06-2004 05:38 PM

Nitin,

I tried running telnet localhost:7025 and I get a name or service not known.When I try connecting to 7025 from the web browser I also get connection refused.

I checked surgemail's config file and it is set to accept https://myserver:7025 for admin setup.

I checked firewall settings from the gui and it is set at "no firewall" I'm not sure how to check default iptable rules, but I didn't think any were set.

Thankyou,

Kirk

netopia 09-06-2004 05:45 PM

Type iptables --list to see the firewalls currently active.
Also when telnetting on a linux machine do not use a colon to specify port number e.g.:
telnet localhost 7025
a space, no colon, try that again - because it is important to find out whether the problem is local (surgemail not listening) or whether it is on the borders (i.e. firewall which you don't seem to think you have.)

jon3k 09-06-2004 06:33 PM

Can you verify the service started successfully?

ps aux | grep surgemail

(or whatever the name of the binary is, I'm assuming surgemail, could be wrong. Never heard of it before.)

klinton 09-07-2004 07:55 AM

Yes, the Surgemail service started successfully and is running. I tried to telnet to port 7025 with the correct syntax and it will not connect, but it will connect to just the server without the port being specified. I tried iptables --list and got a command not found.

symen 09-07-2004 08:00 AM

Try running "netstat -l" it will tell you on which ports your server is listening.
Is port 7025 in that list?

klinton 09-07-2004 08:46 AM

No, port 7025 is not in the list of netstat -l.

nitin_batta 09-07-2004 01:42 PM

Quote:

No, port 7025 is not in the list of netstat -l.
Then you need to check you Surgemail config again looks like there is no service listening on the port.

klinton 09-07-2004 05:21 PM

Yes, you are correct. The ini file was set to listen but it didn't because I had a conflicting imap on port 143 that it didn't like. I removed the prior imap server and Surgemail now listens to 7025.


Thanks to all!!


All times are GMT -5. The time now is 05:03 PM.