Skip to content

Commit 3abff58

Browse files
authored
Fix hestiacp#2078 news@domain.com goes to /var/spool/news (hestiacp#2079)
* Fix hestiacp#2078 news@domain.com goes to /var/spool/news Added require_files = ${local_part}:+${home}/.forward domains = +local_domains To userforward: block * Un comment rm part older upgrade script
1 parent bf1105d commit 3abff58

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
1616
- Fix an issue with sorting the update scripts when version goes higher then 1.x.10
1717
- Allow the use of multiple CAA records for domain. #2073
1818
- Add missing group (www-data) to migrate_phpmyadmin script #2077 @bet0x
19+
- Fix an issue where news@domain.com get forwarded to /var/spool/news
1920

2021
## [1.4.10] - Service release
2122

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ userforward:
269269
driver = redirect
270270
check_local_user
271271
file = $home/.forward
272+
require_files = ${local_part}:+${home}/.forward
273+
domains = +local_domains
272274
allow_filter
273275
no_verify
274276
no_expn

install/deb/exim/exim4.conf.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ userforward:
269269
driver = redirect
270270
check_local_user
271271
file = $home/.forward
272+
require_files = ${local_part}:+${home}/.forward
273+
domains = +local_domains
272274
allow_filter
273275
no_verify
274276
no_expn

install/upgrade/versions/1.4.11.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ if [ "$FIREWALL_SYSTEM" = "iptables" ]; then
1515
rm -f /usr/lib/networkd-dispatcher/routable.d/10-hestia-iptables /etc/network/if-pre-up.d/hestia-iptables
1616
$BIN/v-update-firewall
1717
fi
18+
19+
if [ -f "/etc/exim4/exim4.conf.template" ]; then
20+
test=$(grep 'require_files = ${local_part}:+${home}/.forward' /etc/exim4/exim4.conf.template)
21+
if [ -z "$test" ]; then
22+
echo "[ * ] Fix bug where email send to news@domain.com is handled by /var/spool/news"
23+
insert="\ require_files = \${local_part}:+\${home}/.forward\n\ domains = +local_domains"
24+
line=$(expr $(sed -n '/userforward/=' /etc/exim4/exim4.conf.template) + 1)
25+
sed -i "${line}i $insert" /etc/exim4/exim4.conf.template
26+
fi
27+
fi

0 commit comments

Comments
 (0)