Automating SMIME decrpytion and Forwarding of email in O365/outlook 2016

%3CLINGO-SUB%20id%3D%22lingo-sub-129725%22%20slang%3D%22en-US%22%3EAutomating%20SMIME%20decrpytion%20and%20Forwarding%20of%20email%20in%20O365%2Foutlook%202016%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-129725%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20mailbox%20in%20O365.%20An%20external%20partner%20is%20sending%20us%20emails%20(smime%20encrypted)%20on%20this%20mailbox.%20We%20have%20an%20application%20that%20needs%20to%20process%20these%20emails%2C%20but%20the%20problem%20is%20that%20this%20application%20can't%20access%20this%20mailbox%20directly.%20What%20we%20want%20to%20do%20is%20to%20auto-forward%20these%20emails%20to%20an%20external%20mailbox%20to%20which%20this%20application%20has%20access%20to.%20But%20before%20we%20auto-forward%2C%20we%20want%20these%20emails%20to%20be%20auto-decrypted%20and%20then%20forward.%20The%20reason%20being%20this%20application%20can't%20decrypt%20these%20emails.%20The%20application%20can%20only%20handle%20the%20decrpytion%20logic%20when%20the%26nbsp%3B%E2%80%9Cto-address%E2%80%9D%20is%20the%20actual%20recipient.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20application%20takes%20the%20%E2%80%9Cto-address%E2%80%9D%20of%20an%20email%20and%20searches%20for%20a%20private%20key%20against%20it.%20In%20case%20of%20forwarding%20the%20email%20the%20addressee%20will%20be%20changed%20and%20the%20decryption%20will%20fail.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20main%20question%20is%20how%20and%20if%20we%20can%20use%2Fapply%20some%20Outlook%202016%20rules%20on%20the%20actual%20mailbox%2C%20which%20on%20the%20fly%20decrpt%20the%20email%20usign%20the%20installed%20private%20certificate%20on%20the%20machine%20and%20then%20forward%20the%20email%20to%20the%20external%20email%20address.%20In%20this%20case%2C%20the%20new%20recipient%20will%20receive%20the%20email%20already%20in%20decrypted%20form%20and%20the%20application%20woudl%20nto%20have%20to%20worry%20abotu%20any%20decrpytion%20by%20itself.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20pointer%20how%20to%20automate%20it%20using%20o365%2Foutlook%202016%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-129725%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi All,

 

We have a mailbox in O365. An external partner is sending us emails (smime encrypted) on this mailbox. We have an application that needs to process these emails, but the problem is that this application can't access this mailbox directly. What we want to do is to auto-forward these emails to an external mailbox to which this application has access to. But before we auto-forward, we want these emails to be auto-decrypted and then forward. The reason being this application can't decrypt these emails. The application can only handle the decrpytion logic when the “to-address” is the actual recipient. 

 

The application takes the “to-address” of an email and searches for a private key against it. In case of forwarding the email the addressee will be changed and the decryption will fail.

 

So my main question is how and if we can use/apply some Outlook 2016 rules on the actual mailbox, which on the fly decrpt the email usign the installed private certificate on the machine and then forward the email to the external email address. In this case, the new recipient will receive the email already in decrypted form and the application woudl nto have to worry abotu any decrpytion by itself.

 

Any pointer how to automate it using o365/outlook 2016?

 

Thanks.

 

 

 

1 Reply

@Suleman Butt, I take it this issue has not been resolved. What did you end up doing? I have a very similar issue at hand. I need the SMIME message decrypted. Which is then to be captured in a CMS system unencrypted.