Wrong sender name using Postfix > GMail rejected Mail

Created on 30 September 2022, over 2 years ago
Updated 8 October 2023, over 1 year ago

Problem/Motivation

During sending mails on a Plesk Server with Postfix, I recognized that my "Drupal registration mails" have been rejected from GMail.

Steps to reproduce

I have a multi site setup on a Plesk Server with several different domain names. Postfix is using a default sender name and not the configured mail name on the website due to a missing "Return-Path"-Header.

In the "MimeMailFormatHelper.php" the header "Return-Path" is changed from default_from to from if from is configured.
The problem is, that from is not an E-Mail address. It's a sender name like a company name or website name.
But the "Return-Path" in the header needs to be an E-Mail address.

Proposed resolution

I created a patch to solve the problem by using the default_from value.

Remaining tasks

Please Review and comment. If ok please consider the fix in the next release.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Closed: duplicate

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany eueco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024