Exmerge Error importing to mailbox

D

Dave

Hey guys.

1st up - I have already applied the correct permissions to the information
store. PLEASE do not direct me to
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323546

as I have already checked that out thoroughly.

Environment
Mail - Exchange 2003 running on Windows 2000
Admin server - Windows 2000 with AD 2003 utilities and Exchange 2003
Managment tools

Ok, now the background

I am using Exmerge to export a rule from a mailbox and then import that rule
into a set of mailboxes. This is the only way we found of deploying Client
rules to Outlook 2002 and 2003 users.

I have created a special account for the operation and I used ADSI edit to
grant this account Send As and Receive As (Once again, PLEASE do not direct
me to check the permissions as per
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q323546) to the
mailbox store containing the test mailboxes.

I pulled down the latest version of Exmerge from MS's site and I configured
the INI file so that I could use the command line option (Exmerge -b) to
perform the export import (As I will be setting this up as a scheduled task
in the future) INI settings as below



;
==============================================================================
; EXEMERGE.INI
; This file is for use with the EXMERGE.EXE program, version 3.71 or higher.
; This file should be present in the same directory as the executable, or
; use the -F command line option to specify the location of the INI file.
;
==============================================================================

[EXMERGE]

MergeAction = 1
DestServerName = %MYEXCHANGESERVER%
DataDirectoryName = c:\TEMP\EXMERGE\IN\PST
LogFileName = c:\TEMP\EXMERGE\IN\log\ExMerge.log
LoggingLevel = 1
FoldersProcessed = 1
ListOfFolders = Inbox
ApplyActionToSubFolders = 0
FileContainingListOfMailboxes = c:\TEMP\EXMERGE\IN\USERS\Users.txt
CopyUserData = 1
CopyAssociatedFolderData = 1
CopyFolderPermissions = 0
CopyDeletedItemsFromDumpster = 0
RemoveIntermediatePSTFiles = 0
UseThisPSTFileForAllMailboxes = exmerge.pst


Content of my filecontaininglistofmailboxes as below

/O=%MYORGANISATION%/OU=Corporate/cn=Recipients/cn=%USERNAME%

When I run Exmerge form the command line, I get this in the log

****************************************************************
Microsoft Exchange Mailbox Merge Program, v6.5.7529.0
Start Logging:June 29, 2006 10:22:45
****************************************************************
[10:22:45] Logging Level: Minimum
[10:22:45] Operating in Batch Mode.
[10:22:45] Reading settings from file 'C:\TEMP\Exmerge\IN\EXMERGE.INI'.
[10:22:46] Error 8007203a opening an LDAP connection.
('LDAP://%MYEXCHANGESERVER%rootDSE') (CADRoutines::GetNamingContextData)
[10:22:46] Accessing Domain Controller '%MYDOMAINCONTROLLER'
[10:22:46] '%MYEXCHANGESERVER%' is running Exchange Server 2000 or later
[10:22:46] Destination server read from settings file is
''%MYEXCHANGESERVER%'.
[10:22:46] Reading list of subjects for messages to be selected from file ''
[10:22:46] Reading list of attachment names for messages to be selected from
file ''
[10:22:46] List of folders specified in INI file 'Inbox'.
[10:22:46] List of folders to be processed has been read. 1 folders in the
list.
[10:22:46] Getting list of mailboxes from file
'c:\TEMP\EXMERGE\IN\USERS\Users.txt'.
[10:22:47] Successfully initialized MAPI.
[10:22:47] MAPI Logon successful.

And that's it, no messages are imported and no apparent error is recorded
apart from the "Error 8007203a opening an LDAP connection." message. All
research I have conducted has indicated a permissions problem on the mailbox
store, but I have exausted that as the problem. ie tried granting the account
access to the exchange services group, granted the account full control
permissions to the server and down to all mailbox stores ect

Now, if I use an earlier version of Exmerge, then I do not have a problem.

****************************************************************
Microsoft Exchange Mailbox Merge Program, v4.00.021
Start Logging:June 29, 2006 09:13:42
****************************************************************
[09:13:42] Logging Level: Minimum
[09:13:42] Operating in Batch Mode.
[09:13:42] Reading settings from file 'C:\TEMP\Exmerge\IN\EXMERGE.INI'.
[09:13:43] Error 8007203a opening an LDAP connection.
('LDAP://%MYEXCHANGESERVER%/rootDSE') (CADRoutines::GetNamingContextData)
[09:13:43] Accessing Domain Controller '%MYDOMAINCONTROLLER%'
[09:13:44] '%MYEXCHANGESERVER%' is running Exchange Server 2000 or later
[09:13:44] Destination server read from settings file is 'DSDP1'.
[09:13:44] Reading list of subjects for messages to be selected from file ''
[09:13:44] Reading list of attachment names for messages to be selected from
file ''
[09:13:44] List of folders specified in INI file 'Inbox'.
[09:13:44] List of folders to be processed has been read. 1 folders in the
list.
[09:13:44] Getting list of mailboxes from file
'c:\TEMP\EXMERGE\IN\USERS\Users.txt'.
[09:13:44] Error initializing MAPI.
(CAdminProfileRoutines::CreateSystemAttendantProfile)
[09:13:44] Error initializing MAPI.
[09:13:44] Error initializing MAPI.
[09:13:44] MAPI has not been initialized (CMapiSession::DeleteOurProfile)
[09:13:44] Number of DNs read from file: 1. Number of valid DNs: 1.
[09:13:44] The file 'exmerge.pst' will be used for all mailboxes.
[09:13:44] Current machine locale ID is 0x409
[09:13:44] Command line received: -B
[09:13:44] Processor architecture: Intel
[09:13:44] Operating System Version 5.2 (Build 3790)
[09:13:44] Program will start processing mailboxes at index 0
[09:13:44] Program will stop processing mailboxes at index 0
[09:13:44] Using attribute 'PR_MESSAGE_DELIVERY_TIME' for date operations.
[09:13:44] Merging data into target store. The program will copy only those
messages that do not exist in the target store.
[09:13:44] Associated folder data will be copied to the target store.
[09:13:44] Using 'English (US)' (0x409) as the default locale (Code page 1252)
[09:13:44] All mailboxes will be processed, regardless of locale
[09:13:44] Program will use 1 worker threads
[09:13:44] Initializing worker thread (Thread0)
[09:13:44] Using locale 0x409 and code page 1252 to connect to mailbox
[09:13:44] Merging data from file 'C:\TEMP\EXMERGE\IN\PST\EXMERGE.PST' to
mailbox '' ('') on server '%MYEXCHANGESERVER%'.
[09:13:44] Successfully initialized MAPI.
[09:13:44] Successfully created profile.
[09:13:44] Successfully initialized MAPI.
[09:13:44] MAPI Logon successful.
[09:13:44] Mailbox '' ('') is homed on server ''%MYEXCHANGESERVER%'.
Dynamically connecting to that server.
[09:13:44] Opened personal and server based stores.
[09:13:44] Opened IPM subtrees.
[09:13:44] Version of Information Store containing mailbox '' ('') : 6.5
(build 7638.2).
[09:13:44] Ignoring folder '\'.
[09:13:44] Number of messages processed for mailbox '': 0
[09:13:44] Number of folders processed for mailbox '': 2
[09:13:44] Successfully completed copying data from
'C:\TEMP\EXMERGE\IN\PST\EXMERGE.PST' to mailbox ''.
[09:13:45] Number of items copied from the source store for all mailboxes
processed: 0
[09:13:45] Total number of folders processed in the source store: 2
[09:13:45] 1 mailboxes successfully processed. 0 mailboxes were not
successfully processed. 0 non-fatal errors encountered.
[09:13:45] Process completion time: 0:00:00:03

So, why would one version work and not another, when all I have changed is
the executable being used for the actual operation. Also, the log does not
really get filled out completely on the 1st operation. Note also, that you
see the same LDAP error on both operations, but the 2nd one works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top