Delete emails from Journal mailbox before they’re journaled

Setting up a new journal mailbox that has Enterprise Vault Journal Archiving turned on, and I don’t want emails from our monitoring system to go into the journal archive.

When I tried logging onto the ECP as that user I’d get the OWA language and time zone prompt screen, and then an error “Bad Request”, so I couldn’t create a rule via the GUI.

This is what I ended up doing:

New-InboxRule -Name "Delete Monitoring Messages"
 -Mailbox domainjournalaccount
 -from monitoring@domain.local -DeleteMessage $true

(wrapped for legibility)

The only problem now is that the messages go to the Deleted Items folder in that mailbox, but the mailbox management process will take care of that.

The rules take effect before Enterprise Vault picks up the email, so this works well. Not sure about any performance impact this may have, but I’m only running it in a small environment.

To view the inbox rules that are configured for the mailbox, do the following:

Get-InboxRule -Mailbox domainjournalaccount

Or in detail:

Get-InboxRule -Mailbox domainjournalaccount | Format-List

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s