Link to home
Start Free TrialLog in
Avatar of kirkheaton25
kirkheaton25

asked on

Getting "Connection Refused" when trying to connect through port 143

I have setup a Postfix server and can send and recieve mail using the webadmin interface.
Whenever I try to connect to port 143  with either fsocketopen in a php script, or telnet I get a "Connection refused" error.

Iptables has nothing set up.
hosts.deny has "portmap: ALL EXCEPT 127.0.0.1"


Any advice regarding troubleshooting this would be greatly appreciated!
Avatar of lharrispv
lharrispv
Flag of United States of America image

are you behind a firewall?  Is the port blocked or busy?
Avatar of kirkheaton25
kirkheaton25

ASKER

I am running the script from the same server, and using telnet from the server also.
(As there is nothing in iptables, I presume there is effectively no firewall.)
What method should I use to tell if the port is blocked or busy?
ASKER CERTIFIED SOLUTION
Avatar of lharrispv
lharrispv
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help. Installed Dovecot and now working.