Skip to content

Mailer uses return-path as sending address when communicating with SMTP server #60527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Bilge opened this issue May 24, 2025 · 2 comments
Open

Comments

@Bilge
Copy link
Contributor

Bilge commented May 24, 2025

Symfony version(s) affected

6.4.21

Description

The remote SMTP server will be told the message comes from the return-path address, not the from address (unless return-path is not set).

How to reproduce

framework:
  mailer:
    headers:
      from: Foo <foo@bar.com>
      return-path: bounces@bar.com

Possible Solution

Use from header instead.

Additional Context

No response

@stof
Copy link
Member

stof commented May 24, 2025

Which transport are you using ?

@Bilge
Copy link
Contributor Author

Bilge commented May 24, 2025

  • Prod: native://default, which uses BusyBox v1.37.0 sendmail.
  • Dev: smtp://localhost:1025 (MailCatcher).

Both environments exhibit the same behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants