Skip to content

Commit 04e3297

Browse files
authored
Fix hestiacp#3496 Fix issue with Sieve and SMTP relay (hestiacp#3581)
1 parent 90006d4 commit 04e3297

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

install/common/dovecot/sieve/90-sieve.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,7 @@ plugin {
205205
# Enables showing byte code addresses in the trace output, rather than only
206206
# the source line numbers.
207207
#sieve_trace_addresses = no
208-
}
208+
209+
# This setting determines whether vacation messages are sent with the SMTP MAIL FROM envelope address set to the recipient address of the Sieve script owner.
210+
sieve_vacation_send_from_recipient = yes
211+
}

install/upgrade/versions/1.8.0.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'false'
2525

2626
if [ "$IMAP_SYSTEM" = "dovecot" ]; then
2727
if ! grep -qw "^extra_groups = mail$" /etc/dovecot/conf.d/10-master.conf 2> /dev/null; then
28-
sed -i "s/^service auth {/service auth {\n extra_groups = mail\n/g" /etc/dovecot/conf.d/10-master.conf
28+
sed -i "s/^service auth {/service auth {\n extra_groups = mail/g" /etc/dovecot/conf.d/10-master.conf
29+
fi
30+
31+
if [ -f /etc/dovecot/conf.d/90-sieve.conf ]; then
32+
if ! grep -qw "^sieve_vacation_send_from_recipient$" /etc/dovecot/conf.d/90-sieve.conf 2> /dev/null; then
33+
sed -i "s/^}/ # This setting determines whether vacation messages are sent with the SMTP MAIL FROM envelope address set to the recipient address of the Sieve script owner.\n sieve_vacation_send_from_recipient = yes\n}/g" /etc/dovecot/conf.d/90-sieve.conf
34+
fi
2935
fi
3036
fi
3137

0 commit comments

Comments
 (0)