Skip to content

Commit 64cdb86

Browse files
authored
Merge pull request hestiacp#4389 from clarkhost/fix/smtp-relay-routing-issue
Fix SMTP Relay routing issue
2 parents 3c0e021 + c63d79b commit 64cdb86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/v-add-mail-domain-smtp-relay

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ port:$port
5454
user:$username
5555
pass:$password
5656
EOL
57+
rm $HOMEDIR/$user/conf/mail/$domain/ip
5758

5859
#----------------------------------------------------------#
5960
# Hestia #

func/rebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ rebuild_mail_domain_conf() {
635635
touch $HOMEDIR/$user/conf/mail/$domain/limits
636636

637637
# Setting outgoing ip address
638-
if [ -n "$local_ip" ]; then
638+
if [ -n "$local_ip" ] && [ "$U_SMTP_RELAY" != 'true' ]; then
639639
echo "$local_ip" > $HOMEDIR/$user/conf/mail/$domain/ip
640640
fi
641641

0 commit comments

Comments
 (0)