Skip to content

Instantly share code, notes, and snippets.

@necrolyte2
Created March 3, 2016 13:26
Show Gist options
  • Save necrolyte2/14f402781245d930843e to your computer and use it in GitHub Desktop.
Save necrolyte2/14f402781245d930843e to your computer and use it in GitHub Desktop.
Examples for redmine email setup
# config/configuration.yaml
# After you change this file you need to restart apache/passenger
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps
authentication: :plain
user_name: "email@gmail.com"
password: "gmailpassword"
# Here is a crontab entry that you can use as template to receive email updates for issues
# Depending on how redmine is installed you may or may not need the rvm.sh and bundle portion
*/5 * * * * cd /var/www/redmine; . /etc/profile.d/rvm.sh; bundle exec rake redmine:email:receive_imap RAILS_ENV="production" port=993 ssl=true host=imap.gmail.com username=email@gmail.com password=gmailpassword > email_import.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment