Permalink
Browse files

Swap order of EHLO/HELO and rDNS in Received header

  • Loading branch information...
1 parent abf4fd6 commit 3e718e32c7d2b8f15f0b1d6f90b8dc6de154c02e @smfreegard smfreegard committed Dec 17, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 connection.js
View
@@ -1095,10 +1095,11 @@ Connection.prototype.received_line = function() {
}
return [
'from ',
- // If no rDNS then use an IP literal here
+ this.hello_host, ' (',
+ // If there is no rDNS, then don't display it
((!/^(?:DNSERROR|NXDOMAIN)/.test(this.remote_info))
- ? this.remote_info : '[' + this.remote_ip + ']'),
- ' (', this.hello_host, ' [', this.remote_ip, ']) ',
+ ? this.remote_info + ' ' : ''),
+ '[', this.remote_ip, '])',
"\n\t",
'by ', config.get('me'), ' (Haraka/', version, ') with ', smtp,
' id ', this.transaction.uuid,

0 comments on commit 3e718e3

Please sign in to comment.