Frederick Cheung wrote in post #989578:
> Make sure that nothing is overwriting your Return-Path, I've come
> across mail servers that would rewrite that sort of stuff for you. (eg
> send a mail to an address you can read and check that the return path
> is the one you specified)

Ok, i just stripped out any extra headers (so i'm just setting to, from,
subject, and body) and then sent a mail with the from field set to my
yahoo email and the from field set to my gmail email.

Changing the addresses to protect the innocent, let's say that i set it
up as follows:

>>  From: [email protected]
>>  To: [email protected]
>>  Subject: "Hello dummy"
>>  Body: "Hello dummy\n"

So, i sent that out, recieved it in gmail and inspected it, to see the
following:

>>  Delivered-To: [email protected]
>>  Received: by 10.52.156.164 with SMTP id wf4cs20192vdb;
>>          Mon, 28 Mar 2011 05:29:27 -0700 (PDT)
>>  Received: by 10.227.163.133 with SMTP id a5mr3664403wby.73.1301315366670;
>>          Mon, 28 Mar 2011 05:29:26 -0700 (PDT)
>>  Return-Path: <[email protected]>
>>  Received: from uk1w2c0067.eechost.net (uk1w2c0067.eechost.net 
>> [217.69.46.42])
>>          by mx.google.com with ESMTP id 
>> u2si6545764wbd.60.2011.03.28.05.29.26;
>>          Mon, 28 Mar 2011 05:29:26 -0700 (PDT)
>>  Received-SPF: neutral (google.com: 217.69.46.42 is neither permitted nor
denied by best guess record for domain of [email protected])
client-ip=217.69.46.42;
>>  Authentication-Results: mx.google.com; spf=neutral (google.com: 217.69.46.42
is neither permitted nor denied by best guess record for domain of
[email protected]) [email protected]
>>  Received: from ec2 ([75.101.135.251]) by uk1w2c0067.eechost.net with 
>> Microsoft
SMTPSVC(6.0.3790.4675);
>>     Mon, 28 Mar 2011 13:30:03 +0100
>>  Received: from localhost ([127.0.0.1] helo=ir.charanga.com)
>>    by ec2 with esmtp (Exim 4.63)
>>    (envelope-from <[email protected]>)
>>    id 1Q4BZV-00032m-Fq
>>    for [email protected]; Mon, 28 Mar 2011 13:29:25 +0100
>>  Date: Mon, 28 Mar 2011 13:28:39 +0100
>>  From: [email protected]
>>  To: Dummy User <[email protected]>
>>  Subject: Hello dummy
>>  Mime-Version: 1.0
>>  Content-Type: text/plain; charset=utf-8
>>  Message-Id: <E1Q4BZV-00032m-Fq@ec2>
>>  Return-Path: [email protected]
>>  X-OriginalArrivalTime: 28 Mar 2011 12:30:03.0500 (UTC)
FILETIME=[DCE862C0:01CBED43]
>>
>>  Hello dummy

I tried again, setting the 'Return-Path' header when building the email, 
but the "Return-Path" header in the received mail is still set to be the 
same as the from address.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to