Skip to content

Commit

Permalink
o/hmail: fix transaction notes setting bind_helo
Browse files Browse the repository at this point in the history
fixes #3362
  • Loading branch information
msimerson committed May 15, 2024
1 parent 027b1ba commit f68d993
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions outbound/hmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,8 @@ class HMailItem extends events.EventEmitter {
}

// Allow transaction notes to set outbound IP helo
if (!mx.bind_helo){
if (this.todo.notes.outbound_helo) {
mx.bind_helo = this.todo.notes.outbound_helo;
}
else {
mx.bind_helo = net_utils.get_primary_host_name();
}
if (this.todo.notes.outbound_helo) {
mx.bind_helo = this.todo.notes.outbound_helo;
}

const host = mx.path ? mx.path : mx.exchange;
Expand Down

0 comments on commit f68d993

Please sign in to comment.