How to read the email directly from the mail store
Hi all,
I would like to know a method to read emails directly from mail store. The reason is that my boss asked me to scan the emails to find whether or not our employees' emails include the sensitive and illegal information. I am sure there is way to monitor users' email, but I am new guy to the messaging server system.
I appreciate for your help in advance.
Daneil
[396 byte] By [
Goodmana] at [2007-11-27 2:53:36]

# 1
Hi,
> I would like to know a method to read emails directly
> from mail store.
You can read the raw .msg files off disk fairly easily by doing the following:
1. Find the location of the files on disk for the user:
./mboxutil -lxp "user/<username>/*"
e.g.
bash-3.00# ./mboxutil -lxp "user/shjorth/*"
msgs Kbytes last msg partitionquotaroot mailbox path and acl
1610 2007/04/30 14:21 primary 5120 user/shjorth/INBOX /opt/SUNWmsgsr/data/store/partition/primary/=user/c4/31/=shjorth shjorthlrswipcdauser=testuserlrwipcd
2. Go to the directory provided:
cd "/opt/SUNWmsgsr/data/store/partition/primary/=user/c4/31/=shjorth"
From here you can see the directory structure and .msg files on disk.
> The reason is that my boss asked me
> to scan the emails to find whether or not our
> employees' emails include the sensitive and illegal
> information.
If this is to be an ongoing issue - something you have to monitor over time, you could keep a local rsync copy of the account (rsync the directory above using cron etc.) and this will keep track of the emails in the users account. This is how I have monitoring accounts in the past.
> I am sure there is way to monitor users'
> email, but I am new guy to the messaging server
> system.
There are a few but it depends on who is going to be accessing the data (e.g. as a system admin you can read the raw messages off disk) and whether this is a once-off thing or an ongoing issue.
Regards,
Shane.