0

我最近将 Redmine 从 2.2.x 升级到了 2.3.0。起初看起来升级顺利且成功,但我的经理注意到升级后她没有收到任何电子邮件。我尝试从电子邮件设置页面发送测试电子邮件并收到以下错误:

An error occurred while sending mail (uninitialized constant OpenSSL::SSL::VERIFY_OPENSSL)

gem 来自我的 configuration.yml

default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: '192.168.10.211'
      port: 25
      domain: 'mydomain.com'
      openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE

我们有一个对内部网络开放的本地邮件中继,并且此配置在 Redmine 的先前版本中运行良好。我已经验证我可以到达服务器并且可以通过 telnet 发送电子邮件,因此中继正在接受来自服务器的电子邮件。问题似乎出在 Redmine / ruby​​ 中。

其他可能有用的细节:

Ruby 1.8.7
RubyGems 1.8.25
actionmailer (3.2.13, 3.2.11)

免责声明:我是一个 PHP 人,所以如果您需要更多信息,请告诉我,我会尝试追踪它。

4

2 回答 2

1

在尝试了一些配置设置并阅读了此问题后,我找到了解决问题的方法。

我最终得到了这个:

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: '192.168.10.211'
      port: 25
      domain: 'mydomain.com'
      enable_starttls_auto: false
      #openssl_verify_mode: 'none'

从上面的配置中,我注释掉了 openssl_verify_mode 并将 enable_starttls_auto 设置为 false。这似乎让我重新振作起来。

于 2013-03-27T17:19:29.350 回答
0

当我同时使用两者时,我的 enable_starttls_auto: false工作openssl_verify_mode: 'none'

于 2014-08-08T12:27:36.920 回答