This project is archived and is in readonly mode.

#6703 new
Yar Dmitriev

ActionMailer doesn't correctly use return-path header with sendmail deliver method

Reported by Yar Dmitriev | April 14th, 2011 @ 05:56 PM

Like #1842, but for sendmail delivery method rather than SMTP.

ActionMailer in 2-3-stable branch incorrectly processes the Return-Path header, making the email undeliverable.

If you specify:

headers     "return-path" => ""

in your mailer method, the following header will be actually sent:

Return-Path: <<>>

(note the double << and >>).

This is a dangerous bug, because the app will submit the email "successfully", only to be rejected by the majority of remote MTAs.

The attached patch solves the problem, in the way similar to how #1842 was solved.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket