If smtp_security is specified as starttls or ssl via epn.conf then EPN SMTP client doesn't perform server certificate validation and hostname checking.
smtp_security
starttls
ssl
In order to verify connections in smtplib you have to pass a context to SMTP.starttls() or SMTP_SSL():
SMTP.starttls()
SMTP_SSL()
context = ssl.create_default_context() smtp = smtplib.SMTP(...) smtp.starttls(context=context)
Thank you. This is proposed in https://github.com/freeipa/freeipa/pull/5257
master:
ipa-4-8:
Metadata Update from @rcritten: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.