Project

General

Profile

An error occurred while sending mail (hostname was not match with the server certificate)

Added by Quan Tong Anh over 12 years ago

My versions:

  Redmine version                          2.0.1.stable
  Ruby version                             1.8.7 (i386-linux)
  Rails version                            3.2.3
  Environment                              production
  Database adapter                         MySQL

configuration.yml:

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: 192.168.5.x
      port: 25
      tls: false
      enable_starttls_auto: false
      domain: "mydomain.vn" 
      authentication: :login
      user_name: "anonymous" 
      password: "pa$$w0rd" 
      openssl_verify_mode: 'none'

As you can see, I had tried to disable the TLS but it still doesn't work.

Moreover, my mail server's certificate does included the hostname in the CN:

Issuer: C=VN, ST=Hanoi, L=HN, O=x, OU=y, CN=mail.mydomain.vn/emailAddress=myemailaddr@mydomain.vn

What may be the cause of this?


Replies (3)

RE: An error occurred while sending mail (hostname was not match with the server certificate) - Added by Robert Van Vliet over 9 years ago

Finally found a solution that made SMTP through IIS possible:

default:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: localhost
      port: 25
      domain: domain.com
      authentication: :none
      enable_starttls_auto: false
      openssl_verify_mode: 'none'
    (1-3/3)