Redmine EMAIL /SMTP 服務器設置
原文:https://www.cnblogs.com/fromchaos/archive/2011/09/23/2185759.html
參考:https://www.redmine.org/projects/redmine/wiki/EmailConfiguration
1、需SMTP登陸驗證的電子郵件配置,在configuration.yml增加
# Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
address: smtp.example.net
port: 25
domain: example.net
authentication: :login
user_name: redmine@example.net
password: redmine
development:
delivery_method: :smtp
smtp_settings:
address: 127.0.0.1
port: 25
domain: example.net
authentication: :login
user_name: redmine@example.net
password: redmine
2、如果你想使用TLS-requiring SMTP servers,必須設置TLS-related settings
production:
delivery_method: :smtp
smtp_settings:
tls: true
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"
3、不需要登陸驗證的設置
production:
delivery_method: :smtp
smtp_settings:
address: smtp.knology.net
port: 25
domain: cybersprocket.com
authentication: :none
測試是否配置成功:
打開Redmine >管理員登陸 > 管理 > 配置 > 郵件通知 >頁麵底部:發送測試郵件。將會發送郵件到你目前登陸的用戶郵箱中。
您還可以在這個頁麵中進行郵件內容的配置,包括郵件頭,郵件簽名等。
您還可以在這個頁麵中選擇需要發送郵件通知的動作。
最後更新:2017-04-02 06:52:08