Welcome! Log In Create A New Profile

Advanced

Re: Passing the original client EHLO to the SMTP backend

kay
July 21, 2021 03:57PM
I've managed to get the desired result with a patch below:

--- a/src/mail/ngx_mail_proxy_module.c
+++ b/src/mail/ngx_mail_proxy_module.c
@@ -574,7 +574,7 @@

cscf = ngx_mail_get_module_srv_conf(s, ngx_mail_core_module);

- line.len = sizeof("HELO ") - 1 + cscf->server_name.len + 2;
+ line.len = sizeof("HELO ") - 1 + s->smtp_helo.len + 2;
line.data = ngx_pnalloc(c->pool, line.len);
if (line.data == NULL) {
ngx_mail_proxy_internal_server_error(s);
@@ -587,7 +587,7 @@
((s->esmtp || pcf->xclient) ? "EHLO " : "HELO "),
sizeof("HELO ") - 1);

- p = ngx_cpymem(p, cscf->server_name.data, cscf->server_name.len);
+ p = ngx_cpymem(p, s->smtp_helo.data, s->smtp_helo.len);
*p++ = CR; *p = LF;

if (pcf->xclient) {
Subject Author Posted

Passing the original client EHLO to the SMTP backend

kay July 21, 2021 07:12AM

Re: Passing the original client EHLO to the SMTP backend

kay July 21, 2021 03:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready