Transport Agent: Rewriting Sender or Recipient Domain

Lately I’ve been working on few Transport Agents which I feel maybe handy to share. While the logic adopted is very simple, the sample showcase how to inspect and modify entries in the P1 and P2 headers.   The requirement was for 2 separate agents one rewriting the sender domain and one rewriting the recipient…

2

PowerShell: Apply Retention Policies or Auto-Archive Settings to Inbox sub-folders

This week I’ve been spending some time in reviewing how Exchange Retention Policies and Outlook Auto-Archive setting are stored in a user mailbox.   If you’re wondering whether to start using Outlook Auto-Archive or the Exchange Retention policy I would like to call out some differences.   How important is enterprise data? If the answer to this…

2

MapiHTTP and Autodiscover – How to open shared mailboxes in a MAPI application

Opening shared mailboxes in a MAPI application has been an easy thing in the past. Simply query the primary mailbox for the IID_IExchangeManageStore interface and create an EntryID for the shared mailbox by calling CreateStoreEntryID. This is a V2 Exchange Store Entry ID, as outlined here: https://msdn.microsoft.com/en-us/library/ee203516(EXCHG.80).aspx https://blogs.msdn.microsoft.com/stephen_griffin/2011/07/21/store-entry-id-v2/ Here’s a simple code snippet on how…