diff --git a/scripts/install b/scripts/install
index d166ef5baea4e99ef58aa869a63a8f8ae90074e0..111442464c95e3fda2ecd411f68a2734f20e158a 100755
--- a/scripts/install
+++ b/scripts/install
@@ -32,6 +32,7 @@ cat > ./data/config/config.php <<EOF
   'mail_smtpauthtype' => 'LOGIN',
   'mail_smtpname' => 'noreply.${URL}@${MAIL_DOMAIN}',
   'mail_smtppassword' => '${MAIL_PASS}',
+  'mail_smtpsecure' => 'tls',
   'memcache.local' => '\\OC\\Memcache\\APCu',
 );
 EOF