On Thu, 4 Jul 2002, Dean Brooks wrote:
> The user was apparantely forwarding a piece of spam to Spamcop, and
> Spamcop couldn't parse the Received headers correctly.
>
> Specifically, Spamcop sent this warning:
>
> The Received header is not being created properly by your MTA. From
> RFC2821:
>
> Stamp = From-domain By-domain Opt-info ";" FWS date-time
> From-domain = "FROM" FWS Extended-Domain CFWS
> Extended-Domain = Domain /
> ( Domain FWS "(" TCP-info ")" ) /
> ( Address-literal FWS "(" TCP-info ")" )
> TCP-info = Address-literal / ( Domain FWS Address-literal )
> ; Information derived by server from TCP connection
> ; not client EHLO.
>
> So, the line is *supposed* to look something like this:
>
> > Received: from your-w92p4bhlzg ([12.246.204.28])
> > by iglou.com with smtp (Exim 4.05) id 17PrkX-0003Wo-00;
> > Wed, 03 Jul 2002 17:33:21 -0400
I think they have overlooked the CFWS bits of those definitions. CFWS is
"comment or foldable white space".
So I claim that
Received: from abc (anything you like here) ....
is legal, because "abc" is a domain, which is also an extended-domain,
and "(anything you like here)" is CFWS. Basically, the "TCP-info" bit
achieves nothing.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.