title: gitlab cannot send email to new user
body: <p>I've just installed git git-1.8.1.2 and gitlab gitlab_6.7.2-omnibus-1.ubuntu.12.04_amd64.deb on fresh install of Ubuntu 12.04 lts following: <a href="https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#ubuntu-12-04" rel="noreferrer">https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#ubuntu-12-04</a> and: <a href="https://www.gitlab.com/2014/03/12/packaged-gitlab-with-omnibus/" rel="noreferrer">https://www.gitlab.com/2014/03/12/packaged-gitlab-with-omnibus/</a></p>
  
  <p>When setting up a new user in gitlab, it attempts to send out an email with temporary passwords but postfix gets an error from the relay host: 
  Bad sender address syntax (in reply to MAIL FROM command)</p>
  
  <h2>My /etc/gitlab/config/environments/production.rb looks like this</h2>
  
  <pre><code>config.action_mailer.delivery_method = :smtp
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  
  config.action_mailer.smtp_settings = {
        :address              =&gt; 'mail.domain.com',
        :port                 =&gt; 587,
        :domain               =&gt; 'domain.com',
        :user_name            =&gt; 'username@domain.com',
        :password             =&gt; 'password',
        :authentication       =&gt; 'password',
        :enable_starttls_auto =&gt; true
  }
  </code></pre>
  
  <hr>
  
  <p>I can send email via command line with postfix using I think the same relay host.
  echo “This will go into the body of the mail.” | sendmail  “Hello world” myemail@domain.com</p>
  
  <p>What might be going wrong and where should I look?</p>