|
@@ -2101,18 +2101,20 @@ function configure_imap {
|
2101
|
2101
|
chown root:dovecot /etc/ssl/certs/dovecot.*
|
2102
|
2102
|
chown root:dovecot /etc/ssl/private/dovecot.*
|
2103
|
2103
|
|
2104
|
|
- sed -i 's|#ssl = yes|ssl = yes|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
2104
|
+ sed -i 's|#ssl = yes|ssl = required|g' /etc/dovecot/conf.d/10-ssl.conf
|
2105
|
2105
|
sed -i 's|ssl_cert = </etc/dovecot/dovecot.pem|ssl_cert = </etc/ssl/certs/dovecot.crt|g' /etc/dovecot/conf.d/10-ssl.conf
|
2106
|
|
- sed -i 's|ssl_key = </etc/dovecot/private/dovecot.pem|/etc/ssl/private/dovecot.key|g' /etc/dovecot/conf.d/10-ssl.conf
|
|
2106
|
+ sed -i 's|ssl_key = </etc/dovecot/private/dovecot.pem|ssl_key = </etc/ssl/private/dovecot.key|g' /etc/dovecot/conf.d/10-ssl.conf
|
2107
|
2107
|
sed -i 's|#ssl_dh_parameters_length = 1024|ssl_dh_parameters_length = 1024|g' /etc/dovecot/conf.d/10-ssl.conf
|
2108
|
2108
|
sed -i 's/#ssl_prefer_server_ciphers = no/ssl_prefer_server_ciphers = yes/g' /etc/dovecot/conf.d/10-ssl.conf
|
2109
|
2109
|
echo "ssl_cipher_list = '$SSL_CIPHERS'" >> /etc/dovecot/conf.d/10-ssl.conf
|
2110
|
2110
|
|
2111
|
2111
|
|
|
2112
|
+ sed -i 's/#auth_verbose = no/auth_verbose = yes/g' /etc/dovecot/conf.d/10-logging.conf
|
|
2113
|
+
|
2112
|
2114
|
sed -i 's/#listen = *, ::/listen = */g' /etc/dovecot/dovecot.conf
|
2113
|
2115
|
sed -i 's/#disable_plaintext_auth = yes/disable_plaintext_auth = no/g' /etc/dovecot/conf.d/10-auth.conf
|
2114
|
2116
|
sed -i 's/auth_mechanisms = plain/auth_mechanisms = plain login/g' /etc/dovecot/conf.d/10-auth.conf
|
2115
|
|
- sed -i 's|# mail_location = maildir:~/Maildir| mail_location = maildir:~/Maildir:LAYOUT=fs|g' /etc/dovecot/conf.d/10-mail.conf
|
|
2117
|
+ sed -i 's|mail_location = mbox:~/mail:INBOX=/var/mail/%u|mail_location = maildir:~/Maildir:LAYOUT=fs|g' /etc/dovecot/conf.d/10-mail.conf
|
2116
|
2118
|
echo 'configure_imap' >> $COMPLETION_FILE
|
2117
|
2119
|
}
|
2118
|
2120
|
|