Outlook rule based on file type of attachment

Posted on 2013-06-19
Medium Priority
Last Modified: 2013-06-20

We use Outlook 2010 with hosted exchange server.

Our users seem to often get zip file attachments with executable or links included.

My thought would be to direct these messages into the deleted items folder. If it is something valid the user could get it but would have to work at it versus clicking everything they see in their inbox.

Is it possible to create a rule based on file extension?
Question by:Eric B
  • 2
LVL 11

Expert Comment

by:James Hodge
ID: 39259962

Yes this can be done.

Here is an article released by Technet:



Author Comment

by:Eric B
ID: 39260137
Since the exchange server function is outsourced and hosted elsewhere we don't have full control over it.

How about this angle- Outlook blocks exe, pif, etc - can I modify the list of potentially malicious attachments? We all use Outlook 2010.  I saw an eHow on modifying the list via GPEDIT but don't have a Mcirosoft Outlook entry.
LVL 76

Accepted Solution

David Lee earned 2000 total points
ID: 39261129
Hi, pamgmt.

Curiously enough I just added a post on my blog showing a solution for this.  That solution moves any message with a .zip attached to the Junk E-mail folder.  It would be very easy to modify that to move the messages to Deleted Items.  Doing this requires a macro since Outlook's rules engine doesn't have a condition that triggers on attachment type.

Author Closing Comment

by:Eric B
ID: 39264441
This worked perfectly.   I used olDeletedItems as the folder.  A hassle to put on each user pc but fantastic to have!

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

627 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