Redmine error – hostname “localhost” does not match the server certificate

“An error occurred while sending mail (hostname “localhost” does not match the server certificate)” this was received while sending redmine test mail
The following setup in configuration.yml worked for me with the extra enable_starttls_auto: false

    delivery_method: :smtp
	address: localhost
	port: 25
	enable_starttls_auto: false

Also take the care to comment out in the bottom of configuration.yml the production section which overrides the default ones even if it’s just empty.

If even this does not help you try out the following in WHM if you have it. Go to Exim Configuration Editor and search for “Sender verification”. Switch it off. Save it.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

One Response to Redmine error – hostname “localhost” does not match the server certificate

  1. Daniam says:

    I fixed it in another way.

    In your config folder, in Application.rb, type the following line.

    config.action_mailer.smtp_settings ={enable_startssl_auto:false}

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + nine =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>