Email access setup problems

reuben

Verified User
Joined
Jan 12, 2004
Messages
6
Location
Asia
I have just had DA installed on my server and have multiple domains. I have just got round to setting up the email accounts for the domains. But when I try to use squirrel mail to access the email I get the following error message for every email account I have regardless of the domain setup on the server.

Does any one know what this problem is and how I can fix it?


Warning: fsockopen(): unable to connect to localhost:143 in /var/www/html/squirrelmail-1.4.2/functions/imap_general.php on line 454

SquirrelMail version 1.4.2
By the SquirrelMail Development Team
ERROR
Error connecting to IMAP server: localhost.
111 : Connection refused
Go to the login page
 
Ensure imap is running (can you connect to it using another mail client?)

If you have a firewall try turning it off temporarily also.

Chris
 
You can test if/when you get it running by typing:
Code:
telnet localhost 143
Also, imap is run via the xinetd daemon, so you have to make sure that's running.

John
 
ProHS said:
I am having the same problem, what is the imap service called?

it runs under the xinet daemon which can be restarted:

service xinetd {options}

restart, stop start etc being the options.

Chris
 
Hello,

"service" doesn't exist on FreeBSD. To restart it on FreeBSD, you'll probably have to do something like:
Code:
killall inetd
inetd
John
 
Hello,

1) is inetd runing?
When I type "ps -ax |grep inetd", i get:
Code:
-bash-2.05b# ps -ax |grep inetd
  564  ??  Is     0:00.00 /usr/sbin/inetd -wW
so maybe try killing it, and starting it with the -wW option

2) check your /etc/inetd.conf file to make sure imap is setup. Mine has a line :
Code:
imap4   stream  tcp     nowait  root    /usr/sbin/imapd                 imapd

3) Give inetd an hup:
Code:
killall -HUP inetd

4) check if it's working:
Code:
telnet localhost 143
... also, make sure that the imapd binary exists at /usr/sbin/imapd

If anything doesn't work, check the /var/log/messages file after a restart/reload of inetd.

John
 
Back
Top