Page 1 of 1

Header newline if helo differs

Posted: 03 Nov 2021 14:57
by nicola.piazzi
I have this case that postfix produces this header in receiving mail :
Received: from mcpmr014msb.fastweb.it (Received: from mr014msb.fastweb.it (mr014msb.fastweb.it [85.18.95.103])
)
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(no client certificate requested)
by EFABACKUP.gruppocomet.it (MailScanner Milter) with SMTP id 4Hkp3D1Z60z3sN7lb
for nicola.piazzi@gruppocomet.it; Wed, 3 Nov 2021 14:46:48 +0100 (CET)


This is a maillog extract :
Nov 3 14:46:47 EFABACKUP postfix/smtpd[2634]: connect from mr014msb.fastweb.it[85.18.95.103]
Nov 3 14:46:48 EFABACKUP postfix/smtpd[2634]: Anonymous TLS connection established from mr014msb.fastweb.it[85.18.95.103]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
Nov 3 14:46:49 EFABACKUP postfix/cleanup[3710]: 4Hkp3D1Z60z3sN7lb: milter-discard: END-OF-MESSAGE from mr014msb.fastweb.it[85.18.95.103]: milter triggers DISCARD action; from=a.bisio@agenziachiesta.com to=nicola.piazzi@gruppocomet.it proto=ESMTP helo=<mcpmr014msb.fastweb.it>


It seems that host that connect mr014msb.fastweb.it[85.18.95.103] differs from helo name mcpmr014msb.fastweb.it and halo name have an entry in dns
So postfix produces a long amail with a ) that goes in a new line and then outlook became unreadable for this message :o

Re: Header newline if helo differs

Posted: 03 Nov 2021 15:44
by shawniverson

Re: Header newline if helo differs

Posted: 03 Nov 2021 15:55
by nicola.piazzi
fix will be in efa v5 ?

Re: Header newline if helo differs

Posted: 05 Nov 2021 14:41
by shawniverson
It will roll into v4 soon, just need to budget some time to get it pushed out. In the meantime, you are welcome to make the required change to /usr/sbin/MSMilter. The next update will will make it permanent.

Re: Header newline if helo differs

Posted: 05 Nov 2021 16:33
by nicola.piazzi
line changed works perfectly
but i think that the problem was the provier that send an helo tht differs from hostname

Re: Header newline if helo differs

Posted: 06 Nov 2021 14:49
by shawniverson
It is, but we shouldn't add two Received: headers regardless of the mismatch.