Skip to content

Commit 46cf80f

Browse files
manuelseroljaapmarcus
andauthored
Fix Exim4 fastopen with Gmail services (hestiacp#2730)
* Fix Exim4 fastopen with Gmail services On Debian 11 when sending emails with attachments to gmail accounts, they got stuck on exim queue for a random period of time and sometimes they were not even being delivered * Update exim4 config for Debian 11 and Ubuntu 22.04 * Add upgrade script @myvesta for the fix Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent f6e9d8b commit 46cf80f

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ remote_smtp:
376376
dkim_private_key = DKIM_PRIVATE_KEY
377377
dkim_canon = relaxed
378378
dkim_strict = 0
379+
hosts_try_fastopen = !*.l.google.com
379380
interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
380381

381382
procmail:

install/deb/exim/exim4.conf.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ remote_smtp:
378378
dkim_private_key = DKIM_PRIVATE_KEY
379379
dkim_canon = relaxed
380380
dkim_strict = 0
381+
hosts_try_fastopen = !*.l.google.com
381382
interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
382383

383384
procmail:

install/upgrade/versions/1.6.3.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,10 @@ upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'yes'
2121
upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'yes'
2222
upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
2323

24+
if [ -f /etc/exim4/exim4.conf.template ]; then
25+
host=$(cat /etc/exim4/exim4.conf.template | grep hosts_try_fastopen);
26+
if [ -z "$host" ]; then
27+
echo "[ * ] Fix an issue with sending large attachments to Google / Gmail"
28+
sed -i '/dkim_strict = .*/a hosts_try_fastopen = !*.l.google.com' /etc/exim4/exim4.conf.template
29+
fi
30+
fi

0 commit comments

Comments
 (0)