Redmine的安装环境为CentOS5.5/nginx/passenger
配置为:
passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17;
passenger_ruby /usr/local/bin/ruby;
#rails server
server {
listen 80;
server_name projects.cnshangquan.org;
root /home/www/rorsite/redmine-2.1.2/public;
passenger_enabled on;
}
cd 到redmine路径下,
vi config/configuration.yml
其中邮件发送部分配置如下:
default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.exmail.qq.com
port: 25
domain: exmail.qq.com
authentication: :login
user_name: "project@yourdomain.com"
password: "xxxx"
如果遇到500错误或者发送邮件超时, 请检查邮件帐号是否可用, 以及配置信息是否正确, 比如对于SSL, 端口不是25
如想查看邮件发送相关详细错误信息, 可以打开如下配置选项:
1. vi /config/environments/production.rb
2. Comment out the line config.action_mailer.logger = nil
3. Change this line config.action_mailer.raise_delivery_errors = true