When setting up Public Folder Synchronization job I select the proper target Exchange server from the list of servers in the organization, however Migration Manager console application tries connecting to the other (wrong) CAS server and logs the following in EMWMigration.log file:
2018-05-25 07:59:33.8992 Px1EBC Tx1 A- C- M- Info aeEMWGUIForms.CMapiSettings.Log event|Severity: 5| Source: CSession::Logon| Number: 4800 - Logging on to the mailbox '/o=[Organization]/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=[PF_Admin_Mailbox] (Server: '[Wrong_Exchange_Server_Name]', user: '[domain\service_account]', has assocciated PFDB: 'True', connection flags = 0).
2018-05-25 07:59:33.8992 Px1EBC Tx1 A- C- M- Info aeEMWGUIForms.CMapiSettings.Log event|Severity: 5| Source: CaeMAPISession::Logon| Number: 0 - Trying to synchronize MAPI profile creation.
2018-05-25 07:59:33.8992 Px1EBC Tx1 A- C- M- Info aeEMWGUIForms.CMapiSettings.Log event|Severity: 5| Source: CaeMAPISession::Logon| Number: 0 - Creating MAPI profile.
2018-05-25 07:59:33.9148 Px1EBC Tx1 A- C- M- Info aeEMWGUIForms.CMapiSettings.Log event|Severity: 5| Source: CaeMAPISession::Logon| Number: 0 - Trying to logon.
2018-05-25 07:59:36.2742 Px1EBC Tx1 A- C- M- Info aeEMWGUIForms.CMapiSettings.Log event|Severity: 5| Source: CaeMAPISession::Logon| Number: 0 - Trying to open private store.
2018-05-25 07:59:36.2742 Px1EBC Tx1 A- C- M- Error aeEMWGUIForms.CMapiSettings.Log event|-2147221231-The information store could not be opened. - MAPI_E_LOGON_FAILED (MAPI 1.0) Low level error: 0x0 File: 'aeWrapHelpers.h' Line: '279', (Source: CSession::Logon| Number: -2147221231 - The information store could not be opened. - MAPI_E_LOGON_FAILED (MAPI 1.0) Low level error: 0x0 File: 'aeWrapHelpers.h' Line: '279')
2018-05-25 07:59:36.2742 Px1EBC Tx1 A- C- M- Error aeEMWGUIForms.CMapiSettings.GetAeMAPIStore|0-, (-2147221231)
2018-05-25 07:59:36.2742 Px1EBC Tx1 A- C- M- Info EMWCon.CModMisc.MsgBoxEx|Some problems occurred while connecting to server 'Wrong_Exchange_Server_Name'.
Either the server is unavailable or the user name and password you specified are incorrect.