📜 ⬆️ ⬇️

Control mail traffic of selected MS Exchange users

It may be necessary to control the incoming and outgoing mail of some employees. Looking for a ready-made solution that either didn’t like the price or didn’t suit the functionality, I took the idea from them and doped it up to a simple schema.

And so, we need the email client The Bat! (or any other one that has a letter sorter and preferably a task scheduler, for example, I later remade it to Thunderbird ), as well as a working MS Exchange .


')
At my disposal was Exchange 2003 Standard, which, among other differences from Enterprise, allows you to create only one repository. If you are unlimited in the number of repositories, I would recommend to create a new one for our tasks and transfer mailboxes of interest to our users. Then the frills with filters The Bat!, Described below, will not be needed.

Next, in the Active Directory Users and Computers snap-in, we create a new user (we will be interested only in his mailbox). How to do this will not tell, because this is absolutely the basics. For example, give it the name "journal". Personally, I added “Hide from Exchange address lists” to the usual settings, so that the user does not incite our eyes in the global address book.

Next in the Exchange System Manager we go to the storage settings.

put a tick "Archive all messages sent or received by mailboxes on this store" and, going to Browse, select the newly created journal user. We save.

At this Exchange settings are over. Now all mail of the custom storage will be duplicated in the specified box. From it we will rake out all mail, filtering the excess.

Go to The Bat!

Create a new box for our purposes:



remove the checkbox "Leave letters on the server"

And on this box settings are finished

Immediately go to the "Mail Sorter" and create a new rule, I called it "Del"

Its meaning is as follows - it will delete all letters that are not related to the user of interest to us ivan_petrov@domain.com . If you are interested in several people, their addresses should also be included in the conditions. Pay attention to the variable "OR", if you leave "AND", then the rule will only work on letters that Ivan Petrov wrote to himself :) In the actions set to delete the letter. Thus, all other letters will be deleted upon receipt.

Next, go to the built in The Bat! sheduler and create a rule that will periodically check our mailbox and sort the letters from it.





When we finish, the following should turn out - all mail of our storage will be duplicated in the mailbox we have created, from where The Bat! 'Th will be pulled out. Excess at the same time will be deleted. By changing the sorting rules, you can archive mail not for individual users, but for everyone, except for unnecessary ones. Well, there are variations on the subject. I would also recommend creating another rule in the mail client that would compress the folders of this mailbox, since she will not swell.

Well, I remind you that all these actions may be deemed illegal. In general, consult with the lawyers of your organization before you run to perform similar actions.

ps: this is a cross-post from my main blog, so that the copyright in the screenshots is not a PR attempt at all :)

Source: https://habr.com/ru/post/25420/


All Articles