Project

General

Profile

"hostname was not match with the server certificate"

Added by Thomas Jensen almost 6 years ago

When I try to send mails using my own mail server, I get the error mentioned here: https://www.redmine.org/projects/redmine/wiki/EmailConfiguration#Error-hostname-was-not-match-with-the-server-certificate

I am pretty sure it is because I use a self signed certificate. The email server has been set up using this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-e-mail-server-with-dovecot, and it is working perfect.

But redmine is not happy. The "enable_starttls_auto: false" solution does not fix it. It just give me another error (when I send a test email to myself from the admin panel in redmine): "Error sending mail" (in danish) (530 5.7.0 Must issue a STARTTLS command first )

Is there a way to make redmine happy with the self signed certificate?

I don't know if you need to know, but here it is...

email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: false
address: "rpix.dk"
port: 587
domain: "rpix.dk"
authentication: :plain
user_name: ***
password:
*

Environment:
Redmine version 3.3.1.stable
Ruby version 2.3.3-p222 (2016-11-21) [arm-linux-gnueabihf]
Rails version 4.2.7.1
Environment production
Database adapter SQLite
SCM:
Subversion 1.9.5
Cvs 1.12.13
Git 2.11.0
Filesystem
Redmine plugins:
no plugin installed