Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Do I have the possibilty to do logging when using microsoft mail (no exchange)?

A customer of mine is using the old ms mail (without exchange) as internal mail server and is (nearly) perfectly happy with it. The only thing he still misses is logging.
Scenario: An employee deletes an important message permanently and claims to have never received it.
There is no such function in ms mail, but maybe someone knows an addon or third party software.
OS: win2k in an active directory 2k domain.
0
McKnife
Asked:
McKnife
  • 7
  • 7
1 Solution
 
David LeeCommented:
Hi McKnife,

Are we really talking about Microsoft Mail or are we talking about Outlook without Exchange?  If we're talking about Outlook, then what version?

Cheers!
0
 
McKnifeAuthor Commented:
Hi BD fan!
We are talking about outlook 2000 in cw mode equipped with the service microsoft mail.
The mail server is a 2k server that has imported the two necessary files (Wgpoadmn.dll and Wgpocpl.cpl) from windows nt to supply the workgroup postoffice as described here: http://www.slipstick.com/addins/services/wgpo.htm

Thanks for further comments.
0
 
McKnifeAuthor Commented:
Found something:
C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\outlook contains an MSFSLOG.TXT which contains everything I need.
Problem is: logging can be disabled through the user interface by anyone. I don't think there is an administrative template section to stop this, but I will have a look. Maybe it is a registry key that can be "frozen" through permissions.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
David LeeCommented:
It's possible to log everything via a macro too.  Of course macros can be disabled or altered.  There may be a third-party add-in on Slipstick that handles logging.  
0
 
McKnifeAuthor Commented:
BDfan, what would that macro look like? I did not find anything at slipstick.
0
 
David LeeCommented:
The code would look like what I've posted below.  This code will create a log file and record the arrival date/time and subject of every item that hits the Inbox.  It will not necessarily catch items processed by a rule.  The code is easily defeated by disabling macros, altering the code, or creating rules to process messages.  Macros also have to be specifically enabled unless you set Outlook's macro security level to Low.  The problem with that is it leaves the computer open to malicious code.

Private Sub olkInboxItems_ItemAdd(ByVal Item As Object)
    Dim objFSO As Object, _
        objFile As Object
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile("C:\MessageLog.txt",8,True)
    objFile.Writeline Now & " " & vbTab & Item.Subject
    objFile.Close
    Set objFile = Nothing
    Set objFSO = Nothing
End Sub

Private Sub Application_Quit()
    Set olkInboxItems = Nothing
End Sub

Private Sub Application_Startup()
    Set olkInboxItems = Session.GetDefaultFolder(olFolderInbox).Items
End Sub
0
 
McKnifeAuthor Commented:
Thanks for the macro. It should create c:\MessageLog.txt, right?
I am not sure what is going wrong, but nothing happens, the file does not get created on arrival of new mails. Anyway, that what I found earlier to be possible by using the session protocol. Last thing I need would be a logging of sent items, the session protocol only logs that mails are sent, but not who got them (of course, "sent items" could reveal that). A last idea?
0
 
David LeeCommented:
Sorry, I should have included instructions for using this.  I wasn't sure if you wanted to try it or just see what the code would look like.  Follow these instructions to try it out.

1.  Start Outlook.
2.  Click Tools->Macros->Visual Basic Editor.
3.  If not already expanded, expand Microsoft Office Outlook Objects and select ThisOutlookSession.
4.  Copy the code and paste it into the right-hand pane of the VB editor.
5.  Edit the code as desired.
6.  Click the diskette icon on the toolbar to save the code.
7.  Close the VB editor.
8.  Click Tools->Macros->Security.
9.  Change the security level to Medium.
10.  Click Ok.
11.  Close Outlook.
12.  Start Outlook.
13.  You'll receive a dialog-box telling you that ThisOutlookSession contains macros and asking if you want to enable them.  Click Enable Macros.  
0
 
McKnifeAuthor Commented:
yes, I did it your way before, but no messagelog.txt gets created. What could be wrong? This is a german version of Outlook 2000, but I don't think localization could be the problem.
0
 
David LeeCommented:
Oops, I looked back at the code and now I see I left something out.  Sorry about that.  It's small, but this won't work without it.  Add this line of code at the top of ThisOutlookSession outside of the three subroutines.

    Private WithEvents olkInboxItems As Outlook.Items
0
 
McKnifeAuthor Commented:
Ok, works now.
Would it be possible to alter that macro so that it logs the sent items, too and (this is what Outlook's own MSFSLOG.TXT does not contain) list every recipient of these outgoing mails?
0
 
David LeeCommented:
Logging sent items is no problem.  Logging the recipients is going to trigger Outlook security if you have it installed.  It was optional for Outlook 2000.  If it is installed, then accessing the recipient information will cause a pop-up dialog-box warning that an application is accessing your mailbox and asking you for permission to allow it to continue.  There are a few ways to get around this, two involving the use of third-party tools and the other to write this as an add-in.  Add-ins have different rules, but they're also more difficult to write.
0
 
McKnifeAuthor Commented:
Aloha GranMod, you stopped an interesting thread. No, you didn't, I was through with it, anyway. Since logging of sent items seems to be quite complicated, we will be satisfied with watching the sent items folder.
Thanks BDF.
0
 
David LeeCommented:
You're welcome.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 7
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now