Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: Problem with encrypted emails in Outlook Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 14 December 2009 at 6:59am | IP Logged Quote luki555

Hi. I made a SMTP client for sending emails and i encrypt and sign emails with Smime methods Encrypt() and Sign(). When I receive the email I cannot open it in Outlook 2007, but in Outlook 2003 it works fine. I have instaled the proper certificates, I tried to use the latest Mailbee.NET component , but it still doesn't work. When I try to open it I get the error message: "Security system couldn't find the name of your digital ID"(the same I get when I don't have the certificate)
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 14 December 2009 at 8:05am | IP Logged Quote Igor

Are you running both Outlook 2007 and Outlook 2003 on the same machine or on different ones? If those are different machines, check Internet Explorer options on the machine with Outlook 2007 and make sure certificate with your private key is there under Personal tab of Certificates store.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 15 December 2009 at 5:48am | IP Logged Quote luki555

They are running on different machines.
I checked the certificate store and the certificate is under Personal tab.
Any other ideas?
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 15 December 2009 at 6:23am | IP Logged Quote Igor

Do you see the following text when viewing the certificate?
Quote:
You have a private key that corresponds to this certificate


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 15 December 2009 at 6:44am | IP Logged Quote luki555

Igor wrote:
Do you see the following text when viewing the certificate?
Quote:
You have a private key that corresponds to this certificate


--
Regards,
Igor, AfterLogic Support


Yes, I see that.
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 15 December 2009 at 7:02am | IP Logged Quote Igor

And if you sign a message with that certificate and send the message from the machine with Outlook 2003 to the machine where Outlook 2007 is installed, does everything work as expected or error occures as well?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 15 December 2009 at 7:12am | IP Logged Quote luki555

I tried to send emails from different machines, but in outlook 2007 I get the error.
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 15 December 2009 at 7:14am | IP Logged Quote Igor

Even if sent not from MailBee, e.g. if sent from Outlook 2003? It should be addressed to Microsoft in that case.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 15 December 2009 at 7:15am | IP Logged Quote Igor

Sorry if my previous question was not clear enough, I meant trying to sign & send from Outlook 2003 and receive by Outlook 2007.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 15 December 2009 at 7:16am | IP Logged Quote luki555

No, I tried to send encrypted mails without Mailbee and it worked fine and i tried to made email manually in outlook express and it worked too.
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 16 December 2009 at 1:21am | IP Logged Quote Igor

Try to decrypt and verify the message with MailBee.NET on the machine with Outlook 2007 installed. Does it work?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 06 January 2010 at 8:32am | IP Logged Quote luki555

Hi. I tried to decrypt and verify the message on machine with Outlook 2007 and it worked(I got the original message). But in outlook 2007 on the same machine I couldn`t open the email(same error message I got before). The certificate was installed correctly and in correct cert. store.
Back to Top View luki555's Profile Search for other posts by luki555
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 12 January 2010 at 7:59am | IP Logged Quote luki555

Do you have any other ideas?
Back to Top View luki555's Profile Search for other posts by luki555
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6043
Posted: 12 January 2010 at 8:26am | IP Logged Quote Igor

We've tried reproducing the issue with Outlook 2007, and everything worked as expected. The only suggestion we have at the moment is to check the certificate placed in the store and make sure it contains the same email address in "E" line as the one messages are sent to.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
luki555
Newbie
Newbie


Joined: 14 December 2009
Online Status: Offline
Posts: 8
Posted: 13 January 2010 at 8:18am | IP Logged Quote luki555

Hi. I checked the "E" line, but in Outlook 2003 it works fine even if the sender's email is diferent from "E" param in certificate. In Outlook 2007 we used open the emails from email in "E" param and from it's alias but it didn't help(today I tried it on 2 computers). Can you check my code, if it works for you? Thanks.

My Settings:
MailBee.NET version 5.8.2.173 or 3.0.2.79
.NET framework version 3.5 SP1
Visual Studio version 9.0.30729.1
Outlook 2003 version 11.8313.8221 SP3
Outlook 2007 version 12

And Code:

Smtp.LicenseKey = "";
                MailBee.Security.Powerup.Licen seKey = "";
                Smtp objMailBeeSMTP = new Smtp();
                objMailBeeSMTP.SmtpServers.Add (new SmtpServer("smtpserver",25,1));
                MailBee.Mime.MailMessage msg = new MailBee.Mime.MailMessage();
                msg.BodyPlainText = "ahoj";
                msg.Subject = "mailbee mail test";
                msg.From = new MailBee.Mime.EmailAddress("mail");
                msg.To.Add(new MailBee.Mime.EmailAddress("mail"));
                msg.Attachments.Add(@"path", "file1.txt", "");
                Smime smime = new Smime();
                CertificateCollection coll = new CertificateCollection();
                Certificate encr = new Certificate(@"path", CertFileType.Cer, "");
                Certificate sign = new Certificate(@"path", CertFileType.Pfx, "");
                coll.Add(encr);  &nb sp;         &nb sp;  
                msg = smime.SignAndEncrypt(msg, sign, coll);                
                objMailBeeSMTP.Message = msg;
                objMailBeeSMTP.Send();
Back to Top View luki555's Profile Search for other posts by luki555
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide