Connect#
openssl
openssl s_client -connect $target:imapscurl
curl -k "imaps://$target" --user user:p4ssw0rd -vLogin, read, send, everything#
Just… use a GUI app. Thunderbird especially sucks at trusting self signed certs, hence evolution
sudo apt install evolution