I am attempting to setup FOREMAN to email me reports/errors and the like. I
added my smtp host to the emaill.yaml file and added the :foreman_url ,
:administrator, and the :failed_report_email_notification information to
the settings.yaml.
In the cron log for FOREMAN I am seeing the following error-
rake aborted!
hostname does not match the server certificate
Tasks: TOP => reports:daily
(See full trace by running task with --trace)
if I use openssl to dump the subject of my server.key, I get my fqdn which
is also what I get with the output of "hostname" they match exactly.
Any ideas? Does ruby look for server crt in a different location than
/etc/pki/tls? I am not having much luck in running this to ground.
> I am attempting to setup FOREMAN to email me reports/errors and the
> like. I added my smtp host to the emaill.yaml file and added the
> :foreman_url , :administrator, and the :failed_report_email_notification
> information to the settings.yaml.
> In the cron log for FOREMAN I am seeing the following error-
>
> rake aborted!
> hostname does not match the server certificate
>
> Tasks: TOP => reports:daily
> (See full trace by running task with --trace)
Using --trace might indicate the rough area of code that this error is
coming from. I would expect that it's from SMTP with TLS given that
you've configured an SMTP server.
> if I use openssl to dump the subject of my server.key, I get my fqdn
> which is also what I get with the output of "hostname" they match exactly.
> Any ideas? Does ruby look for server crt in a different location than
> /etc/pki/tls? I am not having much luck in running this to ground.
Not sure which server certificate you're referring to, but it's likely
to be the certificate of the SMTP server rather than of the web UI or
anything.
Check that the hostname you've specified in email.yaml matches the SSL
certificate presented by the SMTP server.
You can specify "enable_starttls_auto: false" in email.yaml under
smtp_settings to disable automatic TLS negotiation.