"hostname was not match with the server certificate"

Added by Thomas Jensen over 1 year 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...

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

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