From address erroneously set from x-original-to header
Reported by Alan Schmitt | December 26th, 2011 @ 05:32 PM
Here are the full headers that resulted in the email from address set to "aquamacs-devel@aquamacs.org" instead of my subscribed address "alan.schmitt@polytechnique.org" when I replied.
Return-Path: SRS0=mHLC=7F=aquamacs.org=aquamacs-devel-bounces@bounces.m4x.org
Received: from zfront1.inria.fr (LHLO zfront1.inria.fr) (193.51.193.147) by
zmbs2.inria.fr with LMTP; Sun, 25 Dec 2011 18:44:03 +0100 (CET)
Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82])
by zfront1.inria.fr (Postfix) with ESMTPS id 4B023B801C
for <aschmitt@zimbra.inria.fr>; Sun, 25 Dec 2011 18:44:57 +0100 (CET)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ag4CAPJg906BaB4jhWdsb2JhbABDm3aQPggiAQEBCgsLBRYlgXIBAQEDAQEBAQ8CJgYBBQoMEgwCAQEBAQIGAQEFBQsNHggIAwEaBQUMAQUBHAYTBR2HWAiZSgqLZYJrhAk/iHECBQuLIWMEjGeFdoIlinKDCz2Dew
X-IronPort-AV: E=Sophos;i="4.71,408,1320620400";
d="scan'208";a="136808531"
Received: from mx2.polytechnique.org ([129.104.30.35])
by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 25 Dec 2011 18:44:55 +0100
Received: by yuuai.polytechnique.org (Postfix)
id 09E67803286; Sun, 25 Dec 2011 18:44:55 +0100 (CET)
Delivered-To: alan.schmitt.1995@hruid.polytechnique.org
Received: from relay.andrew.cmu.edu (RELAY-02.ANDREW.CMU.EDU [128.2.10.85])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client did not present a certificate)
by mx2.polytechnique.org (Postfix) with ESMTPS id 89DAB803285
for <alan.schmitt@polytechnique.org>; Sun, 25 Dec 2011 18:44:54 +0100 (CET)
Received: from BRAEBURN.ANDREW.CMU.EDU (BRAEBURN.ANDREW.CMU.EDU [128.2.47.163])
by relay.andrew.cmu.edu (8.14.4/8.14.4) with ESMTP id pBPHiMZU032698;
Sun, 25 Dec 2011 12:44:22 -0500
X-Original-To: aquamacs-devel@aquamacs.org
Delivered-To: aquamacs-devel@aquamacs.org
Received: from mail-qw0-f42.google.com (mail-qw0-f42.google.com
[209.85.216.42])
by lists.aquamacs.org (Postfix) with ESMTP id CE2156519F32
for <aquamacs-devel@aquamacs.org>; Sun, 25 Dec 2011 17:44:18 +0000 (UTC)
Received: by qabj40 with SMTP id j40so6177903qab.8
for <aquamacs-devel@aquamacs.org>; Sun, 25 Dec 2011 09:44:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
h=content-type:mime-version:subject:from:in-reply-to:date
:content-transfer-encoding:message-id:references:to:x-mailer;
bh=3B6OQqsCJqPiOs78KrVoK4Gh7t9ddmxGw5gPvBtKOjc=;
b=XD3FhplmDqQXnzhPqcA0SxCvnQEd3FnFEJHwvDgCgXI4+oZbibmr4g4UX/MF0yNlSx
jhtdZky2wnhwet3Lj0mRhDjSHmQKguZrRQ1ScLhPlYjju4nETaL7Xqkt22XrJjP/Rw+Q
d+UAaP0F/+yWYeLQRnRXP6pkFXk9Ii1RThrpY=
Received: by 10.224.44.138 with SMTP id a10mr7420348qaf.3.1324835058189;
Sun, 25 Dec 2011 09:44:18 -0800 (PST)
Received: from ?IPv6:::1? (BRAEBURN.ANDREW.CMU.EDU. [128.2.47.163])
by mx.google.com with ESMTPS id dj9sm38739284qab.18.2011.12.25.09.44.16
(version=TLSv1/SSLv3 cipher=OTHER);
Sun, 25 Dec 2011 09:44:17 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1251.1)
From: David Reitter <david.reitter@gmail.com>
In-Reply-To: <E7BBB5C9-0323-425F-911F-3B4B049296B3@polytechnique.org>
Date: Sun, 25 Dec 2011 18:44:14 +0100
Message-Id: <E94B27CB-942E-4434-ACDE-624C3E53C92C@gmail.com>
References: <E7BBB5C9-0323-425F-911F-3B4B049296B3@polytechnique.org>
To: Aquamacs Developers <aquamacs-devel@aquamacs.org>
X-Mailer: Apple Mail (2.1251.1)
Subject: Re: [Aquamacs-devel] Building aquamacs24 with no added package
X-BeenThere: aquamacs-devel@aquamacs.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: Aquamacs Developers <aquamacs-devel@aquamacs.org>
List-Id: Aquamacs Developers <aquamacs-devel.aquamacs.org>
List-Unsubscribe: <http://lists.aquamacs.org/mailman/options.cgi/aquamacs-devel>,
<mailto:aquamacs-devel-request@aquamacs.org?subject=unsubscribe>
List-Archive: <http://lists.aquamacs.org/pipermail/aquamacs-devel>
List-Post: <mailto:aquamacs-devel@aquamacs.org>
List-Help: <mailto:aquamacs-devel-request@aquamacs.org?subject=help>
List-Subscribe: <http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel>,
<mailto:aquamacs-devel-request@aquamacs.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: aquamacs-devel-bounces@aquamacs.org
Errors-To: aquamacs-devel-bounces@aquamacs.org
X-Scanned-By: MIMEDefang 2.60 on 128.2.10.85
X-AV-Checked: ClamAV using ClamSMTP at yuuai.polytechnique.org (Sun Dec 25 18:44:54 2011 +0100 (CET))
X-Spam-Flag: No, tests=bogofilter, spamicity=0.000000, queueID=DD362803286
Comments and changes to this ticket
-
benny December 27th, 2011 @ 02:00 PM
- State changed from new to reproduced
- Assigned user set to benny
I am going to try to fix this by doing two things when deriving a From address:
- Cross-check all email addresses found in delivery related headers AND the 'for' part of Received headers with addresses explicitly configured in the account settings. The first one found is used.
- Otherwise use
X-Original-To
if available, but never rely on aX-Original-To
header if aDelivered-To
header is added later.
At least that is what I'm considering right now. It would work for the example in this ticket where the correct address only appears in a Received header:
Received: from relay.andrew.cmu.edu (RELAY-02.ANDREW.CMU.EDU [128.2.10.85]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx2.polytechnique.org (Postfix) with ESMTPS id 89DAB803285 for <alan.schmitt@polytechnique.org>; Sun, 25 Dec 2011 18:44:54 +0100 (CET)
-
benny January 5th, 2012 @ 04:30 PM
- State changed from reproduced to fixcommitted
You can hold down ⌥ while clicking “Check Now” in the “Software Update” preferences pane. That should give you r2670 with a fix, but it has not been tested much. (In general, any version obtained via ⌥ should not be considered stable. They are most often debug versions.)
Thanks in advance for trying it.
The fix involves the first item in the previous comment to this ticket.
-
Alan Schmitt January 9th, 2012 @ 10:15 AM
I will give it a try, but as I'm not currently using MailMate as my default mail program, it may take a few days.
-
Alan Schmitt January 11th, 2012 @ 08:36 AM
I have just tried and I confirm this fixes my problem. Thanks!
-
Alan Schmitt January 13th, 2012 @ 11:23 AM
I think I found another instance where this fails (using version 2679). Here are the headers:
Return-Path: celtique-owner@listes.irisa.fr Received: from zfront1.inria.fr (LHLO zfront1.inria.fr) (193.51.193.147) by zmbs2.inria.fr with LMTP; Tue, 3 Jan 2012 11:44:23 +0100 (CET) Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by zfront1.inria.fr (Postfix) with ESMTPS id 06286238035; Tue, 3 Jan 2012 11:45:53 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.71,449,1320620400"; d="scan'208";a="137636404" Received: from listes.irisa.fr ([131.254.254.47]) by mail1-relais-roc.national.inria.fr with ESMTP; 03 Jan 2012 11:45:52 +0100 Received: by listes.irisa.fr (Postfix, from userid 108) id B91DE2EA5DA; Tue, 3 Jan 2012 11:45:52 +0100 (CET) X-Original-To: celtique@listes.irisa.fr Delivered-To: celtique@listes.irisa.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by listes.irisa.fr (Postfix) with ESMTP id A2FFD1DA099 for <celtique@listes.irisa.fr>; Tue, 3 Jan 2012 11:45:50 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.71,449,1320620400"; d="scan'208";a="125391782" Received: from cbg35-2-78-242-14-140.fbx.proxad.net (HELO [192.168.0.145]) ([78.242.14.140]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 03 Jan 2012 11:45:50 +0100 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) From: Alan Schmitt <alan.schmitt@inria.fr> In-Reply-To: <4F02D746.60206@irisa.fr> Date: Tue, 3 Jan 2012 11:45:50 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <E4FC956C-2BD1-4AA1-9DF4-1E4FBE16087F@inria.fr> References: <4F02D746.60206@irisa.fr> To: celtique@listes.irisa.fr X-Mailer: Apple Mail (2.1251.1) Subject: [CELTIQUE] =?ISO-8859-1?Q?Re:_before_th=E8se?= X-Loop: celtique@listes.irisa.fr X-Sequence: 316 Errors-to: celtique-owner@listes.irisa.fr Precedence: list X-no-archive: yes List-Id: <celtique.listes.irisa.fr> List-Archive: <http://listes.irisa.fr/wws/arc/celtique> List-Help: <mailto:sympa@listes.irisa.fr?subject=help> List-Owner: <mailto:celtique-request@listes.irisa.fr> List-Post: <mailto:celtique@listes.irisa.fr> List-Subscribe: <mailto:sympa@listes.irisa.fr?subject=subscribe%20celtique> List-Unsubscribe: <mailto:sympa@listes.irisa.fr?subject=unsubscribe%20celtique>
When I do a "reply", the From address is set to "celtique@listes.irisa.fr".
-
benny January 13th, 2012 @ 12:37 PM
There is only one header with your address:
From: Alan Schmitt <alan.schmitt@inria.fr>
But I assume that is only because you wrote the message.
The only fix I can think of is to ignore the
X-Original-To
header if it was added before anyReceived
headers. There is a test build with that change now. Release notes:- Improved From address derivation. Now any
X-Original-To
orX-Delivered-To
headers are ignored if they come after anyReceived
headers.
- Improved From address derivation. Now any
-
Alan Schmitt January 13th, 2012 @ 12:49 PM
Yes, I wrote the message I was replying to.
I tested it and it works. Thanks!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Mac OS X email client.