I have a Rails app that's being a little contrary. When I execute this command:
[1] pry(main)> Jobs::TestEmail.new.execute(to_address: "destination@domain.tld")
It returns this error:
OpenSSL::SSL::SSLError: hostname "smtp.domain.tld" does not match the server certificate
from /usr/local/lib/ruby/2.5.0/openssl/ssl.rb:394:in `post_connection_check'
I don't have any trouble sending emails normally with this server via clients OR swaks
for example... It's only happening in Rails. Is there something extra that Rails is doing that I can disable or change the restriction level that will eliminate this issue?