Roundcube Community Forum

 

Syntax error in header

Started by derEnCh, January 11, 2007, 12:44:22 PM

Previous topic - Next topic

derEnCh

Hello RoundCube-Users,
first i have to say that this is a very nice project, I LOVE ROUNDCUBE (:

But i have a problem when i send emails.

When i send a email at the mailhoster freenet.de

i get this message back "Undelivered Mail Returned to Sender"

This is the c10.ibone.ch program at host c10.ibone.ch.

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The c10.ibone.ch program

<[email protected]>: host mx.freenet.de[194.97.50.144] said: 550 Syntax
  error in header (in reply to end of DATA command)
Reporting-MTA: dns; c10.ibone.ch
X-c10-ibone-ch-Queue-ID: E04752B8579
X-c10-ibone-ch-Sender: rfc822; [email][email protected][/email]
Arrival-Date: Thu, 11 Jan 2007 18:28:15 +0100 (CET)

Final-Recipient: rfc822; [email][email protected][/email]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-c10-ibone-ch; host mx.freenet.de[194.97.50.144] said: 550
  Syntax error in header (in reply to end of DATA command)

Other emails to @web.de are working.
only @freenet.de will not work.

Its a header problem which is generated by roundcube ... or something else.

any kind of ideas ?

greetz Christian

sorry for my poor english (:

derEnCh

I found something interessting,
some users of special email programms also get this error,
so it depends more ore less on freenet.

hier the text, only german sorry
Quote### Betrifft: SMTP an mx.freenet.de
### Publikum: Entwickler MailClients und SMTP-Engines
### Problem: 550 syntax error in header beim Versuch, eine e-mail an einen freenet-account zu senden

Nach ewigen Herumprobieren ist es mir dann doch noch gelungen, die Fehlerursache fÃÃ,¼r die "syntax error in header" bei freenet.de herauszufinden. Da ich selbst im Web und in den Newgroups nicht fÃÃ,¼ndig geworden bin, poste ich hier die LÃÃ,¶sung fÃÃ,¼r das Problem...

Beispiel-Header:

(die X-.. Zeilen sind hier nicht so wichtig, sondern rÃÃ,¼hren von meinem eigenen SMTP-Engine her)

Message-ID: <1EFA4D6C-FC5C-40BD-878B-24195B34C184@COOL-A1200>
From: [email protected]
To: cool_one
Reply-To: SMTPTEST
Subject: --- T E S T ---
Organization: Cool Engineering
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
X-Mailer: CCMS_AwardManager V 1.13
X-Mailer-Core: Module SMTP V 1.09 by Cool Engineering
X-Sender-Name: COOL-A1200
X-Sender-LocalTime: 09.10.2003/19:47:58 (GMT+02:00)
X-MX-Connect: mx.freenet.de
X-MX-LoginType: ESMTP
X-MX-SendError: mx.freenet.de EC=1107 R=550 syntax error in header
X-MX-AllBad: using RelayServer instead
X-MX-Connect: mail.gmx.net (RelayServer)
X-MX-LoginType: ESMTP
X-MX-AuthType: CRAM-MD5
X-CRAM-MD5-Core: Module Hashing V 1.03 by Cool Engineering

ergibt einen 550 syntax error in header bei mex.freenet.de direkt und auch der Zustellversuch von gmx.net schÃÃ,¤gt fehl:
:
194.97.50.144_failed_after_I_sent_the_message./Remote_host_said:_550_syntax_error_in_header/

Um es kurz zu machen, der Fehler im Header liegt in der Zeile

From: [email protected]

Die Nennung von Name UND e-mail mag mx.freenet nicht.

Wenn die Zeile

From:

lautet (nur die e-mail-Adresse, auch ohne spitze Klammern), nimmt Freenet die mail ohne Murren an. Das ist auch schon alles. Alle anderen Server, die mir bisher untergekommen sind, haben auch die Doppelnennung verkraftet, aber was solls?

RFC 821 (fÃÃ,¼r das "UR"-SMTP) gibt als Beispiel an:
   
S: From: [email protected]
S: To: [email protected]

also ohne spitze Klammern, Outlook Express von Microsoft (R) - der wohl hÃÃ,¤ufigste MailClient - benutzt spitze Klammern.

Fazit: Im Prinzip hat freenet.de Recht, eine Doppelnennung ist nicht RFC-konform, ist aber fÃÃ,¼r meinen Geschmack ein bisschen sehr zickig :)


### Publikum: Anwender von MailClients, SMTP-Engines, Newsletter-Versand-Programmen etc.

Wenden Sie sich an den Support bzw. den Entwickler Ihrer Software und senden Sie ihm diesen Text zu, damit er eine angepasste Version herausbringen kann.


Mit freundlichen GrÃÃ,¼ÃƒÃ...¸en

Oliver Kuhlemann
Cool Engineering (//www.cool-engineering.de)

 

derEnCh

okay i try to explain in english (:

When you try to send a mail to @freenet.de with roundcube, the header looks like this :

Message-ID: <1EFA4D6C-FC5C-40BD-878B-24195B34C184@BLA-A1200>
From: [email][email protected][/email] <[email protected]>
To: ench-design <[email protected]>
Reply-To: SMTPTEST <[email protected]>

The source of the error is here:

From: [email][email protected][/email]

@freenet.de dont accept this formating witht the < >

When the header looks like this:

From: [email][email protected][/email]

it will work...
so i thin we have to change something at the building of the header

looking at the sendmail.inc if found this

// compose headers array
$headers = array('Date' => date('D, j M Y G:i:s O'),
         'From' => $identity_arr['string'],
         'To'  => rcube_charset_convert($mailto, $input_charset, $message_charset));

looking at $identity_arr['string']

$identity_arr = rcmail_get_identity(get_input_value('_from', RCUBE_INPUT_POST));

I thin here we have something to change .... but my knowledge of php isnt so big...

greetz Christian