Skip to content

Commit

Permalink
update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Oct 2, 2024
1 parent 9af3601 commit cda0a43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased


- fix(outbound): in outbound hook_delivered, when mx.exchange contains
an IP, use mx.from_dns

### [3.0.5] - 2024-09-27

#### Fixed
Expand Down
8 changes: 4 additions & 4 deletions outbound/hmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,10 @@ class HMailItem extends events.EventEmitter {
if (success) {
const reason = response.join(' ');

let hostname = mx.exchange
if (net.isIP(hostname) && mx.from_dns && !net.isIP(mx.from_dns)) {
hostname = mx.from_dns
}
let hostname = mx.exchange
if (net.isIP(hostname) && mx.from_dns && !net.isIP(mx.from_dns)) {
hostname = mx.from_dns
}

self.delivered(host, port, (mx.using_lmtp ? 'LMTP' : 'SMTP'), hostname,
reason, ok_recips, fail_recips, bounce_recips, secured, authenticated);
Expand Down

0 comments on commit cda0a43

Please sign in to comment.