Todo: DH-Parameter einbinden
Vorraussetzung: cyrus-imapd, ssl
gpasswd -a cyrus ssl-cert
/etc/imapd.conf
:
allowplaintext: no sasl_minimum_layer: 128 tls_cert_file: /etc/ssl/certs/servercert.pem tls_key_file: /etc/ssl/private/serverkey.pem tls_ca_file: /etc/ssl/certs/cacert.pem
/etc/init.d/cyrus2.2 restart
openssl s_client -starttls imap -connect localhost:143 . capability . login nutzer15 villa . list "" "*" . logout
imtest -t '' -a nutzer15 -w villa localhost . capability . list "" "*" . logout
/etc/imapd.conf
:
allowplaintext: no
Problem: cyradm kann kein SSL/TLS
Lösungsmöglichkeiten:
sed -r 's/^(allowplaintext:[[:space:]]*)no/\1yes/' /etc/imapd.conf > /etc/imapd.conf.localhost
/etc/cyrus.conf
:
imaplocal cmd="imapd -U 30 -C /etc/imapd.conf.localhost" listen="localhost:1430" prefork=0 maxchild=100