From d518417d0b9274cc45a5fde597142f79867d3eeb Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Mon, 21 Oct 2024 09:17:42 +0300 Subject: [PATCH] fix(XFORWARD): Fixed client hostname processing. Fixes #147 --- lib/smtp-connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smtp-connection.js b/lib/smtp-connection.js index 66004e2..283cfba 100644 --- a/lib/smtp-connection.js +++ b/lib/smtp-connection.js @@ -1107,7 +1107,7 @@ class SMTPConnection extends EventEmitter { this.remotePort = value; break; case 'HELO': - value = Number(value) || 0; + value = (value || '').toString().toLowerCase(); this._server.logger.info( { tnx: 'xforward',