If you have an SMTP or IMAP server that has a self signed certifcate, you will need to make 2 file edits to prevent a connection failure.
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
paste this after
$options = [];
$options['ssl']['verify_peer'] = FALSE...