We are hosting our Drupal 8 site on a FreeBSD 10.3 server. That server is managed by another company so we don't have access to root. They are also giving minimal answers so I'm trying to find more information about this issue before getting back to them.
Problem is that longer emails are sent back from Google because the 'from' field is split.

<hannes.kirsman@wunder.io>: host aspmx.l.google.com[64.233.163.26] said:
    550-5.7.1 [185.7.252.97      13] Messages with multiple addresses in From:
    550 5.7.1 header are not accepted. c63si781792lfe.242 - gsmtp (in reply to
    end of DATA command)

Final-Recipient: rfc822; hannes.kirsman@wunder.io
Original-Recipient: rfc822;hannes.kirsman@wunder.io
Action: failed
Status: 5.7.1
Remote-MTA: dns; aspmx.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [185.7.252.97      13] Messages with multiple
    addresses in From: 550 5.7.1 header are not accepted. c63si781792lfe.242 -
    gsmtp


---------- Forwarded message ----------
From: "Eesti Kaubandus-Tööstuskoda <kristo.vint@wund"@atria.elkdata.ee, er.io>@atria.elkdata.ee
To: hannes.kirsman@wunder.io
Cc:
Bcc:
Date: Fri, 24 Mar 2017 09:12:19 +0200 (EET)
Subject: [Küsi lisa] test5
Hannes Kirsman (not verified) (hkirsman@gmail.com) sent a message using the
contact form at

From different documentations I see this is how it should suppose to work. There's size limit and characters should be latin. In our case we have some special characters in the 'from' field so the headers are also encoded to mime. This is the code that does the splitting https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Unic...

Locally my MailHog is getting all the email correctly. These are the headers:

Content-Transfer-Encoding: 8Bit
Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
From: =?UTF-8?B?RWVzdGkgS2F1YmFuZHVzLVTDtsO2c3R1c2tvZGEgPGtyaXN0by52aW50QHd1bmQ=?= =?UTF-8?B?ZXIuaW8+?=
MIME-Version: 1.0
Message-ID: zLXStg0HJsdjm3puvH4Lr4FVTKNNKLnJ0APSbxCRP7c=@mailhog.example
Received: from localhost by mailhog.example (MailHog)
          id zLXStg0HJsdjm3puvH4Lr4FVTKNNKLnJ0APSbxCRP7c=@mailhog.example; Fri, 24 Mar 2017 11:44:16 +0200
Return-Path: <kristo.vint@wunder.io>
Sender: kristo.vint@wunder.io
Subject: =?UTF-8?B?W0vDvHNpIGxpc2FdIHRlc3QxMA==?=
To: hannes.kirsman@wunder.io
X-Mailer: Drupal

Tere!

What do you think is going on here?

Comments

hkirsman created an issue. See original summary.

cilefen’s picture

cilefen’s picture

RKopacz’s picture

I am also seeing this on an instance of Drupal 7. Will post shortly as a separate issue.

liam morland’s picture

This looks like a duplicate of #2717965: Site name is not UTF-8 encoded in email headers. Please try the latest patch in that issue.

Version: 8.2.7 » 8.2.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.2.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Status: Active » Closed (duplicate)

Going to close this as there was no update since #2717965: Site name is not UTF-8 encoded in email headers was suggested as a duplicate.