PDA

View Full Version : Error: 111 could not connect to the host "localhost"


chinchunfs
19th January 2009, 23:01
hi, i m trying to logon in mailuser section but i recibe the next msg Error: 111 could not connect to the host "localhost", i use courier pop3s and imaps, my system is a Ubuntu 6.06.2 LTS.
Thank You for us Attention and Great Soft how IPSConfig.

till
20th January 2009, 10:59
Please post the output of:

netstat -tap

chinchunfs
21st January 2009, 12:12
@ns1:~$ netstat -tap
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN -
tcp 0 0 *:netbios-ssn *:* LISTEN -
tcp 0 0 *:81 *:* LISTEN -
tcp 0 0 *:ftp *:* LISTEN -
tcp 0 0 192.168.0.1:domain *:* LISTEN -
tcp 0 0 ns1.madhousetech:domain *:* LISTEN -
tcp 0 0 localhost.locald:domain *:* LISTEN -
tcp 0 0 localhost.localdoma:953 *:* LISTEN -
tcp 0 0 *:smtp *:* LISTEN -
tcp 0 0 *:microsoft-ds *:* LISTEN -
tcp6 0 0 *:imaps *:* LISTEN -
tcp6 0 0 *:pop3s *:* LISTEN -
tcp6 0 0 *:www *:* LISTEN -
tcp6 0 0 *:ssh *:* LISTEN -
tcp6 0 0 ip6-localhost:953 *:* LISTEN -
tcp6 0 0 *:smtp *:* LISTEN -
tcp6 0 0 *:https *:* LISTEN -
tcp6 0 1652 ::ffff:192.168.0.1%:ssh ::ffff:192.168.0.1:1218 ESTABLISHED-

djoey
21st January 2009, 15:07
Looks like imaps and pop3s are listening only on all the ipv6 addresses configured.

localhost = usually synonym for ipv4 address 127.0.0.1

try connecting to:

::1

This should work, however you need to configure courier to not only listen to ipv6 addresses but also ipv4 ones.

:)

chinchunfs
21st January 2009, 20:17
i change my courier imaps and pop3s config, but i get same message from mailuser section Error: 111 could not connect to the host "localhost"

output of: netstat -tap

ns1:/etc/courier# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:imaps *:* LISTEN 11680/couriertcpd
tcp 0 0 localhost.localdo:pop3s *:* LISTEN 11647/couriertcpd
tcp 0 0 *:mysql *:* LISTEN 3595/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 3773/smbd
tcp 0 0 *:81 *:* LISTEN 3979/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 4238/proftpd: (acce
tcp 0 0 192.168.0.1:domain *:* LISTEN 4221/named
tcp 0 0 ns1.madhousetech:domain *:* LISTEN 4221/named
tcp 0 0 localhost.locald:domain *:* LISTEN 4221/named
tcp 0 0 *:smtp *:* LISTEN 11800/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 4221/named
tcp 0 0 *:microsoft-ds *:* LISTEN 3773/smbd
tcp6 0 0 *:www *:* LISTEN 4085/apache2
tcp6 0 0 *:ssh *:* LISTEN 3809/sshd
tcp6 0 0 *:smtp *:* LISTEN 11800/master
tcp6 0 0 ip6-localhost:953 *:* LISTEN 4221/named
tcp6 0 0 *:https *:* LISTEN 4085/apache2
tcp6 0 148 ::ffff:192.168.0.1%:ssh ::ffff:192.168.0.1:1064 ESTABLISHED8615/sshd:

till
22nd January 2009, 11:19
Please post the content of the file:

/etc/hosts

chinchunfs
22nd January 2009, 17:40
hi till, this is my /etc/hosts output

ns1:~$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
200.49.4.24 ns1.madhousetech.com.ar ns1

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

falko
23rd January 2009, 14:43
Please start pop3 and imap. Currently, only pop3s and imaps are running.

chinchunfs
23rd January 2009, 17:29
Thank so much Falko and Till, now mailuser is working perfectly =))
Facundo