Project

General

Profile

How to accept Mailserver Certificate for E-Mail Notification

Added by Markus Wiedling over 12 years ago

Hello together,

in our company we want to use redmine. It's still running and working fine on an Ubuntu Server in our Office. We have our own mailserver in a data center and i want to send mail notifications using this mailserver. When I want to send a testmail, I get the failure note "An error occurred while sending mail (hostname was not match with the server certificate)".
That's my configuration.yml:

default:
email_delivery:
delivery_method: :smtp
smtp_settings:
tls: true
enable_starttls_auto: true
address: "smtpserver.mydomain.de"
port: 25
domain: "mydomain.de"
authentication: :plain
user_name: ""
password: "my_password"

Can anybody tell me what I have to do that it's working fine?

King regards,

crazysheep


Replies (3)

RE: How to accept Mailserver Certificate for E-Mail Notification - Added by Carl Hagström over 12 years ago

Hi!

I have the same problem. Anyone know what is wrong when you get "hostname was not match with the server certificate"?

/Carl

RE: How to accept Mailserver Certificate for E-Mail Notification - Added by Markus Wiedling over 12 years ago

I solved it :o)
Our mailserver doesn't force tls. You can use tls but haven't. So it's important that you didn't use tls in your configuration. Now my config looks that way:

default:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "smtpserver.mydomain.de"
port: 25
domain: "mydomain.de"
authentication: :plain
user_name: ""
password: "my_password"

So I didn't use that two parameters:
tls: true
enable_starttls_auto: true

That's all :o)

RE: How to accept Mailserver Certificate for E-Mail Notification - Added by Sumeet Pareek almost 12 years ago

I had the same error, but my mail server (postfix) was running from the same machine that I had redmine installed on. And there were no certificates or such on this machine. The below config did the trick for me -

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "localhost" 
      port: 25
      tls: false
      enable_starttls_auto: false
    (1-3/3)