Community Discussions and Support
Empty line in mail header causing error!

Thank you Mr. Stephenson for your reply. Always learning...[:)]

Thank you Mr. Stephenson for your reply. Always learning...[:)]

Hi, I'm testing Mercury mail server, and I'm very impressed.

I'm using version 4.72 with ClamWall/ClamAV 0.96.5 on Windows XP SP3.

I use Mercury for internal mail, also to fetch various POP accounts from my ISP/Mail provider and I relay my outgoing mail thru their SMTP server. I use

MercuryS, MercuryC, MercuryP, MercuryD and the default definition in Content Control. The mail clients in use are Outlook Express and Mozilla Thunderbird 3.1.9.

All email is working well, but one email with attachment couldn't be correctly displayed on the clients because of an empty line in the header section.

I manually deleted the empty line and then I called the mail again from the client and it did correctly displayed and I could save the attachment.

This is getting long....Well, the question is: is Mercury for some reason inserting this empty line? Is there a setting in the configuration causing this?

Here is the Header of the mail and the beginning of the Body. The problematic part is on red:

 

-------------------- START CODE --------------------

Received: from spooler by mydomain.com (Mercury/32 v4.72); 21 Mar 2011 09:00:12 +0100

X-Envelope-To: receiver@mydomain.com

X-CLAMWALL: Passed through antiviral test by ClamWall 1.4.0.96 on mydomain.com (64)

Received: from POP3D by mydomain.com with MercuryD (v4.72);

 21 Mar 2011 09:00:03 +0100

Return-Path: <prvs=sender=0555a2ab0@senderdomain.ch>

Delivery-Date: Mon, 21 Mar 2011 08:49:39 +0100

Received: from mailer.senderdomain.ch (mailer.senderdomain.ch [123.123.123.123]) by

 mx.kundenserver.ch (node=mxch1) with ESMTP (Nemesis) id

 0LaGYE-1MbudY32T4-02lK45 for receiver@mydomain.com;

 Mon, 21 Mar 2011 08:49:39 +0100

X-IronPort-Anti-Spam-Filtered: true

X-IronPort-Anti-Spam-Result: Ap0EAMufhk2SQ5Jm/2dsb2JhbACCYaI0gUy/R4VjBA

X-IronPort-AV: E=Sophos;i="4.63,218,1299452400";

X-AC-Weight: [####] (Whitelisted) -9999

X-CC-Diagnostic:

 

 d="xml'?log'?zip'48?scan'48,48,217,208?hlp'48,48,217,208?lcd'48,48,217,208";a="123284858"

Received: from mailer22.senderdomain.ch (HELO mailer22.senderdomain.ch)

 ([123.123.123.123]) by mailer.senderdomain.ch with ESMTP;

 21 Mar 2011 08:49:38 +0100

Received: from mailer-mbx.senderdomain.ch ([72bb::72bb:72bb:72bb:7732]) by

 mailer22.senderdomain.ch ([72bb::71bb:71bb:71bb:7731%12]) with mapi;

 Mon, 21 Mar 2011 08:49:37 +0100

From: Sender <sender@senderdomain.ch>

To: 'Receiver' <receiver@mydomain.com>

CC: SomeOne <someone@otherdomain.ch>

Disposition-Notification-To: Sender

 <sender@senderdomain.ch>

Date: Mon, 21 Mar 2011 08:49:37 +0100

Subject: Some problem ID-123

Thread-Topic: Some problem ID-123

Thread-Index: AxxyyLcHEYo5AnwSUQqTf3Pl4Gb5Fh==

Message-ID: <2D19B529188C9B41A325D2784802E9630FEEEC2CA7@mailer-mbx.senderdomain.ch>

Accept-Language: fr-FR, fr-CH

Content-Language: fr-FR

X-MS-Has-Attach: yes

X-MS-TNEF-Correlator:

acceptlanguage: fr-FR, fr-CH

x-tm-as-product-ver: SMEX-10.0.0.4152-6.500.1024-18024.005

x-tm-as-result: No--47.011600-0.000000-31

x-tm-as-user-approved-sender: Yes

x-tm-as-user-blocked-sender: No

Content-Type: multipart/mixed;

 boundary="_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_"

MIME-Version: 1.0

Envelope-To: receiver@mydomain.com

 

--_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_

Content-Type: multipart/alternative;

 boundary="_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_"

 

--_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_

Content-Type: text/plain; charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

 

Hello ...

--------------------END CODE --------------------

 

And I edited this way. Note that this is the short version, I left some code behind:

 

-------------------- START CODE --------------------

... [here should be some code]

X-IronPort-AV: E=Sophos;i="4.63,218,1299452400";

 d="xml'?log'?zip'48?scan'48,48,217,208?hlp'48,48,217,208?lcd'48,48,217,208";a="123284858"

... [here should be some code]

MIME-Version: 1.0

Envelope-To: receiver@mydomain.com

X-AC-Weight: [####] (Whitelisted) -9999

X-CC-Diagnostic:

 

--_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_

Content-Type: multipart/alternative;

 boundary="_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_"

 

--_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_

Content-Type: text/plain; charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

 

Hello ...

--------------------END CODE --------------------

 

I hope someone could put some light on this subject, thank you!

 

&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;p&gt;Hi, I&#039;m testing Mercury mail server, and I&#039;m very impressed.&lt;/p&gt; &lt;p&gt;I&#039;m using version 4.72 with ClamWall/ClamAV 0.96.5 on Windows XP SP3.&lt;/p&gt; &lt;p&gt;I use Mercury for internal mail, also to fetch various POP accounts from my ISP/Mail provider and I relay my outgoing mail thru their SMTP server. I use MercuryS, MercuryC, MercuryP, MercuryD and the default definition in Content Control. The mail clients in use are Outlook Express and Mozilla Thunderbird 3.1.9.&lt;/p&gt; &lt;p&gt;All email is working well, but one email with attachment couldn&#039;t be correctly displayed on the clients because of an empty line in the header section.&lt;/p&gt; &lt;p&gt;I manually deleted the empty line and then I called the mail again from the client and it did correctly displayed and I could save the attachment.&lt;/p&gt; &lt;p&gt;This is getting long....Well, the question is: &lt;span style=&quot;font-weight: bold;&quot;&gt;is Mercury for some reason inserting this empty line? Is there a setting in the configuration causing this?&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Here is the Header of the mail and the beginning of the Body. The problematic part is on red:&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p style=&quot;color: red;&quot;&gt;-------------------- START CODE --------------------&lt;/p&gt; &lt;/div&gt; &lt;div style=&quot;color: blue; font-family: &#039;Courier New&#039;,sans-serif; font-size: 12px;&quot;&gt; &lt;p&gt;Received: from spooler by mydomain.com (Mercury/32 v4.72); 21 Mar 2011 09:00:12 +0100 X-Envelope-To: receiver@mydomain.com X-CLAMWALL: Passed through antiviral test by ClamWall 1.4.0.96 on mydomain.com (64) Received: from POP3D by mydomain.com with MercuryD (v4.72); &amp;nbsp;21 Mar 2011 09:00:03 +0100 Return-Path: &amp;lt;prvs=sender=0555a2ab0@senderdomain.ch&amp;gt; Delivery-Date: Mon, 21 Mar 2011 08:49:39 +0100 Received: from mailer.senderdomain.ch (mailer.senderdomain.ch [123.123.123.123]) by &amp;nbsp;mx.kundenserver.ch (node=mxch1) with ESMTP (Nemesis) id &amp;nbsp;0LaGYE-1MbudY32T4-02lK45 for receiver@mydomain.com; &amp;nbsp;Mon, 21 Mar 2011 08:49:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAMufhk2SQ5Jm/2dsb2JhbACCYaI0gUy/R4VjBA &lt;span style=&quot;color: red;&quot;&gt;X-IronPort-AV: E=Sophos;i=&quot;4.63,218,1299452400&quot;; X-AC-Weight: [####] (Whitelisted) -9999 X-CC-Diagnostic: &amp;nbsp; &amp;nbsp;d=&quot;xml&#039;?log&#039;?zip&#039;48?scan&#039;48,48,217,208?hlp&#039;48,48,217,208?lcd&#039;48,48,217,208&quot;;a=&quot;123284858&quot; &lt;/span&gt; Received: from mailer22.senderdomain.ch (HELO mailer22.senderdomain.ch) &amp;nbsp;([123.123.123.123]) by mailer.senderdomain.ch with ESMTP; &amp;nbsp;21 Mar 2011 08:49:38 +0100 Received: from mailer-mbx.senderdomain.ch ([72bb::72bb:72bb:72bb:7732]) by &amp;nbsp;mailer22.senderdomain.ch ([72bb::71bb:71bb:71bb:7731%12]) with mapi; &amp;nbsp;Mon, 21 Mar 2011 08:49:37 +0100 From: Sender &amp;lt;sender@senderdomain.ch&amp;gt; To: &#039;Receiver&#039; &amp;lt;receiver@mydomain.com&amp;gt; CC: SomeOne &amp;lt;someone@otherdomain.ch&amp;gt; Disposition-Notification-To: Sender &amp;nbsp;&amp;lt;sender@senderdomain.ch&amp;gt; Date: Mon, 21 Mar 2011 08:49:37 +0100 Subject: Some problem ID-123 Thread-Topic: Some problem ID-123 Thread-Index: AxxyyLcHEYo5AnwSUQqTf3Pl4Gb5Fh== Message-ID: &amp;lt;2D19B529188C9B41A325D2784802E9630FEEEC2CA7@mailer-mbx.senderdomain.ch&amp;gt; Accept-Language: fr-FR, fr-CH Content-Language: fr-FR X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: fr-FR, fr-CH x-tm-as-product-ver: SMEX-10.0.0.4152-6.500.1024-18024.005 x-tm-as-result: No--47.011600-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No Content-Type: multipart/mixed; &amp;nbsp;boundary=&quot;_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_&quot; MIME-Version: 1.0 Envelope-To: receiver@mydomain.com &amp;nbsp; --_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_ Content-Type: multipart/alternative; &amp;nbsp;boundary=&quot;_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_&quot; &amp;nbsp; --_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_ Content-Type: text/plain; charset=&quot;iso-8859-1&quot; Content-Transfer-Encoding: quoted-printable &amp;nbsp; Hello ...&lt;/p&gt; &lt;/div&gt; &lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;p style=&quot;color: red;&quot;&gt;--------------------END CODE --------------------&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;And I edited this way. Note that this is the short version, I left some code behind:&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p style=&quot;color: red;&quot;&gt;-------------------- START CODE --------------------&lt;/p&gt; &lt;/div&gt; &lt;div style=&quot;color: blue; font-family: &#039;Courier New&#039;,sans-serif; font-size: 12px;&quot;&gt; &lt;p&gt;... [here should be some code] &lt;span style=&quot;color: red;&quot;&gt;X-IronPort-AV: E=Sophos;i=&quot;4.63,218,1299452400&quot;; &amp;nbsp;d=&quot;xml&#039;?log&#039;?zip&#039;48?scan&#039;48,48,217,208?hlp&#039;48,48,217,208?lcd&#039;48,48,217,208&quot;;a=&quot;123284858&quot; &lt;/span&gt; ... [here should be some code] MIME-Version: 1.0 Envelope-To: receiver@mydomain.com &lt;span style=&quot;color: red;&quot;&gt;X-AC-Weight: [####] (Whitelisted) -9999 X-CC-Diagnostic: &lt;/span&gt; &amp;nbsp; --_004_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_ Content-Type: multipart/alternative; &amp;nbsp;boundary=&quot;_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_&quot; &amp;nbsp; --_000_2D19B529188C9B41A325D2784802E9630FEEEC2CA7MAILERMBXabcd_ Content-Type: text/plain; charset=&quot;iso-8859-1&quot; Content-Transfer-Encoding: quoted-printable &amp;nbsp; Hello ...&lt;/p&gt; &lt;/div&gt; &lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;p style=&quot;color: red;&quot;&gt;--------------------END CODE --------------------&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;I hope someone could put some light on this subject, thank you!&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;/div&gt;

This is getting long....Well, the question is: is Mercury for some reason inserting this empty line? Is there a setting in the configuration causing this?

Here is the Header of the mail and the beginning of the Body. The problematic part is on red:

 

-------------------- START CODE --------------------

Received: from spooler by mydomain.com (Mercury/32 v4.72); 21 Mar 2011 09:00:12 +0100

X-Envelope-To: receiver@mydomain.com

X-CLAMWALL: Passed through antiviral test by ClamWall 1.4.0.96 on mydomain.com (64)

Received: from POP3D by mydomain.com with MercuryD (v4.72);

 21 Mar 2011 09:00:03 +0100

Return-Path: <prvs=sender=0555a2ab0@senderdomain.ch>

Delivery-Date: Mon, 21 Mar 2011 08:49:39 +0100

Received: from mailer.senderdomain.ch (mailer.senderdomain.ch [123.123.123.123]) by

 mx.kundenserver.ch (node=mxch1) with ESMTP (Nemesis) id

 0LaGYE-1MbudY32T4-02lK45 for receiver@mydomain.com;

 Mon, 21 Mar 2011 08:49:39 +0100

X-IronPort-Anti-Spam-Filtered: true

X-IronPort-Anti-Spam-Result: Ap0EAMufhk2SQ5Jm/2dsb2JhbACCYaI0gUy/R4VjBA

X-IronPort-AV: E=Sophos;i="4.63,218,1299452400";

X-AC-Weight: [####] (Whitelisted) -9999

X-CC-Diagnostic:

 

 d="xml'?log'?zip'48?scan'48,48,217,208?hlp'48,48,217,208?lcd'48,48,217,208";a="123284858"

I suspect that the Ironport diagnostic is putting in the extra CR/LF into the message.  It's probably it because that the line is greater than the 78 characters with cr/lf and not properly wrapped but that's just a guess.

 

 
&lt;blockquote&gt;&lt;p&gt;This is getting long....Well, the question is: &lt;span style=&quot;font-weight:bold;&quot;&gt;is Mercury for some reason inserting this empty line? Is there a setting in the configuration causing this?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Here is the Header of the mail and the beginning of the Body. The problematic part is on red:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;color:red;&quot;&gt;-------------------- START CODE --------------------&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt; Received: from spooler by mydomain.com (Mercury/32 v4.72); 21 Mar 2011 09:00:12 +0100 X-Envelope-To: receiver@mydomain.com X-CLAMWALL: Passed through antiviral test by ClamWall 1.4.0.96 on mydomain.com (64) Received: from POP3D by mydomain.com with MercuryD (v4.72); &amp;nbsp;21 Mar 2011 09:00:03 +0100 Return-Path: &amp;lt;prvs=sender=0555a2ab0@senderdomain.ch&amp;gt; Delivery-Date: Mon, 21 Mar 2011 08:49:39 +0100 Received: from mailer.senderdomain.ch (mailer.senderdomain.ch [123.123.123.123]) by &amp;nbsp;mx.kundenserver.ch (node=mxch1) with ESMTP (Nemesis) id &amp;nbsp;0LaGYE-1MbudY32T4-02lK45 for receiver@mydomain.com; &amp;nbsp;Mon, 21 Mar 2011 08:49:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAMufhk2SQ5Jm/2dsb2JhbACCYaI0gUy/R4VjBA &lt;span style=&quot;color: red;&quot;&gt;X-IronPort-AV: E=Sophos;i=&quot;4.63,218,1299452400&quot;;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt; X-AC-Weight: [####] (Whitelisted) -9999&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt; X-CC-Diagnostic:&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt; &amp;nbsp;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt; &amp;nbsp;d=&quot;xml&#039;?log&#039;?zip&#039;48?scan&#039;48,48,217,208?hlp&#039;48,48,217,208?lcd&#039;48,48,217,208&quot;;a=&quot;123284858&quot;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;I suspect that the Ironport diagnostic is putting in the extra CR/LF into the message.&amp;nbsp; It&#039;s probably it because that the line is greater than the 78 characters with cr/lf and not properly wrapped but that&#039;s just a guess. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&amp;nbsp;&lt;/blockquote&gt;

It's difficult to say without seeing the original message, but it looks like there was an empty line after the first line of the X-Ironport-AV header, indicating the end of the header section. Mercury has then added its content control headers after that header.

If you can have the sender resend the message you could temporarily switch off content control and see if the blank line still is there.

/Rolf 

&lt;p&gt;It&#039;s difficult to say without seeing the original message, but it looks like there was an empty line after the first line of the X-Ironport-AV header, indicating the end of the header section. Mercury has then added its content control headers after that header.&lt;/p&gt;&lt;p&gt;If you can have the sender resend the message you could temporarily switch off content control and see if the blank line still is there.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

Thank you all for your comments.

One more question at Mr. Thomas R. Stephenson:

Could you please explain the meaning of "is greater than the 78 characters with cr/lf and not properly wrapped".

Thank you.

&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;p&gt;Thank you all for your comments.&lt;/p&gt; &lt;p&gt;One more question at Mr. Thomas R. Stephenson:&lt;/p&gt; &lt;p&gt;Could you please explain the meaning of &quot;&lt;span style=&quot;color: blue;&quot;&gt;is greater than the 78 characters with cr/lf and not properly wrapped&lt;/span&gt;&quot;.&lt;/p&gt; &lt;p&gt;Thank you.&lt;/p&gt; &lt;/div&gt;

Could you please explain the meaning of "is greater than the 78 characters with cr/lf and not properly wrapped".

 The RFC for e-mail limits to header lines to 78 characters and provides instructions on how the longer lines are to be wrapped.

2.2.3.  Long Header Fields

Each header field is logically a single line of characters comprising

the field name, the colon, and the field body. For convenience

however, and to deal with the 998/78 character limitations per line,

the field body portion of a header field can be split into a

multiple-line representation; this is called "folding". The general

rule is that wherever this specification allows for folding white

space (not simply WSP characters), a CRLF may be inserted before any

WSP.

 

&lt;blockquote&gt;&lt;p&gt;Could you please explain the meaning of &quot;&lt;span style=&quot;color: blue;&quot;&gt;is greater than the 78 characters with cr/lf and not properly wrapped&lt;/span&gt;&quot;.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;The RFC for e-mail limits to header lines to 78 characters and provides instructions on how the longer lines are to be wrapped. &lt;/p&gt;&lt;pre&gt;2.2.3. Long Header Fields Each header field is logically a single line of characters comprising the field name, the colon, and the field body. For convenience however, and to deal with the 998/78 character limitations per line, the field body portion of a header field can be split into a multiple-line representation; this is called &quot;folding&quot;. The general rule is that wherever this specification allows for folding white space (not simply WSP characters), a CRLF may be inserted before any WSP.&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft