Server message: Can't connect to host "tcp://localhost:143"

Hello dear,
Could you please your cert.key and key.pem file? and check dovecot status.You can try reinstall your ssl cert for your domain and mailserver from control panel.