I had a similar problem on Prestashop 1.7.6.4. , with the error "Connection timed out" with particular SMTP settings. Clients such as thunderbird and claws work without problems. Tcpdump shows timeout trying to manage the TLS handshake.
Finally decided to use PHP-mail function instead of Swiftmailer:
- Install Postfix and configure it in relay mode https://www.linode.com/docs/guides/postfix-smtp-debian7
- Edit the php-config "sendmail_path = /usr/sbin/sendmail -t -i"
Some advantages are :
- Postfix is easier to test, using the command line and enabling options of debugging.
- Postfix has a lot of configurable options to accomplish with your SMTP server requirements postfix config
I just want to share another approach to solve it (less patiently), if you have a self-manage the server.