Use particular .msg file on different Mailstore

If you need to use a .msg file for testing purpose in a different user mailbox, even from totally different mailstore / domain / user, then this blog will describe how to do it.


First of all you need to know the location of the destination user mailbox. Therefor use the hashdir command line tool.

bash-3.00# /opt/sun/comms/messaging64/bin/hashdir mparis
e3/a2/


The location of the mailbox then should look like this (on default installation)

bash-3.00# pwd
/var/opt/sun/comms/messaging64/store/partition/primary/=user/e3/a2/=mparis/00

Now copy the .msg file to the destination user mailbox

cp /tmp/1234.msg .

Take care that the file gets the right permissions

chown mailsrv:mail 1234.msg

Finally you need to run reconstruct on the destination user mailbox

/opt/sun/comms/messaging64/bin/reconstruct -f -r user/mparis


Now you able to access the user Mailbox and access the Message for further testings / debugging.

Comments:

Why not use the deliver command to inject the message in the destination mailbox ?

Posted by Frederic Van De Velde on April 06, 2010 at 02:16 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Andreas Breuer - TSC Engineer - writes about his life in support.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today