In order to have TLS work with SquirrelMail you need to start the configuration script at /usr/share/squirrelmail/config/conf.pl When the script opens choose “Server Settings” and then edit the IMAP port settings and change them from port 143 to port 993.
Full story »