Solved

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

Posted on 2009-07-06
5
465 Views
Last Modified: 2013-12-06
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!
0
Comment
Question by:kirkheaton25
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:lharrispv
ID: 24786489
are you behind a firewall?  Is the port blocked or busy?
0
 
LVL 1

Author Comment

by:kirkheaton25
ID: 24786627
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?
0
 
LVL 8

Accepted Solution

by:
lharrispv earned 250 total points
ID: 24786656
0
 
LVL 28

Assisted Solution

by:Jan Springer
Jan Springer earned 250 total points
ID: 24787557
Port 143 has nothing to do with Postfix.

Are you running a POP/IMAP server and has the configuration file been updated to do IMAP?
0
 
LVL 1

Author Closing Comment

by:kirkheaton25
ID: 31600211
Thanks for your help. Installed Dovecot and now working.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question