I got a question today about if one could set the Outlook Security Settings programmatically instead of requiring the user to go through the dialog in the Outlook UI.  The answer is Yes, and the article below describes how to do it:

How to Assign an S/MIME Certificate to a MAPI Profile for Use with Outlook

http://support.microsoft.com/kb/312900