Error: 111 could not connect to the host "localhost"

Discussion in 'General' started by chinchunfs, Jan 19, 2009.

  1. chinchunfs

    chinchunfs New Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of:

    netstat -tap
     
  3. chinchunfs

    chinchunfs New Member

    @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-
     
  4. djoey

    djoey New Member

    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.

    :)
     
  5. chinchunfs

    chinchunfs New Member

    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:
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the content of the file:

    /etc/hosts
     
  7. chinchunfs

    chinchunfs New Member

    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
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Please start pop3 and imap. Currently, only pop3s and imaps are running.
     
  9. chinchunfs

    chinchunfs New Member

    Thank so much Falko and Till, now mailuser is working perfectly =))
    Facundo
     

Share This Page