/usr/sbin/dovecot-mkcert.sh

mkdir -p /var/log/dovecot

message " "
message "${MESSAGE_COLOR}If it's your first dovecot install, you need to edit and rename /etc/dovecot-openssl-example.cnf to /etc/dovecot-openssl.cnf."
message " "
message "Then you may need to regenerate ssl key and certificate (rm /etc/ssl/certs/imapd.pem /etc/ssl/private/imapd.pem and run mkcert.sh again). ${DEFAULT_COLOR}"
message " "

if [ ! -e /etc/dovecot.conf ]; then
  message "${MESSAGE_COLOR}Edit and rename /etc/dovecot-example.conf to /etc/dovecot.conf and run 'telinit run smgl-dovecot start' to start dovecot. ${DEFAULT_COLOR}"
fi
