Project

General

Profile

Bug #401

Redmine Error Sending Email

Added by Daniel Curtis almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/09/2014
Due date:
% Done:

100%

Estimated time:
0.10 h
Spent time:

Description

I encountered a problem with redmine where it would not send email. After checking the production.log I found the following error:

Email delivery error: hostname does not match the server certificate

It turns out I needed to add the following to the configuration.yml:

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: smtp.example.com
      port: 587
      domain: example.com
      authentication: :login
      user_name: "root@example.com" 
      password: "SuperSecretPassword" 
      openssl_verify_mode: 'none'

The last line openssl_verify_mode: 'none' is what relaxed the certificate checking.

Also available in: Atom PDF