Fix OpenSSL hostname mismatch issue with mailer