Configuring Gmail with Redmine

I had been hanging out with Redmine 1.2.0 for a while. Finally, I managed to integrate Gmail SMTP with Redmine.

I used BitNami’s Redmine installer to setup Redmine environment. With installer’s guide, you can configure SMTP server. Once you finished, you will see information as follows in the email.yml file under redmine/config folder.

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com
    authentication: :login
    user_name: [username]@gmail.com
    password: [password]

development:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com
    authentication: :login
    user_name: [username]@gmail.com
    password: [password]

However, you should add following line to enable TLS, which is required by Gmail service.

enable_starttls_auto: true

And finally, the configuration should look like this

production:
  delivery_method: :smtp
  smtp_settings:
    enable_starttls_auto: true
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com
    authentication: :login
    user_name: [username]@gmail.com
    password: [password]

development:
  delivery_method: :smtp
  smtp_settings:
    enable_starttls_auto: true
    address: smtp.gmail.com
    port: 587
    domain: smtp.gmail.com
    authentication: :login
    user_name: [username]@gmail.com
    password: [password]

UPDATED: changed nable_starttls_auto to enable_starttls_auto pointed out by stephane.