Skip to content
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

Expose & override the SMTP envelope #477

Merged
merged 1 commit into from
May 14, 2013
Merged

Conversation

jeremy
Copy link
Collaborator

@jeremy jeremy commented Dec 11, 2012

The envelope From address defaults to return_path || sender || from_addrs.first.
The envelope To address defaults to destinations (to + cc + bcc).

Set them yourself using smtp_envelope_from and smtp_envelope_to.

The sendmail, smtp, and smtp_connection delivery methods no longer worry about return_path vs sender vs from; they just use the message.smtp_envelope_from address.

References #421 and rails/rails#5985

…verridden.

Envelope From address defaults to return_path || sender || from_addrs.first.
Envelope To address defaults to destinations (to + cc + bcc).

Updates all delivery methods to rely on the SMTP envelope.

References mikel#421 and rails/rails#5985
@fiedl
Copy link

fiedl commented Apr 6, 2013

This works great, thanks!

+1 for pulling this into master

@mikel mikel merged commit 4875bc2 into mikel:master May 14, 2013
@mikel
Copy link
Owner

mikel commented May 14, 2013

Looks good, thanks Jeremy, merged.

@jeremy jeremy deleted the smtp-envelope branch May 14, 2017 20:53
thegcat pushed a commit to planio-gmbh/mail that referenced this pull request Jan 26, 2018
Mail 2.6.6

Security:
* mikel#1097 – SMTP security: prevent command injection via To/From addresses. (jeremy)

Bugs:
* mikel#689 - Fix Exim delivery method broken by mikel#477 in 2.5.4. (jethrogb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants