Sync Repos finish with warning hostname does not match the server certificate

This is happening because the following:


Actions::Katello::Repository::ErrataMail
Input:
{"repo"=>4, "last_updated"=>"2015-10-17 02:20:18 +1300", "locale"=>"en"}
Output:
{}
Exception:
OpenSSL::SSL::SSLError: hostname does not match the server certificate
 
As we can see the sync of repos is failed because the errata mail can't be send it
to resolve this issue we need to configure our email.yml
 
# cat /etc/foreman/email.yaml 
# Outgoing email settings

production:
  delivery_method: :smtp
  smtp_settings:
    address: smtp.example.com
    port: 25
    enable_starttls_auto: false   << add this to avoid the connection via tls to 
                                     the mail server if you don't needed.

Comments

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra