Salesforce

Email Troubleshooting (Magic xpi 4.5)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Email Troubleshooting (Magic xpi 4.5)

Q1

Why are the characters corrupted in the body of an email?

A1

The Email component sends data in UTF-8. To make sure that the characters are not corrupted, make sure that your data is in UTF-8.

Q2

When trying to configure an email resource over SSL, the validation of the resource fails and the following error message is generated in the stderr.log file: “Unable to find valid certification path to requested target”. Why is this?

A2

To solve this problem, you need to add the mail server certification to the jvm keystore. To do this, follow these steps:

  1. Add the server as a record to the local hosts file. You can find it on:
    C:\Windows\System32\drivers\etc\hosts
    For example, 10.1.2.35 mail.test.local

  2. To obtain the certificate, access the mail server. For example, open an internet browser and go to https://10.1.2.35/. Because the certificate is not trusted, you will probably see the browser’s security alert.

  3. Select Continue to this website (not recommended). From the server’s web site, click on Certificate Error.

  4. Select View Certificate. Here, under the Details tab, click Copy to File.

  5. Select the DER option in the wizard, and save the untrusted certificate to a file. Next, save this file in the Magic xpi temp folder.

  6. Open a CMD. From the <Magic xpi installation>\Runtime\jre\bin>, run the command as shown below:
    <Magic xpi installation folder>\Runtime\jre\bin>keytool -import -alias myprivateroot -keystore ..\lib\security\cacerts -file <Magic xpi installation folder>Runtime\Temp\mail.test.local.cer
    Here, you will be asked for the password. The default password is changeit. After entering the password, you will see the certification details. For example:
    Owner: CN=mail.test.local
    Issuer: CN=mail.test.local
    Serial number: 68feb893589ccd9b468588b90
    Valid from: Sat Jun 13 15:49:07 IDT 2??9 until: Thu Jun 1? 15:49:07 IDT 20??
    Certificate fingerprints:
    MD5: EF:82:01:?:95:EB:57:?B:47:?:BB:BD:BC:D2
    SHA1: A8:2F:C?7D:3?2B:00:B7:7E:FA:?:C4??1:40:A9:D4

  7. Finally, you will be asked if you trust this certificate. Enter Y for yes:
    Trust this certificate? [no]: y
    The following message will then appear, confirming that the certification has been successfully added:
    Certificate was added to keystore

For additional information you can visit sites and forums, such as this one:

http://www.java-samples.com/showtutorial.php?tutorialid=210

Reference
Attachment 
Attachment