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.

Advertisements

2 thoughts on “Configuring Gmail with Redmine

  1. Hi,
    you made a mistake : it’s “enable_starttls_auto” and not “nable_starttls_auto” (you drop the first character)
    I think you forget the cotes ” for the properties values ?
    And then should’nt it be “authentication: :plain” insteed of “authentication: :login” ?

    • Thanks stephane. I’ve updated the code accordingly. :)
      I’m using authentication: :login rather than plain simply because it works.
      And it should work even without quotes for property values as well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s