Net::IMAP allow both boolean and hash for ssl option
by using hash, SSLContext can be also configured
https://gitlab.com/gitlab-org/gitlab-ce/issues/32883