Remove Attachment via Exchange or Outlook rules
Posted on 2012-04-13
Hey all, rule question here...
I would like to setup a rule to limit attachments inside my domain. This is relatively easy to do via a transport rule on my exchange 2010 box. Unfortunately the 'Actions' available are somewhat limited.
I currently have the Transport rule set to block any email with an attachment over 2meg sent from 'Inside the organization' to 'inside the organization', it then emails the sender saying it was blocked. Two problems with this, the returned email is the same size as the original sent message, so i end up with users with a bunch of big 'Email was blocked' messages. The other being that the recipient doesn't recieve anything (obviously).
What I want:
I would like to have a transport rule, or a forced outlook rule that strips the attachment, and allows the message text to continue with a note of some kind saying "Attachment Removed" . I dont think this is possible to do via a Transport rule exclusively so...
One method I am thinking is maybe I have a transport rule that will add a classification to the email, or certain text string to the subject that outlook will see. When outlook sees that Classification tag, or text string, it will then run a rule with VB code to strip and delete the attachment.
Thoughts and opinions on other options??
Or directions on the VB code needed, and how to get it into an outlook rule, and make sure that users are not allowed to turn it off?
Sorry for long winded question, hoped the more details on current setup might help us find a solution here.