title: Gitlab CE not sending email
body: <p>I have setup Gitlab CE on a local Ubuntu Server, and I'm trying to use Zoho to send email to users. But, mails are not sent. Even when testing with <code>gitlab-rails console</code> :</p>
  
  <pre><code>irb(main):003:0&gt; Notify.test_email('destination_email@address.com', 'Message Subject', 'Message Body').deliver_now
  </code></pre>
  
  <p>My SMTP config is as follow :</p>
  
  <pre><code>gitlab_rails['smtp_enable'] = true
  gitlab_rails['smtp_address'] = "smtp.zoho.com"
  gitlab_rails['smtp_port'] = 587 # I've also changed to 465, but in vain
  gitlab_rails['smtp_authentication'] = "plain"
  gitlab_rails['smtp_enable_starttls_auto'] = true
  gitlab_rails['smtp_user_name'] = "gitlab@mydomain.com"
  gitlab_rails['smtp_password'] = "mypassword"
  gitlab_rails['smtp_domain'] = "smtp.zoho.com"
  </code></pre>
  
  <p>And Reply by email config :</p>
  
  <pre><code>gitlab_rails['incoming_email_enabled'] = true
  gitlab_rails['incoming_email_address'] = "gitlab-incoming+{key}@domain.com"
  gitlab_rails['incoming_email_email'] = "gitlab@domain.com"
  gitlab_rails['incoming_email_password'] = "Password"
  gitlab_rails['incoming_email_host'] = "imap.zoho.com"
  gitlab_rails['incoming_email_port'] = 993
  gitlab_rails['incoming_email_ssl'] = true
  gitlab_rails['incoming_email_mailbox_name'] = "inbox"
  gitlab_rails['incoming_email_idle_timeout'] = 60
  </code></pre>
  
  <p>Can somebody help me fix this ?</p>
  
  <p><strong>Update :</strong> This is the output of the test in <code>gitlab_rails console</code></p>
  
  <blockquote>
    <p>Notify#test_email: processed outbound mail in 414.5ms</p>
    
    <p>Sent mail to user@domain.com (65666.5ms)
    Date: Wed, 23 Nov 2016 12:47:12 +0100
    From: GitLab 
    Reply-To: GitLab </p>
    
    <p>To: user@domain.com</p>
    
    <p>Message-ID: &lt;583581c03dae3_a7303fac34cdb0fc64a7@administrateur-virtual-machine.mail></p>
    
    <p>Subject: Test</p>
    
    <p>Mime-Version: 1.0</p>
    
    <p>Content-Type: text/html;
     charset=UTF-8
    Content-Transfer-Encoding: 7bit</p>
    
    <p>
    <p>Testons</p></p>
    
    <p>Net::ReadTimeout: Net::ReadTimeout
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:158:in <code>rbuf_fill'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:136:in</code>readuntil'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/protocol.rb:146:in <code>readline'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:946:in</code>recv_response'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in <code>block in do_start'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:956:in</code>critical'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:556:in <code>do_start'
            from /opt/gitlab/embedded/lib/ruby/2.3.0/net/smtp.rb:521:in</code>start'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/mail-2.6.4/lib/mail/network/deli          very_methods/smtp.rb:113:in <code>deliver!'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2          149:in</code>do_delivery'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2          37:in <code>block in deliver'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_          mailer/base.rb:543:in</code>block in deliver_mail'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active          _support/notifications.rb:164:in <code>block in instrument'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active          _support/notifications/instrumenter.rb:20:in</code>instrument'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active          _support/notifications.rb:164:in <code>instrument'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_          mailer/base.rb:541:in</code>deliver_mail'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/mail-2.6.4/lib/mail/message.rb:2          37:in <code>deliver'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/actionmailer-4.2.7.1/lib/action_          mailer/message_delivery.rb:85:in</code>deliver_now'
            from (irb):1
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/comma          nds/console.rb:110:in <code>start'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/comma          nds/console.rb:9:in</code>start'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/comma          nds/commands_tasks.rb:68:in <code>console'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/comma          nds/commands_tasks.rb:39:in</code>run_command!'
            from /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/comma          nds.rb:17:in <code>&lt;top (required)&gt;'
            from bin/rails:9:in</code>require'
            from bin/rails:9:in `'</p>
  </blockquote>