title: How configure roundcube to work with imaps?
body: <p>I recently installed Postfix, Dovecot to setup a mail server on my own VPS ( using this tutorial: <a href="https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql" rel="nofollow">Email with Postfix, Dovecot, Mysql</a>)</p>
  
  <p>Imaps server uses port 993 for Authentication, and Postfix uses port 25 to send mails.
  In this tutorial, users stored in a Database ( so imaps use mysql to authenticate users).
  i'm sure every thing works fine with imaps and postfix , because few days ago i installed Kmail client (on my linux) and receive mails from my server. sending mails also works fine, i sent a mail to Gmail and google received it without a problem (in my "Gmail inbox" not spam folder)</p>
  
  <p>So to get to my Emails from a web mail client, i installed <a href="http://roundcube.net/" rel="nofollow">Roundcube</a> on <em>/var/www/mail</em> directory.</p>
  
  <p>I configured Roundcube many times. but each time it gives me this Error:</p>
  
  <blockquote>
    <p>IMAP Error: Login failed for [me@mydomain] from X.x.X.x . Empty
    startup greeting (localhost:993) in
    /var/www/mm/program/lib/Roundcube/rcube_imap.php on line 184 (POST
    /mm/?_task=login?_task=login&amp;_action=login)</p>
  </blockquote>
  
  <p>When i do log in from roundcube, imap server says ( in <em>/var/log/mail.log</em> ):</p>
  
  <blockquote>
    <p>May 20 07:05:16 my-server dovecot: imap-login: Disconnected (no auth
    attempts): rip=::1, lip=::1, TLS handshaking: Disconnected</p>
  </blockquote>
  
  <p>Here is my roundcube config file :</p>
  
  <pre><code>$config['db_dsnw'] = 'mysql://roundcubeuser:myPassword@localhost/roundcubemail';
  // ----------------------------------
  // IMAP
  // ----------------------------------
  $config['debug_level'] = 13;
  $config['default_host'] = 'ssl://127.0.0.1';
  $config['default_port'] = 993;
  // ----------------------------------
  // SMTP
  // ----------------------------------
  $config['smtp_server'] = 'ssl://localhost';
  </code></pre>
  
  <p>What's the problem? i really have no idea what is happening !</p>
  
  <p>Thank you.</p>