From: Ion-Mihai Tetcu on
Hi,


I've run into a little problem, easily solved, but I'd like to know
where the problem actually is.

I have a mail that is rejected by the destination server (an exim) with:
1964422C509A 4257 Thu Jan 28 13:51:40 segreteria(a)cameradicommercio.ro
(host mail.intesasanpaolo.ro[80.96.9.11] said: 550 No verifiable sender address in message headers (in reply to end of DATA command))
Ana.Mirita(a)intesasanpaolo.ro

The problem is the From: header, which you can see bellow, and the
destination server chokes on the unquoted ``:'' (while a few hundreds
other servers don't).


named_attribute: dsn_orig_rcpt=rfc822;Ana.Mirita(a)intesasanpaolo.ro
original_recipient: Ana.Mirita(a)intesasanpaolo.ro
recipient: Ana.Mirita(a)intesasanpaolo.ro
*** MESSAGE CONTENTS deferred/1/1964422C509A ***
Received: from secre (unknown [81.196.207.140])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id 1964422C509A
for <Ana.Mirita(a)intesasanpaolo.ro>; Thu, 28 Jan 2010 13:51:40 +0200 (EET)
Date: Thu, 28 Jan 2010 13:58:54 +0200
From: CCIpR: Segreteria <segreteria(a)cameradicommercio.ro>
To: Ana Maria MIRITA <Ana.Mirita(a)intesasanpaolo.ro>
Subject: Re: test
Message-Id: <20100128135854.34770ac1.segreteria(a)cameradicommercio.ro>
In-Reply-To: <4B615ADE.8060500(a)intesasanpaolo.ro>
References: <4B615ADE.8060500(a)intesasanpaolo.ro>
Organization: CCIpR
X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/ plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


Questions:
- should ``:'' be quoted ?
- should the MUA be blamed for the lack of quoting?
- if the From: header, without quotes, is invalid, is there a way to
make postfix reject the mail at submission time?

It's a bit unclear for me from reading the RFCs.


Thanks,

--
IOnut - Un^d^dregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
FreeBSD committer -> itetcu(a)FreeBSD.org, PGP Key ID 057E9F8B493A297B
From: Wietse Venema on
Ion-Mihai Tetcu:
> From: CCIpR: Segreteria <segreteria(a)cameradicommercio.ro>

That is incorrect syntax. The form

label: address, address...;

is a named group in RFC5322 syntax.

To fix: quote the "CCIpR: Segreteria" portion (or add a ";" at
the end, but this could confuse some poorly-written software).

Wietse