EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SMTP problem with certified mail provider

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#28862
Posted: 03/20/2014 06:08:04
by Toni Santa (Standard support level)
Joined: 05/27/2013
Posts: 57

Hi,
in Italy there are "certified mail providers" (PEC) like Aruba, LegalMail and others. Now I've a strange problem when sending mails with TElSMPTClient:
- when I send a mail from an aruba-account to a legalmail-account with or without attachment, all works correctly, mail and answers arrive
- when I send a mail from legalmail-account to aruba-account without attachment, all works correctly as above.
- when I send a mail from legalmail-account to aruba-account with attachment, it doesn't arrive and an error with code 550 "Messaggio in ingresso non conforme" (incoming message not valid) is returned to the sender-account (legalmail).
I'm trying with the SMTP-sample. Port 465 implicit.
Any suggestions I could try are welcome.
Thanks and best regards
Toni
#28864
Posted: 03/20/2014 06:10:48
by Eugene Mayevski (EldoS Corp.)

This seems to be a security restriction imposed by Aruba service. I suggest that you contact Aruba service for clarification. You might need to check what types of attachments they accept, as they can block potentially dangerous attachments.


Sincerely yours
Eugene Mayevski
#28865
Posted: 03/20/2014 06:58:08
by Alexander Ionov (EldoS Corp.)

Also the problem can be caused by a bug we fixed last week. There was a problem in message header fields parameters, particularly in the Content-Type fields. The bug is already fixed but is not released yet.


--
Best regards,
Alexander Ionov
#28868
Posted: 03/20/2014 08:18:04
by Toni Santa (Standard support level)
Joined: 05/27/2013
Posts: 57

Hi Eugene,
I forget to mention that using Outlook for sending the same mail with attachment from legalmail to aruba works just fine. So there must be some missing parameter in the multipart-header (my 2 cents) of the attachment.
Now I saved a mail created and sent from webmail with attachment and one created and sent with TElMessage/TElSMTPSClient to compare the contents:

TEl-components
Quote
To: gestac@pec.it
From: luca.michielan@legalmail.it
Content-Type: multipart/mixed;
boundary=----=_NextPart_943_5213_4171804006358565;
charset=iso-8859-1
MIME-Version: 1.0
X-Mailer: EldoS MIMEBlackbox, version: 11.0.243.0
Date: Thu, 20 Mar 2014 09:36:54 +0100
Message-ID: <201403200936540228@28090818>
Subject: atto

This is a multi-part message in MIME format.

------=_NextPart_943_5213_4171804006358565
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Message body!

------=_NextPart_943_5213_4171804006358565
Content-Type: application/octet-stream; name="atto.enc"
Content-Disposition: attachment; filename="atto.enc"
Content-Transfer-Encoding: Base64

... here follows the binary stream


Webmail
Quote
Date: Thu, 20 Mar 2014 12:35:25 +0100 (CET)
From: "luca.michielan" <luca.michielan@legalmail.it>
To: gestac@pec.it
Message-ID: <1713458298.6584.1395315325431.JavaMail.jboss@vliasflegmail010.intra.infocert.it>
Subject: atto
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_6583_1703961596.1395315325426"
X-Mailer: Webmail Legalmail 2.0

------=_Part_6583_1703961596.1395315325426
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Message body!
-------------------

------=_Part_6583_1703961596.1395315325426
Content-Type: application/octet-stream; name=Atto.enc
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=Atto.enc

... here follows binary stream



The differences seem to be in the line with "This is a multi-part message in MIME format." and the Content-Transfer-Encoding of the body-text.

How can I avoid the adding of the "This is a multipart..."-phrase and change the encoding of the body? Should be
Code
      body.Header.AddField('Content-Transfer-Encoding', 'quoted-printable', True);

Right?
best regards
Toni
#28890
Posted: 03/21/2014 05:56:29
by Toni Santa (Standard support level)
Joined: 05/27/2013
Posts: 57

Hi,
the problems seems to be in the line
Quote
boundary=----=_NextPart_943_5213_4171804006358565;

it should be changed to
Quote
boundary="----=_NextPart_943_5213_4171804006358565";

since it contains a "="-character used as separator.

Where will I've to change this in source-code?
best regards
Toni
#28902
Posted: 03/21/2014 12:37:19
by Toni Santa (Standard support level)
Joined: 05/27/2013
Posts: 57

After upgrading to last version (11.0.246) problem is resolved.
regards
Toni
#35540
Posted: 01/14/2016 04:19:11
by SEVAL YILMAZ (Basic support level)
Joined: 01/14/2016
Posts: 1

Hi,

I think that I have the same problem. Is it possible to construct email without "This is a multi-part message in MIME format." in it.
The other party who checks my signature removes the string from mail Content and then checks the signature and say the signature is not valid.
I think that if I create mail without "This is a multi-part message in MIME format." there will be nothing to remove and they are going to validate my signed eml file.
I'm using version 11.0.286.

Thank you in advance.
Regards,
Seval
#35541
Posted: 01/14/2016 04:21:48
by Vsevolod Ievgiienko (EldoS Corp.)

Quote
SEVAL YILMAZ wrote:
Hi,

I think that I have the same problem...


Thank you for contacting us.

Technical Support is provided to customers with the linked Support Access Ticket. You will find your Support Access Ticket together with all the details about how to use it in the registration e-mail that we’ve sent to you upon the purchase. The procedure of linking the Support Access Ticket is described in the registration e-mail as well.

I am afraid that without the Support Access Ticket linked we won't be able to assist you. Thank you for understanding.
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 2159 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!