Dovecot guide:
Test imaps:
echo | openssl s_client -connect <server-ip>:993
Lav certifikater:
openssl req -new -x509 -days 3650 -nodes -out /etc/pki/dovecot/certs/dovecot.pem -keyout /etc/pki/dovecot/private/dovecot.pem