User Tools

Site Tools


Gmail configuration for redmine on Ubuntu

To install redmine, use

sudo apt-get install redmine

To config redmine to use gmail to send out emails

  1. In the redmine folder /usr/share/redmine/config, copy configuration.yml.example to configuration.yml
  2. Edit the configuration.yml file to add the end of the file (Note the indentations, spaces before each line, do matter)
         delivery_method: :smtp
           enable_starttls_auto: true
           address: ""
           port: 587
           domain: "" # '' for GoogleApps
           authentication: :plain
           user_name: ""
           password: "xxxxxxxxx"

To config redmine to use gmail to send out emails

To automatically fetch emails every 5 minutes, use a cron job. Note to create redmineread and redineerror label in gmail first. If your password is complex enough, remember to quote them.

*/5 * * * * /usr/local/bin/ruby /usr/local/bin/rake -f /usr/share/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" ssl=SSL port=993 move_on_success=redmineread move_on_failure=redmineerror password='xxxxxx' unknown_user=accept no_permission_check=1 project=test allow_override=project,tracker
You could leave a comment if you were logged in.

Page Tools