Ruby - Redmine 3.0.3

时间:2016-12-19 19:54:08

标签: ruby email redmine

我的redmine工作正常。但是,电子邮件通知无效。

我正在使用:

Environment:
Redmine version 3.0.3.stable
Ruby version 2.2.2-p95 (2015-04-13) [x86_64-linux]
Rails version 4.2.1
Environment production
Database adapter Mysql2
SCM:
Filesystem
Redmine plugins:
no plugin installed

configuration.yml:

default:
# Outgoing emails configuration (see examples above)
email_delivery:
delivery_method: :smtp
smtp_settings:
    address: "smtp.bsservices.com.br"
    port: 587
    domain: "smtp.bsservices.com.br"
    authentication: :login
    user_name: '<user>@bsservices.com.br'
    password: '<password>'
    openssl_verify_mode: 'none'

错误:

  

(权限被拒绝 - 连接(2)为&#34; smtp.bsservices.com.br&#34;端口587)

错误2:

  

App 6529 stderr:保存附件&#39; /var/www/redmine/files/2016/12/161223114939_app_creator.PNG' (79469字节)   App 6529 stderr:在18ms内完成500内部服务器错误(ActiveRecord:2.5ms)   App 6529 stderr:   App 6529 stderr:Errno :: EACCES(权限被拒绝@ rb_sysopen - /var/www/redmine/files/2016/12/161223114939_app_creator.PNG):   App 6529 stderr:app / models / attachment.rb:109:initialize' App 6529 stderr: app/models/attachment.rb:109:in打开&#39;   App 6529 stderr:app / models / attachment.rb:109:files_to_final_location' App 6529 stderr: app/controllers/attachments_controller.rb:90:in上传&#39;

我已将所有权限(777)授予该文件夹。

任何帮助?

1 个答案:

答案 0 :(得分:0)

问题的根本原因是Redmine无法连接到邮件服务器以实际发送邮件。这可能有多种原因之一:

  • 可能是您在操作系统上启用了SELinux但未授予Redmine连接到smtp服务器的权限。您可以尝试禁用SELinux来验证此理论。
  • 可能是您的服务器只能通过IPv6访问,因此无法通过其IPv4地址访问smtp服务器。
  • 可能存在阻止Redmine访问smtp服务器的防病毒或防火墙