Redmine EMAIL /SMTP 服务器设置

参考:http://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 >管理员登陆 > 管理 > 配置 > 邮件通知 >页面底部:发送测试邮件。将会发送邮件到你目前登陆的用户邮箱中。

 

您还可以在这个页面中进行邮件内容的配置,包括邮件头,邮件签名等。

您还可以在这个页面中选择需要发送邮件通知的动作。

posted on 2011-09-23 08:58  Peter Zhang  阅读(11023)  评论(0编辑  收藏  举报