Solved

Remove Attachment via Exchange or Outlook rules

Posted on 2012-04-13
5
1,962 Views
Last Modified: 2012-04-17
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.
0
Comment
Question by:klinkman
  • 2
  • 2
5 Comments
 
LVL 37

Assisted Solution

by:Neil Russell
Neil Russell earned 134 total points
ID: 37843880
VBA Code would be simpleist.

You should be able to easily adapt the code found here -> http://manage-this.com/strip-outlook-attachments-vba/

use the ItemSend event to call youew routine based on that example and strip the attachments out.
0
 
LVL 47

Assisted Solution

by:apache09
apache09 earned 366 total points
ID: 37849667
To acheive what you looking for, i dont really think your going to get this with outlook/exchange itself.

Realistically, your going to need 1 of two things

1) A 3rd party attachment handling tool or app
MapiLap offers something similar, However slipstick also has a listing of known good attachment handling tools

http://www.mapilab.com/outlook/attachments_processor/

http://www.slipstick.com/addins/auto-process/attachment-management-tools-for-outlook/

2) A Mail Management/Filtering App/Service such as MAIL MARSHAL
http://www.m86security.com
0
 

Author Comment

by:klinkman
ID: 37853140
Damn VB script, havent touched code in far too long. Not going to lie, not sure where to start on slimming that code down to just discard the attachments. It is the right idea though, just not one i am having much luck with.

3rd party is always an option, just evaluating what i can do before spending money on another software package.
0
 
LVL 47

Accepted Solution

by:
apache09 earned 366 total points
ID: 37853784
If you would like to try and use code to do it, Outlookcode.com is a great site.

Just doing a quick search on removing attachments show alot of results.
Im confident you cant find the code you need here to do it.
Possibly code that already been written.

The bonus of using outlook code is the code is specifically written for Outlook.

here is a exampkle of a result on Removing attachments:
http://www.outlookcode.com/threads.aspx?forumid=1&messageid=32759

http://www.outlookcode.com

Also, if you a bit rusty or need help with your code, these guys can help
0
 

Author Closing Comment

by:klinkman
ID: 37857084
Outlookcode.com is a great resource, thank you! I found code that was documented well enough that i could change it to do what i wanted... but...
It ends up i am going to have to go third party for a few different reasons, one being that i want the attachments to be stripped whether the user's outlook client is open or not.
Thank you for the input and suggestions.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question