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. |
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 |
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 |
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.) |
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.) |
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.
|
Try running "netstat -l" it will tell you on which ports your server is listening.
Is port 7025 in that list? |
No, port 7025 is not in the list of netstat -l.
|
Quote:
|
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. |