[debian-lan-devel] [debian-lan] 02/03: Enable SSL for dovecot imap server.
Andreas B. Mundt
andi at moszumanska.debian.org
Fri Dec 5 13:36:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
andi pushed a commit to branch master
in repository debian-lan.
commit be3e8fea35a643f9d1f171a308cbc38ad501e781
Author: Andreas B. Mundt <andi at debian.org>
Date: Fri Dec 5 13:46:43 2014 +0100
Enable SSL for dovecot imap server.
SSL has been disabled as default in dovecot 2.2.13-8.
---
fai/config/scripts/MAIL_SERVER/30-certs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fai/config/scripts/MAIL_SERVER/30-certs b/fai/config/scripts/MAIL_SERVER/30-certs
index 7235276..4f65929 100755
--- a/fai/config/scripts/MAIL_SERVER/30-certs
+++ b/fai/config/scripts/MAIL_SERVER/30-certs
@@ -40,6 +40,10 @@ if [ ! -f ${target}/$CONF ] ; then
$ROOTCMD openssl req -config $CONF -new -x509 -days 7000 -nodes -out $CERT -keyout $KEY
$ROOTCMD chmod 640 $KEY $CERT $CONF
$ROOTCMD chown root:dovecot $KEY $CERT
+ ## Switch on SSL:
+ $ROOTCMD sed -i -e "s/^ssl = no/ssl = yes/" \
+ -e "s/^#ssl_cert =/ssl_cert =/" \
+ -e "s/^#ssl_key =/ssl_key =/" /etc/dovecot/conf.d/10-ssl.conf
else
echo "${target}/$CONF exists, nothing done!"
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git
More information about the debian-lan-devel
mailing list