Project

General

Profile

Email configuration help needed

Added by dah woo about 9 years ago

Hello all, I was able to get redmine successfully installed on a virtual server and it's working great. The only issue I'm having now is trying to get email configured. more info below.

I have installed redmine on a few different systems. I've used bitnami for most of them. Setting email up with bitnami has never been an issue when it ran as an app on a mac OSX machine. I just recently installed redmine on a virtual linux server (CentOS 6 64bit). But I can not get email configured correctly. I even went as far as to take my same configuration.yml settings and pasted them into the linux version and still no luck.

Can someone lend me a hand getting this configured? Is there something in the linux server I need to adjust? It's a brand new install on a brand new server (nothing else installed)

settings below:


default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:
    delivery_method: :smtp
    smtp_settings:

      address: mail.mydomain.com
      port: 426
      domain: example.net
      authentication: :login
      user_name: no_reply@mydomain.com
      password: *password*

Here is the error I get when I try to send test email from redmine:

'An error occurred while sending mail (hostname does not match the server certificate)'

Any help will be greatly appreciated!


Replies (2)

RE: Email configuration help needed - Added by Martin Denizet (redmine.org team member) about 9 years ago

Hello,

The error you get is quite clear:

hostname does not match the server certificate

It means that the software is expecting to connect a server with a valid certificate for the domain mail.xxxxx.com instead the certificate has been issued for another domain. This is a security feature that prevents you from a man in the middle attack.

You can check the domain for which the certificate was issued with a command such as:

openssl s_client -connect mail.xxxxx.com:426

Then you can replace the address mail.xxxxx.com from your config with the actual domain for which the certificate is valid.
Of course, before that you need to check it is indeed the server you which to connect to.

Cheers,

RE: Email configuration help needed - Added by dah woo about 9 years ago

That did the trick.. thanks!

    (1-2/2)