Skip to content

Commit 20d49e3

Browse files
authored
Fix hestiacp#3599 Disable SMTPUTF8 (hestiacp#3603)
* Create user account in correct folder * Disable SMTPUTF8 for exim
1 parent 32a0355 commit 20d49e3

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

bin/v-add-mail-account

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
9090
fi
9191

9292
# Create mail account folder (mailbox)
93-
mkdir $HOMEDIR/$user/mail/$domain/$account
94-
chown $user:mail $HOMEDIR/$user/mail/$domain/$account
95-
chmod 700 $HOMEDIR/$user/mail/$domain/$account
93+
mkdir $HOMEDIR/$user/mail/$domain_idn/$account
94+
chown $user:mail $HOMEDIR/$user/mail/$domain_idn/$account
95+
chmod 700 $HOMEDIR/$user/mail/$domain_idn/$account
9696

9797
#----------------------------------------------------------#
9898
# Hestia #

bin/v-delete-mail-account

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
6060
sed -i "/^$account:/d" $HOMEDIR/$user/conf/mail/$domain/accounts
6161
sed -i "/^$account$/d" $HOMEDIR/$user/conf/mail/$domain/fwd_only
6262
sed -i "/^$account@$domain_idn:/d" $HOMEDIR/$user/conf/mail/$domain/limits
63-
rm -rf $HOMEDIR/$user/mail/$domain/$account
63+
rm -rf $HOMEDIR/$user/mail/$domain_idn/$account
6464
fi
6565

6666
#----------------------------------------------------------#

install/deb/exim/exim4.conf.4.94.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_environment = <; PATH=/bin:/usr/bin
1515
keep_environment =
1616
disable_ipv6 = true
1717

18+
smtputf8_advertise_hosts =
1819
domainlist local_domains = dsearch;/etc/exim4/domains/
1920
domainlist relay_to_domains = dsearch;/etc/exim4/domains/
2021
hostlist relay_from_hosts = 127.0.0.1

install/deb/exim/exim4.conf.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ add_environment = <; PATH=/bin:/usr/bin
1515
keep_environment =
1616
disable_ipv6 = true
1717

18+
smtputf8_advertise_hosts =
1819
domainlist local_domains = dsearch;/etc/exim4/domains/
1920
domainlist relay_to_domains = dsearch;/etc/exim4/domains/
2021
hostlist relay_from_hosts = 127.0.0.1

install/rpm/exim/exim.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_environment = <; PATH=/bin:/usr/bin
1313
keep_environment =
1414
disable_ipv6 = true
1515

16+
smtputf8_advertise_hosts =
1617
domainlist local_domains = dsearch;/etc/exim/domains/
1718
domainlist relay_to_domains = dsearch;/etc/exim/domains/
1819
hostlist relay_from_hosts = 127.0.0.1

install/upgrade/versions/1.8.0.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ if [ "$IMAP_SYSTEM" = "dovecot" ]; then
2929
fi
3030
fi
3131

32+
if [ "$MAIL_SYSTEM" = "exim4" ]; then
33+
echo "[ * ] Disable SMTPUTF8 for Exim for now"
34+
if grep -qw "^smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template 2> /dev/null; then
35+
sed -i "/^domainlist local_domains = dsearch;\/etc\/exim4\/domains\/i smtputf8_advertise_hosts =" /etc/exim4/exim4.conf.template
36+
fi
37+
fi
38+
3239
# Apply the update for existing users to enable the "Enhanced and Optimized TLS" feature
3340
echo '[ * ] Enable the "Enhanced and Optimized TLS" feature...'
3441

0 commit comments

Comments
 (0)