Skip to content

Commit e79e73f

Browse files
authored
smtputf8_advertise_hosts is not supported by deb10 (hestiacp#3652)
1 parent d47e1fe commit e79e73f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,10 @@ if [ "$exim" = 'yes' ]; then
17581758
sed -i "s/#CLAMD/CLAMD/g" /etc/exim4/exim4.conf.template
17591759
fi
17601760

1761+
if [ "$release" = 10 ]; then
1762+
sed -i "/^smtputf8_advertise_hosts =/d" /etc/exim4/exim4.conf.template
1763+
fi
1764+
17611765
chmod 640 /etc/exim4/exim4.conf.template
17621766
rm -rf /etc/exim4/domains
17631767
mkdir -p /etc/exim4/domains

install/upgrade/versions/1.8.0.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
2323
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'true'
2424
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
2525

26+
os_release="$(lsb_release -s -i | tr "[:upper:]" "[:lower:]")-$(lsb_release -s -r)"
27+
2628
if [ "$IMAP_SYSTEM" = "dovecot" ]; then
2729
if ! grep -qw "^extra_groups = mail$" /etc/dovecot/conf.d/10-master.conf 2> /dev/null; then
2830
sed -i "s/^service auth {/service auth {\n extra_groups = mail\n/g" /etc/dovecot/conf.d/10-master.conf
@@ -43,17 +45,20 @@ if [ -f /etc/fail2ban/jail.local ]; then
4345
fi
4446

4547
if [ "$MAIL_SYSTEM" = "exim4" ]; then
46-
echo "[ * ] Disable SMTPUTF8 for Exim for now"
47-
if ! grep -qw "^smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template 2> /dev/null; then
48-
sed -i "/^domainlist local_domains = dsearch;\/etc\/exim4\/domains/i smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template
48+
if [ "$os_release" != "debian-10" ]; then
49+
# Exclude Debian 10...
50+
echo "[ * ] Disable SMTPUTF8 for Exim for now"
51+
if ! grep -qw "^smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template 2> /dev/null; then
52+
sed -i "/^domainlist local_domains = dsearch;\/etc\/exim4\/domains/i smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template
53+
fi
4954
fi
5055
fi
5156

5257
# Apply the update for existing users to enable the "Enhanced and Optimized TLS" feature
5358
echo '[ * ] Enable the "Enhanced and Optimized TLS" feature...'
5459

5560
# Configuring global OpenSSL options
56-
os_release="$(lsb_release -s -i | tr "[:upper:]" "[:lower:]")-$(lsb_release -s -r)"
61+
5762
tls13_ciphers="TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384"
5863

5964
if ! grep -qw "^[hestia_openssl_sect]$" /etc/ssl/openssl.cnf 2> /dev/null; then

0 commit comments

Comments
 (0)