I'm running the stock configuration of amavisd-new (version 2.5.1,  
20070531) under Mac OS X Server 10.5.6 for virus and spam filtering.  
I'm getting this weird issue with users putting colons in their From/ 
To/Cc/Subject lines. Here's the headers from the message that gets sent:

Message-ID: <[email protected]>
Date: Sun, 15 Feb 2009 22:49:11 -0700
From: Lucas Wagner | Gateway Online Editor <[email protected]>
User-Agent: Postbox 1.0b7 (Macintosh/2009020805)
MIME-Version: 1.0
To: Lucas Wagner :: Colon Test <[email protected]>
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Notice the double colons in the To line. Here's the results after  
running through amavis:

Return-Path: <[email protected]>
Received: from murder ([unix socket])
         by robocop.gateway.ualberta.ca (Cyrus v2.3.8-OS X Server 10.5: 9C31)  
with LMTPA;
         Sun, 15 Feb 2009 22:49:16 -0700
X-Sieve: CMU Sieve 2.3
Received: from localhost (localhost [127.0.0.1])
        by robocop.gateway.ualberta.ca (Postfix) with ESMTP id A38C6385C66
        for <[email protected]>; Sun, 15 Feb 2009 22:49:16 -0700 (MST)
Received: from robocop.gateway.ualberta.ca ([127.0.0.1])
        by localhost (robocop.gateway.ualberta.ca [127.0.0.1]) (amavisd-new,  
port 10024)
        with ESMTP id jUeQwpLqEDNW for <[email protected]>;
        Sun, 15 Feb 2009 22:49:11 -0700 (MST)
Received: from online.gateway.ualberta.ca (online.gateway.ualberta.ca  
[129.128.62.233])
        by robocop.gateway.ualberta.ca (Postfix) with ESMTP id B4733385C50
        for <[email protected]>; Sun, 15 Feb 2009 22:49:11 -0700 (MST)
Message-ID: <[email protected]>
Date: Sun, 15 Feb 2009 22:49:11 -0700
From: Lucas Wagner | Gateway Online Editor <[email protected]>
User-Agent: Postbox 1.0b7 (Macintosh/2009020805)
MIME-Version: 1.0
To: [email protected],
        "Wagner:"@robocop.gateway.ualberta.ca:Colon Test 
<[email protected] 
 >
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

The To line gets horribly mangled. When I turn amavis off, no such  
mangling occurs. Is there any way I can avoid this, other than telling  
my users not to use the double colons?

-- 
Lucas Wagner
Online Editor | The Gateway
(780) 248-1509 work | (780) 966-7618 cell
Suite 3-04, Students' Union Building
University of Alberta
http://www.thegatewayonline.ca
"No trees were harmed by this message. However, several million  
electrons were terribly inconvenienced."

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to