Header newline if helo differs

Bugs in eFa 4
Post Reply
nicola.piazzi
Posts: 388
Joined: 23 Apr 2015 09:45

Header newline if helo differs

Post 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
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Header newline if helo differs

Post by shawniverson »

nicola.piazzi
Posts: 388
Joined: 23 Apr 2015 09:45

Re: Header newline if helo differs

Post by nicola.piazzi »

fix will be in efa v5 ?
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Header newline if helo differs

Post 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.
nicola.piazzi
Posts: 388
Joined: 23 Apr 2015 09:45

Re: Header newline if helo differs

Post by nicola.piazzi »

line changed works perfectly
but i think that the problem was the provier that send an helo tht differs from hostname
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Header newline if helo differs

Post by shawniverson »

It is, but we shouldn't add two Received: headers regardless of the mismatch.
Post Reply