[imp] [patch] Configurable Received: header behavior

Thomas Bolioli tpblists at terranovum.com
Wed Feb 9 08:07:56 PST 2005


One thing that may be of interest. This seems to only be a problem when 
IMP sends mail using a local sendmail binary (possibly even only one 
that is a postfix install masquerading as sendmail...) and not when it 
relays off a localhost via SMTP. It appears the spam filters may not be 
the problem here afterall.
See examples. FYI: I obfuscated certain emails and the one for my alumni 
account is redirected to xxx3. Lastly, there is a slight version 
difference between the two. One is from 4.0 and the other 4.0.1. Not 
sure if that even makes a difference.
Tom

While going through /usr/bin/sendmail->

Return-Path: <xxx1 at terranovum.com>
X-Original-To: xxx2 at terranovum.com
Delivered-To: xxx2 at terranovum.com
Received: by smtp.terranovum.com (Postfix, from userid 72)
    id A653E3E715F; Wed,  5 Jan 2005 18:58:04 -0500 (EST)
Received: from 209-6-223-56.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com
    (209-6-223-56.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com [209.6.223.56]) by
    wmbeta.terranovum.com (Horde) with HTTP for
    <xxx1 at wmbeta.terranovum.com>; Wed,  5 Jan 2005 18:58:04 -0500
Message-ID: <20050105185804.r5uwq47gg4swwks0 at wmbeta.terranovum.com>
Date: Wed,  5 Jan 2005 18:58:04 -0500
From: xxx1 at terranovum.com
To: xxx2 at terranovum.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain;
    charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.0)
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on 
nova.terranovum.com
X-Spam-Level: *******
X-Spam-Status: Yes, score=7.2 required=4.0 tests=BAYES_50,HELO_DYNAMIC_HCC,
    HELO_DYNAMIC_IPADDR2,NO_REAL_NAME autolearn=no version=3.0.0
X-Spam-Report:
    *  0.0 NO_REAL_NAME From: does not include a real name
    *  3.5 HELO_DYNAMIC_IPADDR2 Relay HELO'd using suspicious hostname 
(IP addr 2)
    *  3.7 HELO_DYNAMIC_HCC Relay HELO'd using suspicious hostname (HCC)
    *  0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60%
    *      [score: 0.4999]



test message.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


When using a localhost smtp relay->


Return-Path: <xxx1 at terranovum.com>
X-Original-To: xxx3 at terranovum.com
Delivered-To: xxx3 at terranovum.com
Received: from permemail02.alumniconnections.com 
(permemail02.alumniconnections.com [198.212.10.117])
    by smtp.terranovum.com (Postfix) with ESMTP id 3547A3E736D
    for <xxx3 at terranovum.com>; Wed,  9 Feb 2005 10:51:41 -0500 (EST)
Received: (from smmsp at localhost)
    by permemail02.alumniconnections.com (8.12.11/8.12.11) id j19FpfZs004397
    for <xxx3 at terranovum.com>; Wed, 9 Feb 2005 10:51:41 -0500 (EST)
Received: from unknown(64.213.105.104) by permemail02 via smap (V2.1)
    id xma_1818_1107964142; Wed, 9 Feb 05 10:49:02 -0500
Received: from localhost (localhost [127.0.0.1])
    by smtp.terranovum.com (Postfix) with ESMTP id CA7AA3E661D
    for <thomas_bolioli at alumni.somewhere.edu>; Wed,  9 Feb 2005 10:49:01 
-0500 (EST)
Received: from 209-6-223-56.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com
    (209-6-223-56.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com [209.6.223.56]) by
    webmail.terranovum.com (Horde) with HTTP for
    <xxx1 at webmail.terranovum.com>; Wed,  9 Feb 2005 10:49:01 -0500
Message-ID: <20050209104901.jiqqb22beowckwwo at webmail.terranovum.com>
Date: Wed,  9 Feb 2005 10:49:01 -0500
From: Thomas Bolioli <xxx1 at terranovum.com>
To: thomas_bolioli at alumni.somwhere.edu
Subject: test header message
MIME-Version: 1.0
Content-Type: text/plain;
    charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.0.1)
X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on 
nova.terranovum.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=4.0 tests=BAYES_50 autolearn=ham
    version=3.0.0



test header message

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Brian Keifer wrote:

>Hi, All.
>
>I've been seeing some people mentioning that they have issues with spam filters
>seeing their dial-up or otherwise dynamic IP in the Received headers and
>thinking the messages are originating from a mail server in dynamic space.
>I've been bitten by this as well recently, so I wanted to do something about
>it, if only for my own server.
>
>The attached file is a diff against imp-h3-4.0.2-rc1.  It adds an admin-level
>config option (on by default) to enable or disable adding the first received
>header.  I wanted to toss this out as a suggestion, mainly to see if the core
>folks had any strong feelings either way on it.
>
>I've checked out a couple of webmail services (Yahoo!, Hotmail, Gmail, and a
>couple of local ISPs) and so far, Gmail's the only one that doesn't include the
>sending workstation's IP address in a Received: header.
>
>If it's dubbed fit for inclusion, I'll be happy to re-roll a patch against HEAD,
>but as you can see, it's a fairly simple one. =)
>
>-Brian
>
>  
>
>------------------------------------------------------------------------
>
>diff -ur imp-h3-4.0.2-rc1/compose.php imp/compose.php
>--- imp-h3-4.0.2-rc1/compose.php	Tue Feb  1 01:40:50 2005
>+++ imp/compose.php	Wed Feb  9 09:45:51 2005
>@@ -841,8 +841,12 @@
>     /* Initalize a header object for the outgoing message. */
>     $msg_headers = &new IMP_Headers();
> 
>-    /* Add a Received header for the hop from browser to server. */
>-    $msg_headers->addReceivedHeader();
>+    /* Add a Received header for the hop from browser to server*/
>+    if ($conf['msg']['received_for_browser']) {
>+        $msg_headers->addReceivedHeader();
>+    }
>+
>+    /* Add a MessageID header */
>     $msg_headers->addMessageIdHeader();
> 
>     /* Add the X-Priority header, if requested. This appears here since
>diff -ur imp-h3-4.0.2-rc1/config/conf.xml imp/config/conf.xml
>--- imp-h3-4.0.2-rc1/config/conf.xml	Thu Dec  9 10:33:27 2004
>+++ imp/config/conf.xml	Wed Feb  9 09:43:36 2005
>@@ -197,6 +197,8 @@
>    <configboolean name="append_trailer" desc="Should we append the contents of
>    imp/config/trailer.txt to the end of every message
>    sent?">true</configboolean>
>+   <configboolean name="received_for_browser" desc="Should we add a Received: 
>+   header for the hop between the browser and the server?">true</configboolean>
>   </configsection>
> 
>   <configsection name="compose">
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3194 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.horde.org/archives/imp/attachments/20050209/13521547/smime.bin


More information about the imp mailing list