File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
1717fi
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
You can’t perform that action at this time.
0 commit comments