---
title: "redmine邮件配置"
author: "asgab"
date: "2013-05-13T16:47:43Z"
tags: []
categories: ["开源软件"]
slug: "redmine"
draft: false
lastmod: "2013-05-13T16:47:43Z"
id: 1867990
url: "https://asgab.iteye.com/blog/1867990"
---

# [Redmine EMAIL /SMTP 服务器设置](http://www.cnblogs.com/fromchaos/archive/2011/09/23/2185759.html)

参考：[http://www.redmine.org/projects/redmine/wiki/EmailConfiguration](http://www.redmine.org/projects/redmine/wiki/EmailConfiguration "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 &gt;管理员登陆 &gt; 管理 &gt; 配置 &gt; 邮件通知 &gt;页面底部:发送测试邮件。将会发送邮件到你目前登陆的用户邮箱中。

 

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

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