Re: [mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Scott Mutter via mailop
Thanks.

It's actually the mailing script this client is using that is adding the
headers in this way.  I will have to get with the client to resolve this.

That answers that issue.

On Mon, Sep 18, 2023 at 9:53 AM Scott Mutter 
wrote:

> We're seeing an increase of errors from Google's mail servers complaining
> about multiple addresses in the From header.  But these messages do not
> have multiple addresses in the From headers or multiple From headers.
>
> Best I can tell, this seems to be caused by additional spaces in some of
> the headers, I suppose the header immediately following the From header.
>
> I'm not really sure who is at fault here.  Are leading spaces in mail
> headers allowed?
>
> Headers formatted as:
>
> From: Name 
>  MIME-Version: 1.0
>
> Generates this multiple addresses in From header error.
>
> Headers formatted as:
>
> From: Name 
> MIME-Version: 1.0
>
> Does not generate this error and messages are sent through.
>
> (In case the formatting of this message does not portray the issue
> correctly, there is a single space before MIME-Version: 1.0 in the message
> that generates this error)
>
> I'm not sure if a leading space in a message header is proper.  But I
> would also kind of lean towards this being a wrong regex being used by
> Google's mail servers to detect multiple addresses in the From header.
>
> Anybody else seeing this or have any insights?
>
>
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop


Re: [mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Bill Cole via mailop

On 2023-09-18 at 10:53:16 UTC-0400 (Mon, 18 Sep 2023 09:53:16 -0500)
Scott Mutter via mailop 
is rumored to have said:


I'm not sure if a leading space in a message header is proper.


Nope.

Any leading whitespace in a header line indicates that it is logically 
part of the prior header. You're generating broken email.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop


Re: [mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Larry Smith via mailop
Scott,

  Hmmm, I believe the leading space is how "folded" (extra long
header lines) are denoted so Google is likely viewing the MIME
line as an extension of the from line.

-- 
Larry Smith
lesm...@ecsis.net

On Mon September 18 2023 09:53, Scott Mutter via mailop wrote:
> We're seeing an increase of errors from Google's mail servers complaining
> about multiple addresses in the From header.  But these messages do not
> have multiple addresses in the From headers or multiple From headers.
>
> Best I can tell, this seems to be caused by additional spaces in some of
> the headers, I suppose the header immediately following the From header.
>
> I'm not really sure who is at fault here.  Are leading spaces in mail
> headers allowed?
>
> Headers formatted as:
>
> From: Name 
>  MIME-Version: 1.0
>
> Generates this multiple addresses in From header error.
>
> Headers formatted as:
>
> From: Name 
> MIME-Version: 1.0
>
> Does not generate this error and messages are sent through.
>
> (In case the formatting of this message does not portray the issue
> correctly, there is a single space before MIME-Version: 1.0 in the message
> that generates this error)
>
> I'm not sure if a leading space in a message header is proper.  But I would
> also kind of lean towards this being a wrong regex being used by Google's
> mail servers to detect multiple addresses in the From header.
>
> Anybody else seeing this or have any insights?
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop


Re: [mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Brandon Long via mailop
No, leading spaces in message headers are not allowed by the spec.

Nor are multiple From headers.

Multiple addresses in a single from header is technically allowed, but
Google has enforced against it since implementing DMARC nearly a decade ago.

A space in front of a header indicates a header continuation, which means
they are interpreting the next line as a continuation of the From header,
and I guess it happens to parse as another address or two.

And they don't use regular expressions to implement message parsing.  At
least when I looked, the email address parsing code was a bit more lenient
than the rfc, to try and cover emails that were obviously
not generated using rfc compliant software, but should be fairly accurate.
We also had a strict parser to be used in some cases, I don't recall if
it's used for this or not.

Brandon

On Mon, Sep 18, 2023 at 7:56 AM Scott Mutter via mailop 
wrote:

> We're seeing an increase of errors from Google's mail servers complaining
> about multiple addresses in the From header.  But these messages do not
> have multiple addresses in the From headers or multiple From headers.
>
> Best I can tell, this seems to be caused by additional spaces in some of
> the headers, I suppose the header immediately following the From header.
>
> I'm not really sure who is at fault here.  Are leading spaces in mail
> headers allowed?
>
> Headers formatted as:
>
> From: Name 
>  MIME-Version: 1.0
>
> Generates this multiple addresses in From header error.
>
> Headers formatted as:
>
> From: Name 
> MIME-Version: 1.0
>
> Does not generate this error and messages are sent through.
>
> (In case the formatting of this message does not portray the issue
> correctly, there is a single space before MIME-Version: 1.0 in the message
> that generates this error)
>
> I'm not sure if a leading space in a message header is proper.  But I
> would also kind of lean towards this being a wrong regex being used by
> Google's mail servers to detect multiple addresses in the From header.
>
> Anybody else seeing this or have any insights?
>
> ___
> mailop mailing list
> mailop@mailop.org
> https://list.mailop.org/listinfo/mailop
>
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop


Re: [mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Jaroslaw Rafa via mailop
Dnia 18.09.2023 o godz. 09:53:16 Scott Mutter via mailop pisze:
> Headers formatted as:
> 
> From: Name 
>  MIME-Version: 1.0
> 
> Generates this multiple addresses in From header error.

Because this header is equivalent to:

From: Name  MIME-Version: 1.0

and somehow Google interprets it as "multiple From:".
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop


[mailop] Google - Messages with multiple addresses in From: header are not accepted.

2023-09-18 Thread Scott Mutter via mailop
We're seeing an increase of errors from Google's mail servers complaining
about multiple addresses in the From header.  But these messages do not
have multiple addresses in the From headers or multiple From headers.

Best I can tell, this seems to be caused by additional spaces in some of
the headers, I suppose the header immediately following the From header.

I'm not really sure who is at fault here.  Are leading spaces in mail
headers allowed?

Headers formatted as:

From: Name 
 MIME-Version: 1.0

Generates this multiple addresses in From header error.

Headers formatted as:

From: Name 
MIME-Version: 1.0

Does not generate this error and messages are sent through.

(In case the formatting of this message does not portray the issue
correctly, there is a single space before MIME-Version: 1.0 in the message
that generates this error)

I'm not sure if a leading space in a message header is proper.  But I would
also kind of lean towards this being a wrong regex being used by Google's
mail servers to detect multiple addresses in the From header.

Anybody else seeing this or have any insights?
___
mailop mailing list
mailop@mailop.org
https://list.mailop.org/listinfo/mailop