Skip to content

Commit beb05ac

Browse files
authored
Allow ClientName@domain.com for login via Dovecot/Email (hestiacp#3204)
* Allow ClientName@domain.com for login * Run prettier
1 parent 676ad33 commit beb05ac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
disable_plaintext_auth = no
2-
auth_username_format = %u
2+
auth_username_format = %Lu
33
auth_verbose = yes
44
auth_mechanisms = plain login
55
!include auth-passwdfile.conf.ext

install/upgrade/versions/1.7.0.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ if [ -z "$(grep -e 'condition = ${lookup{$local_part@$domain}lsearch{/etc/exim4
4949
done
5050
fi
5151

52+
# Allow Email@domain.com for login
53+
if [ -f "/etc/dovecot/conf.d/10-auth.conf" ]; then
54+
sed -i "s/auth_username_format = %u/auth_username_format = %Lu/g" /etc/dovecot/conf.d/10-auth.conf
55+
fi
56+
5257
# rename /var/run/xx to /run/
5358
for file in /etc/dovecot/dovecot.conf /etc/clamav/clamd.conf /etc/exim/exim.conf.template /etc/logrotate.d/apache2 /etc/logrotate.d/nginx /etc/mysql/my.cnf /etc/nginx/nginx.conf; do
5459
if [ -f "$file" ]; then

0 commit comments

Comments
 (0)