Option to ignore server certificate validity for SMTP resource

It would be nice to have the option to ignore if a SMTP server certificate is not valid or mismatched, mostly for testing, but for production as well.
Let me know if someone ever encountered this necessity.