ISP Config 3,dovecot,centos 6.4 squirel mail cannot login

Discussion in 'General' started by dayharder, Mar 22, 2013.

  1. dayharder

    dayharder New Member

    Please Can help with this error "ERROR: Connection dropped by IMAP server."
    i follow this tutorial
    http://www.howtoforge.com/perfect-server-centos-6.4-x86_64-apache2-dovecot-ispconfig-3-p5

    MY MAIL LOG
    Code:
    Mar 22 17:50:11 srv1 postfix/smtpd[5236]: fatal: no SASL authentication mechanisms
    Mar 22 17:50:12 srv1 postfix/master[4808]: warning: process /usr/libexec/postfix/smtpd pid 5236 exit status 1
    Mar 22 17:50:12 srv1 postfix/master[4808]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
    Mar 22 17:50:31 srv1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=5235, input bytes=0
    Mar 22 17:50:44 srv1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 22 17:50:44 srv1 dovecot: log: Error: service(auth): child 5263 returned error 89 (Fatal failure)
    Mar 22 17:50:44 srv1 dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 22 17:51:14 srv1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=5235, input bytes=0
    Mar 22 17:51:14 srv1 dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=5264, input bytes=0
    Mar 22 17:51:44 srv1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=5235, input bytes=0
    Mar 22 17:51:44 srv1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 22 17:51:44 srv1 dovecot: log: Error: service(auth): child 5284 returned error 89 (Fatal failure)
    Mar 22 17:51:44 srv1 dovecot: master: Error: service(auth): command startup failed, throttling
    Mar 22 17:51:59 srv1 dovecot: master: Warning: Killed with signal 15 (by pid=5290 uid=0 code=kill)
    Mar 22 17:51:59 srv1 dovecot: imap-login: Disconnected: Shutting down (no auth attempts): rip=::1, lip=::1, secured
    Mar 22 17:52:00 srv1 dovecot: pop3-login: Error: auth: connect(login) failed: Connection refused
    Mar 22 17:52:02 srv1 dovecot: master: Dovecot v2.0.9 starting up (core dumps disabled)
    Mar 22 17:52:29 srv1 dovecot: pop3-login: Disconnected: Shutting down (no auth attempts): rip=::1, lip=::1, secured
    Mar 22 17:52:47 srv1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory
    Mar 22 17:52:47 srv1 dovecot: log: Error: service(auth): child 5343 returned error 89 (Fatal failure)
    Mar 22 17:52:47 srv1 dovecot: master: Error: service(auth): command startup failed, throttling
    
    MY DOVECOT-n
    Code:
    auth_mechanisms = plain login
    disable_plaintext_auth = no
    listen = *,[::]
    log_timestamp = "%Y-%m-%d %H:%M:%S "
    mail_privileged_group = vmail
    passdb {
      args = /etc/dovecot-sql.conf
      driver = sql
    }
    plugin {
      quota = dict:user::file:/var/vmail/%d/%n/.quotausage
      sieve = /var/vmail/%d/%n/.sieve
    }
    protocols = imap pop3
    service auth {
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0660
        user = postfix
      }
      unix_listener auth-userdb {
        group = vmail
        mode = 0600
        user = vmail
      }
      user = root
    }
    ssl_cert = </etc/postfix/smtpd.cert
    ssl_key = </etc/postfix/smtpd.key
    userdb {
      args = /etc/dovecot-sql.conf
      driver = sql
    }
    protocol imap {
      mail_plugins = quota imap_quota
    }
    protocol pop3 {
      mail_plugins = quota
      pop3_uidl_format = %08Xu%08Xv
    }
    protocol lda {
      mail_plugins = sieve quota
    }
    [root@srv1 ~]# nano maillog
    [root@srv1 ~]# nano /var/log/maillog
    [root@srv1 ~]# dovecot -n
    # 2.0.9: /etc/dovecot/dovecot.conf
    # OS: Linux 2.6.32-358.2.1.el6.x86_64 x86_64 CentOS release 6.4 (Final)
    auth_mechanisms = plain login
    disable_plaintext_auth = no
    listen = *,[::]
    log_timestamp = "%Y-%m-%d %H:%M:%S "
    mail_privileged_group = vmail
    passdb {
      args = /etc/dovecot-sql.conf
      driver = sql
    }
    plugin {
      quota = dict:user::file:/var/vmail/%d/%n/.quotausage
      sieve = /var/vmail/%d/%n/.sieve
    }
    protocols = imap pop3
    service auth {
      unix_listener /var/spool/postfix/private/auth {
        group = postfix
        mode = 0660
        user = postfix
      }
      unix_listener auth-userdb {
        group = vmail
        mode = 0600
        user = vmail
      }
      user = root
    }
    ssl_cert = </etc/postfix/smtpd.cert
    ssl_key = </etc/postfix/smtpd.key
    userdb {
      args = /etc/dovecot-sql.conf
      driver = sql
    }
    protocol imap {
      mail_plugins = quota imap_quota
    }
    protocol pop3 {
      mail_plugins = quota
      pop3_uidl_format = %08Xu%08Xv
    }
    protocol lda {
      mail_plugins = sieve quota
    }
    
    MY Netstat-tap
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:pop3                      *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1307/rpcbind
    tcp        0      0 *:ftp                       *:*                         LISTEN      4851/pure-ftpd (SER
    tcp        0      0 srv1.angsonly.web.id:domain *:*                         LISTEN      1284/named
    tcp        0      0 localhost:domain            *:*                         LISTEN      1284/named
    tcp        0      0 *:ssh                       *:*                         LISTEN      4567/sshd
    tcp        0      0 localhost:ipp               *:*                         LISTEN      4445/cupsd
    tcp        0      0 *:smtp                      *:*                         LISTEN      4808/master
    tcp        0      0 localhost:rndc              *:*                         LISTEN      1284/named
    tcp        0      0 *:imaps                     *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:40897                     *:*                         LISTEN      1325/rpc.statd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      5319/dovecot
    tcp        0      0 localhost:10025             *:*                         LISTEN      4808/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      4705/mysqld
    tcp        0    484 srv1.angsonly.web.id:ssh    27.111.43.1:61079           ESTABLISHED 5143/sshd
    tcp        0      0 *:pop3                      *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1307/rpcbind
    tcp        0      0 *:webcache                  *:*                         LISTEN      4841/httpd
    tcp        0      0 *:http                      *:*                         LISTEN      4841/httpd
    tcp        0      0 *:tproxy                    *:*                         LISTEN      4841/httpd
    tcp        0      0 *:37393                     *:*                         LISTEN      1325/rpc.statd
    tcp        0      0 *:ftp                       *:*                         LISTEN      4851/pure-ftpd (SER
    tcp        0      0 *:domain                    *:*                         LISTEN      1284/named
    tcp        0      0 *:ssh                       *:*                         LISTEN      4567/sshd
    tcp        0      0 localhost:ipp               *:*                         LISTEN      4445/cupsd
    tcp        0      0 *:smtp                      *:*                         LISTEN      4808/master
    tcp        0      0 localhost:rndc              *:*                         LISTEN      1284/named
    tcp        0      0 *:https                     *:*                         LISTEN      4841/httpd
    tcp        0      0 *:imaps                     *:*                         LISTEN      5319/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      5319/dovecot
    tcp        1      0 localhost:pop3              localhost:54043             CLOSE_WAIT  5681/dovecot/pop3-l
    tcp        0      0 localhost:54043             localhost:pop3              FIN_WAIT2   -
    tcp        0      0 localhost:35794             localhost:http              TIME_WAIT   -
    tcp        0      0 localhost:50344             localhost:ftp               TIME_WAIT   -
    tcp        0      0 localhost:56307             localhost:imap              TIME_WAIT   -
    tcp        0      0 localhost:34670             localhost:smtp              TIME_WAIT   -
    
    please help me with the problem, sory if my english not good
     
  2. dakotrade

    dakotrade New Member

  3. Hairy

    Hairy Member

    The reason that it doesn't work is because the installation guide is written incorrectly.

    If you type the 2 lines that I describe in this thread:
    http://www.howtoforge.com/forums/showthread.php?t=61074

    Then, your dovecot will work, hence allowing you to sign into your email account using Squirrelmail (assuming you have made a valid email address).

    Also note that the installation guide incorrectly shows how to setup Courier in the pictures for squirrelmail, but you really should be selecting the dovecot option in squirrelmail.

    Also note that if you are following this installation guide, there will be numerous other things that don't work in your 'perfect server.'

    Here are some links that tell how to fix some more of the errors that you will encounter as well:
    http://www.howtoforge.com/forums/showthread.php?t=61091
    http://www.howtoforge.com/forums/showthread.php?t=61088

    And last, but the only one I can't figure out yet is this one:
    http://www.howtoforge.com/forums/showthread.php?t=61082

    Alas, also note that on step number 16 Install PureFTPd, you should install the openssl, then install the pure-ftpd. I have no idea why this certificate is installed in /etc/ssl/private/, but it will never be used by your server. Your server will use the one that is automatically created for you when you installed pure-ftpd. It is in the directory /etc/pki/pure-ftpd.
     
  4. dayharder

    dayharder New Member

    many thanks

    thank a lot guys thats realy work
     

Share This Page