Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: andypl on January 14, 2008, 05:20:07 AM

Title: Bad header
Post by: andypl on January 14, 2008, 05:20:07 AM
Hi

I have source mail whith this error:

X-Amavis-Alert: BAD HEADER Improper use of control character (char 0D hex):
    Received: ...domain.com [xx.xx.xx.xx]\r\n\t with HTTP/1....

Received: from host.domain.com ([xx.xx.xx.xx])
    by localhost (host.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id LcTgQMq6ihWm for ;
    Mon, 14 Jan 2008 11:07:51 +0100 (CET)
Received: by host.domain.com (Postfix, from userid 33)
    id 2754618C007C; Mon, 14 Jan 2008 11:07:51 +0100 (CET)
To: user2@host.domain.com
Subject: gffgfg
X-PHP-Script: webmail.domain.com/index.php for xx.xx.xx.xx
MIME-Version: 1.0
Date: Mon, 14 Jan 2008 11:07:51 +0100
From: =?UTF-8?Q?xxxxxxxxxxxxx?=
Message-ID:
X-Sender: some@domain.com
Received: from domain.com [xx.xx.xx.xx]
     with HTTP/1.1 (POST); Mon, 14 Jan 2008 11:07:51 +0100
User-Agent: [hhh] Webmail
Content-Type: multipart/alternative;
    boundary="=_11cd9f63f2c71eb815a7bf6b492e6ecc"


--=_11cd9f63f2c71eb815a7bf6b492e6ecc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

fgfgfgfg
--=_11cd9f63f2c71eb815a7bf6b492e6ecc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

fgfgfgfg


This problem is in only SVN version.
Svn is the newest.
On rc2 version not found this problem.

Best regards
Title: some problem
Post by: dwchrist on December 16, 2009, 01:12:45 AM
i too am experiencing this problem.  my server is running mac os x server 10.4, with amavisd-new-2.6.4 (20090625).  clearly it is amavisd which is identifying mail coming from roundcube as a problem.  i've searched for this error and all i can find is reference from the developers saying this control character (\r) cannot be coming from func.inc (or roundcube).  

is anyone else experiencing this?
Title: Bad header
Post by: Nomad-71 on January 10, 2010, 04:29:52 AM
I have the same problem on Ferdora Linux (Postfix + Dovecot +amavisd-new)
Roundcubemail version 0.3
Postfix version 2.6.5
Amavisd-new version 2.6.4

Code: [Select]

The message WAS NOT relayed to:
  <nomad71st@example.com>:
   554 5.6.0 Reject, id=02076-04 - BAD HEADER

This nondelivery report was generated by the program amavisd-new at host
mail.example.ru. Our internal reference code for your message is
02076-04/MaXyz9XpBHPP

INVALID HEADER

  Improper use of control character (char 0D hex): X-PHP-Originating-Script:
    0:func.inc\r

Return-Path: <nomad71st@example.ru>
From: <nomad71st@example.ru>
Message-ID: <32eab0fe54ee4954007630a5eb246a99@ote.ru>
Subject: Fwd: Undeliverable mail, invalid header section
Title: Bad header
Post by: erikpkn on January 11, 2010, 07:50:43 AM
Exactly the same problem here! Created a ticket: #1486418 (BAD HEADER from local Amavis) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1486418). Suggestion made in a reply to that ticked was to disable mail.add_x_header option in php.ini. That solved the BAD HEADER problem.