Send Redmine 1.3.2 email notifications through GMail

Published 17 April 2012 under ruby, redmine, gmail, how to

Setting up Redmine to send email notifications through GMail is straightforward once you know how!

First you will need a GMail account set up through which the emails will be sent. We setup redmine@afterthoughtsoftware.com in our Google Apps but a normal GMail account should work just as well.

Next, put the following in your config/configuration.yml:

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      tls: true
      address: smtp.gmail.com
      port: 587
      domain: smtp.gmail.com
      authentication: :plain
      user_name: "your@gmail.com"
      password: "your_password"

At this point if you were to restart the web server and attempt to send an email notification you would get the following error:

530 5.7.0 Must issue a STARTTLS command first.

The solution is to install the plugin from here. To do that go to your redmine web server directory and issue the following command:

./script/plugin install git://github.com/collectiveidea/action_mailer_optional_tls.git

After that restart your web server and check that email notifications are working by going to Administration > Settings > Email notifications and click on the 'Send a test email' at the bottom of the page.

Comments

blog comments powered by Disqus