dovecot container for IMAP server.
docker build --tag=docker .
Command for running dovecot docker container:
docker run -it -e MYHOSTNAME=localhost -e DEBUG_MODE \
-v $PASSWD=/etc/passwd --privileged \
-v $SHADOW=/etc/shadow \
dovecot
Environment variable DEBUG_MODE is used for debugging proposes from Postfix and dovecot point of views. If you want to share host users to container add -v $PASSWD and -v $SHADOW parameters with --privileged parameter.
Command for testing Dovecot container with
is openssl
.
Telnet has not to be used because of all communication is encrypted from the beginning.
Testing dovecot service with openssl
openssl s_client -starttls imap -connect localhost:143