How to archive email on SBS 2008 By Marina Roos exchange 2007 archiving, journaling Exchange 2007 offers a very easy way to archive all ingoing and outgoing email which they call journaling. By default it will only offer you to do that archiving into a (user) mailbox. Another disadvantage is the way it is showing those messages as you won’t be able to see the content of the email, because those emails are in an attachment. Pages How to archive email on SBS 2008Create a public folderCreate a distribution group with the public folder as memberConfigure the Journal Rule (optional)Configure the Transport RuleNote when also using Exchange aware AV With this article we will show you how to setup the journaling to a public folder and the second part of this article will show you an alternate way to setup archiving. The kicker is to use a transport rule where you will be able to see the content of the email directly. We will show several ways how to create a public folder and how to configure the journaling so it will archive in that public folder. Then we will show you how to use a transport rule in stead of the journaling rule to archive all email. Create a public folder There are several ways to create a public folder. You can use the Exchange Management Console, the Exchange Management Management Shell commands or OWA/Outlook. With the Exchange Management Console Exchange Management Console, Toolbox, Public Management Console: Expand Public folders, select Default Public Folders, in the right pane (Actions) select New Public Folder: Type a name like Archived Emails: Click New: Click Finish. With the Exchange Management Shell Open Start, All Programs, Microsoft Exchange Server 2007, Exchange Management Shell: Type the following command: New-publicfolder –name foldername Where foldername is the name of the public folder you want to create. In this example we are creating folder Archive: With OWA or Microsoft Outlook Select the Public Folders in the left, right click Public Folders, Create New Folder, Mail folder: Type the name of the new folder (Archive 2009) and hit the Enter key: So now we have created 3 new public folders and they all look the same in the Public Folder Management Console: Which method you want to use for creating a public folder is totally up to you. We will have to Mail Enable the public folder though. Select the public folder and click Mail Enable in the Actions pane: After mail enabling a folder you will see more options in the Actions pane and the icon that is placed before the name in the middle pane will change. Public Folder Permissions By default all public folders are accessible for all users and everyone can create items and view the contents. You can only change and view the permissions from a workstation with Outlook or by using the Exchange Management Shell on the server. With the Exchange Management Shell you can use the following command to see the permissions: Get-PublicFolderClientPermission –Identity “\foldername” User Anonymous should have the {CreateItems} right (else the public folder won't be able to receive system messages and messages from external domains). User Default always gets the {Author} right, but you may want to remove this right from this user on the archiving public folder and change it to {CreateItems} only. Let’s change the right for the user Default to only Create items: Remove-PublicFolderClientPermission –Identity “\archived emails” –user Default –Accessrights Author Reply with ‘y’. Then add the CreateItems right to user Default: Add-PublicFolderClientPermission –Identity “\archived emails” –user Default –Accessrights CreateItems So only the SBS Admin will have all rights to the public folder Archived Emails. Users won’t even see that public folder anymore, but they can still create items in it. If you would take all rights from user Default, the Transport Rule or the Journal Rule won’t be able to copy the message to the public folder anymore, which will result in a NDR for the user. Create a distribution group with the public folder as member As the journal rule and the transport rule will only show mailboxes and no public folders to choose from, we have to create a distribution group. In the Exchange Management Console, Recipient Configuration, Distribution Group, select the New Distribution Group from the Actions pane: We want a new group, so click Next: The group type will be a Distribution group and we type in a name (in our example ArchiveList) then click Next: The summary shows and you click New to create it: The wizard succeeded, click Finish: Go to the properties of the ArchiveList, tab Members: Click the Add button and select the Public Folder: If you don’t see the public folder, please check if you mail enabled it. Click OK: Another setting we need to change is to make sure this folder is able to receive email from outside the domain. Select tab Mail Flow Settings, select Message Delivery Restrictions and click Properties: Uncheck the option “Require that all senders are authenticated”: Then click OK and OK. Configure the Journal Rule (optional) Now we could setup the journal rule so it will archive all incoming and outgoing email to the distribution list. And because the public folder Archived Email is a member of the distribution list, all email will go to the public folder too. For having a complete picture we will include the steps on how to proceed, but if you don’t like the result as shown at the end of this chapter, just skip it and proceed to the last chapter (Configure the Transport Rule). In the Organization Configuration, Hub Transport, select tab Journaling, New Journal Rule in the Actions tab: Type a name for the rule and browse to the ArchiveList to send the journal reports to: Click New: Click Finish: The result is as follows: As you can see it will have the message in an attachment and you would have to open the archive message to see the contents of the email. This is not very friendly. The next chapter of this article will show you how to use a transport rule for archiving so you can disable and remove the journal rule (if you created this journal rule at all of course). Configure the Transport Rule We will want to archive all incoming and outgoing email. With the New Transport Rule wizard we configure all the details of this rule. In the Organization Configuration node, Hub Transport, select tab Transport Rules and select New Transport Rule in the Actions pane: Type a name for this rule and type a comment, click Next: We will want to archive all email, so we don’t use any conditions: Click Next. We will get a warning and acknowledge that: We select the “Blind carbon copy (Bcc) the message to addresses” Click on the underlined addresses to select the distribution list: Click Add and select the ArchiveList: Click OK: Click OK: Click Next: We don’t want to use any exceptions, so click Next: Summary is shown and you click New: Success, click Finish. If you created the Journal Rule in the previous chapter, go to the Journaling tab and disable the Journal rule: Click Yes if you are sure to disable the rule. You can leave this rule disabled or you can remove it. Result of the Transport Rule: Note when also using Exchange aware AV Note: if you have an Exchange aware anti virus program running like Sophos PureMessage, you might get problems like email not going out anymore until you disable the transport rule. This can happen if the AV program is putting its rule above the transport agents. With the Exchange Management Shell command you can see the current order and you can change that. For getting a list of the current transport agents open the Exchange Management Shell and type: Get-TransportAgent If you get an error “No valid agents.config file was found….” your Exchange aware AV program is not using agents and you should have no problem. If you do get a list the Transport Rule Agent will have to be on priority 1. Sophos PM might have put their PmE12Transport agent on priority 1 though. Run the following command: Set-TransportAgent –Identity “PmE12Transport” –Priority 2 This will correct the transport agents order: