Let's say you use a Bitnami Redmine

Let’s say you use a Bitnami Redmine (version 3.3.3) image hosted by AWS:


Environment:
  Redmine version                3.3.3.stable
  Ruby version                   2.3.4-p301 (2017-03-30) [x86_64-linux]
  Rails version                  4.2.7.1
  Environment                    production
  Database adapter               Mysql2                   
Redmine plugins:
  no plugin installed

Edit configureation.yml by adding the following config block:


bitnami@ip-172-31-21-183:~/apps/redmine/htdocs/config$ sudo vi configuration.yml

default:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: smtp.gmail.com
      port: 587
      domain: example.net
      authentication: :login
      user_name: "yourusername@gmail.com"
      password: "yourpassword"

If you want to use GMail/Google Apps and other TLS-requiring SMTP servers, you’ll have to add some TLS-related settings:


production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: 587
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "your_email@gmail.com" 
      password: "your_password"

Restart Redmine by the following command:


bitnami@ip-172-31-21-183:~$ sudo /opt/bitnami/ctlscript.sh restart

A little bit weird though, the Google account needs some tuning otherwise error occurs:
https://support.google.com/mail/answer/14257

You have to:
Login to your gmail account.
[1]Go to https://www.google.com/settings/security/lesssecureappsand Turn On this feature
[2]Go to https://accounts.google.com/DisplayUnlockCaptcha and click Continue

Then you can authenticate your Additional Email Address from your Gmail Account.

Useful link:
[1]http://www.redmine.org/boards/1/topics/37402
[2]https://community.bitnami.com/t/test-notification-mail-send-results-in-broken-error-message-error-sending-534-5-7-14/20719/6
[3]http://www.redmine.org/projects/redmine/wiki/EmailConfiguration

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值