How to use Outlook E-mail Security Administrative Package to Trust Add-in or Other Programs
Sometimes, we may want to grant an add-in (custom add-in) or a program (Access, Excel) the permission to access Outlook's data and send email via Outlook. By default, Outlook will prompt a security warning to let the user confirm it is not a virus or any malicious code. We can perform the following steps to use Outlook E-mail Security Administrative Package so that Outlook trusts add-ins or other programs. (For example, the code which access Outlook's data or send email via Outlook is in sendmail.dll)
1. in ESM, Locate Folders -> Public Folders
2. Right Click Public Folders -> Click New -> Public Folder
3. Use the name "Outlook Security Settings" and Click OK
4. Right Click "Outlook Security Settings" and Click Properties -> On Permissions tab, Click Client Permissions -> Make sure "Default" and "Anonymous" has "Reviewer" role at least and your account has owner role and Click OK
5. Download ADMPACK.EXE from https://www.microsoft.com/downloads/details.aspx?FamilyID=15673dc4-2406-4946-aa02-8a8b0e0165b0&DisplayLang=en
6. Run it and it will extract 4 files for you (comdlg32.ocx, hashctl.dll, OutlookSecurity.oft, readme.doc)
7. Copy comdlg32.ocx and hashctl.dll to C:WindowsSystem32
8. Click start -> Run… -> Type "regsvr32 hashctl.dll" (without quotation marks) and Click OK
9. Click start -> Run… -> Type "regsvr32 comdlg32.ocx" (without quotation marks) and Click OK
10. Start Outlook and log on to your Exchange mailbox
11. Double Click OutlookSecurity.oft to launch it
12. Choose "Outlook Security Settings" (under Public Folders) and Click OK
13. Click Tools -> Forms -> Publish Form
14. Select "Outlook Folders" in "Look In:" drop down box
15. Click Browse and Locate Public Folders -> Outlook Security Settings and Click OK
16. Type "Outlook Security Form" in both "Display name:" and "Form name:" box and Click Publish
17. Close the form and Click NO when it prompt for save changes
18. In Outlook, Click File -> New -> Choose Form…
19. Select "Outlook Folders" in "Look In:" drop down box
20. Click Browse and Locate Public Folders -> Outlook Security Settings and Click OK
21. Select "Outlook Security Form" and Click Open
22. On Trusted Code tab, Click Add…
23. Locate the "sendmail.dll" file (you can install the add-in or program on your machine in advance) and Click Open
24. Click Close and Click Yes when it prompt for save changes
Now, in your Exchange environment, the "sendmail.dll" file can access Outlook's data and send emails without the security warning. More information can be found in the readme.doc file included in ADMPACK.EXE.