Mailing List Message #106400
From: Nicolas Hatier <>
Subject: Re: Bad messages: "envelope format error"
Date: Thu, 4 May 2017 16:56:54 -0400
To: CommuniGate Pro Discussions <>

1. The email address is not valid according to the RFC
2. CGP still accepts it, then it creates its own envelope line with the invalid address
3. The module in CGP that parses that line is more restrictive than the module which writes it, and it fails to do it.

So IMHO there is a bug in CGP: yes, the email is invalid, but a well-behaving server should refuse it DURING the SMTP transaction, not while trying to parse its own data.

Nicolas Hatier, ing. <>
Niversoft idées logicielles -

On 2017-05-04 15:54, Gib Henry wrote:

Well, no, those are the first 3 lines of the bad file itself, which I presume are transcriptions of lines received during the SMTP connection; the problem is that CGP was unable to process the third line.  Cheers,
Gib Henry

On 5/4/17 2:33 PM, James Moe wrote:
On 05/03/2017 08:15 AM, Gib Henry wrote:
A []
P I 02-05-2017 15:54:08 0000 ____

R W 02-05-2017 15:54:08 0000 ____ _FY_ <>

Received: from ([] verified)

  Is this really the first few lines of the message's header?
  If so, the first three lines are invalid. Then there is an empty line
which indicates the start of the actual message which, in this case,
appears to be the rest of the header. Quite mangled all around.
  The line length limit for email is 1000 octets, including the CR-LF at
the end. However, opayq seems to found a way to create an invalid
address without exceeding that limit, as Gib noted.

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster