mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Fixing 'dh key too small' in dovecot
This commit is contained in:
parent
8d467b98ab
commit
022f3078f5
1 changed files with 11 additions and 0 deletions
|
@ -25,6 +25,17 @@ fi
|
||||||
# echo "1" > /usr/local/vesta/data/upgrades/show_changelog
|
# echo "1" > /usr/local/vesta/data/upgrades/show_changelog
|
||||||
# chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
# chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
||||||
|
|
||||||
|
# Fixing 'dh key too small' in dovecot
|
||||||
|
if [ -f "/var/log/dovecot.log" ] && [ -f "/etc/dovecot/conf.d/10-ssl.conf" ] && [ -f "/usr/share/dovecot/dh.pem" ]; then
|
||||||
|
if grep -q 'dh key too small' /var/log/dovecot.log; then
|
||||||
|
if ! grep -q 'dh.pem' /etc/dovecot/conf.d/10-ssl.conf; then
|
||||||
|
echo "== Fixing 'dh key too small' in dovecot"
|
||||||
|
echo "ssl_dh=</usr/share/dovecot/dh.pem" >> /etc/dovecot/conf.d/10-ssl.conf
|
||||||
|
systemctl restart dovecot
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Patching exim4.conf for: smtputf8_advertise_hosts
|
# Patching exim4.conf for: smtputf8_advertise_hosts
|
||||||
if [ "$release" -ge 11 ]; then
|
if [ "$release" -ge 11 ]; then
|
||||||
if [ -f "/etc/exim4/exim4.conf.template" ]; then
|
if [ -f "/etc/exim4/exim4.conf.template" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue