Wednesday, March 16, 2011

Configuring Redmine to use Gmail for Mail Delivery on Ubuntu

Configure Redmine for GMail

Create a "/etc/redmine/default/email.yml" file for your configuration as shown below.


production:
  delivery_method: :smtp

sendmail_settings:
    tls: true
    enable_starttls_auto: true
    address: "smtp.gmail.com"
    port: '587'
    domain: "gmail.com"
    authentication: :plain
    user_name: "username@gmail.com"
    password: "password"


Redmine can also read incoming email on this account to apply comments to existing issues as well as create new issues. For this, you must configure a cron job to run the following command.


rake -f /usr/share/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com port=993 ssl=true username=username@gmail.com password=password

1 comment:

  1. These tips are very simple and useful. Thank you for sharing with us. Keep up the good works...
    Visit:- Gmail Help

    ReplyDelete