#3169 INVALID HEADER: INVALID 8-BIT CHARACTERS IN HEADER

1.410
closed-fixed
5
2008-08-01
2008-07-26
No

When I try to send a e-mail from Read User Mail, amavis is saying to me:

INVALID HEADER: INVALID 8-BIT CHARACTERS IN HEADER

Non-encoded 8-bit data (char E1 hex): Date: s\341b, 26 jul 2008 [...]

Return-Path: <fernando@apaair.aero>
Message-ID: <1217057833.18847@apaair.aero>
X-Mailer: Webmin 1.410
Subject: Prueba

WHAT IS AN INVALID CHARACTER IN MAIL HEADER?

The RFC 2822 standard specifies rules for forming internet messages. It does not allow the use of characters with codes above 127 to be used directly (non-encoded) in mail header.

If such characters (e.g. with diacritics) from ISO Latin or other alphabets need to be included in a header, these characters need to be properly encoded according to RFC 2047. Such encoding is often done transparently by mail reader (MUA), but if automatic encoding is not available (e.g. by some older MUA) it is a user's responsibility to avoid using such characters in mail header, or to encode them manually. Typically the offending header fields in this category are 'Subject', 'Organization', and comment fields in e-mail addresses of 'From', 'To' or 'Cc' header fields.

Sometimes such invalid header fields are inserted automatically by some MUA, MTA, content checker, or other mail handling service. If this is the case, that service needs to be fixed or properly configured. Typically the offending header fields in this category
are 'Date', 'Received', 'X-Mailer', 'X-Priority', 'X-Scanned', etc.

If you don't know how to fix or avoid the problem, please report it to _your_ postmaster or system manager.

Return-Path: <fernando@apaair.aero>
Received: by apaair.aero (Postfix, from userid 0)
id 0DC091A42DE; Sat, 26 Jul 2008 09:37:13 +0200 (CEST)
From: fernando@apaair.aero
Subject: Prueba
To: facero@teleline.es
Cc:
X-Originating-IP: 80.38.168.xxx
X-Mailer: Webmin 1.410
Message-Id: <1217057833.18847@apaair.aero>
Date: sáb, 26 jul 2008 09:37:13 +0200 (CEST)

As you can see, Date field shows "sáb".

Webmin is configured in English (I have tested it with several configurations of my user interface (mainly English and Spanish). My Operative System is Mandriva 2008.1, and it's configured in Spanish.

This problem also occurs when I try to use some words with special characters in Spanish, as "España" or "avión" into Subject field.

Solution:

Change codifications of 'Date', 'Received', 'X-Mailer', 'X-Priority', 'X-Scanned', 'Subject', 'Organization', 'From', 'To', 'Subject' or 'Cc' header fields to meet other languages codifications, according to RFC 2047.

Usermin mail module also have this problem (not with the date field because date is used in English), for example, when I try to use some Spanish characters into my Subject field.

Best regards

Discussion

  • Jamie Cameron

    Jamie Cameron - 2008-07-27

    Logged In: YES
    user_id=129364
    Originator: NO

    Ok, I think I see what is happening - the language on your system is probably set to non-english, which causes the strftime function used by Webmin to use a non-english formatting, which in turn generates an invalid Date header..

     
  • Fernando Acero Martin

    Logged In: YES
    user_id=906127
    Originator: YES

    Ok my friend, I agree with you regarding the date field of Webmin, but this problem also occurs with other fields. For example if I use Spanish words, into Subject field of Webmin.

    I want to say that this problem with the Data field doesn't happen if I use the same language configuration with Usermin (in this case Usermin always takes the date in English format regardless of the system language). Despite that, I have the same problem with Subject field of Usermin. I get an invalid header message if I try to use some Spanish words with special characters in this field.

    As you can see, this is a big problem for non English users, because when we use Webmin or Usermin for sending mail, our messages can be delayed, or even they can be discarded, by anti-spam engines.

    I think that codifications of 'Date', 'Received', 'X-Mailer', 'X-Priority','X-Scanned', 'Subject', 'Organization', 'From', 'To', 'Subject' or 'Cc' header fields, must be compatible with other languages different of English, according to RFC 2047.

    Best regards

     
  • Jamie Cameron

    Jamie Cameron - 2008-07-31

    Logged In: YES
    user_id=129364
    Originator: NO

    The next Usermin release will correct the Date: header, but forcing use of the 'C' encoding which other mail programs expect.

    I am still working on the other headers..

     
  • Jamie Cameron

    Jamie Cameron - 2008-08-01

    Logged In: YES
    user_id=129364
    Originator: NO

    The next Usermin and Webmin releases will do MIME-words encoding on the appropriate headers when sending email ..

     
  • Jamie Cameron

    Jamie Cameron - 2008-08-01
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks