steps to manually create Outlook 2013 (MAPI/HTTP) profile for Exchange Online (Office 365)
Can anyone share the steps to manually create Outlook profile (Outlook 2013 SP1) to connect to Exchange Online mailbox.
I am trying to create profile which uses MAPI/HTTP protocol.
Do I need to set "RPC over HTTP" settings (Exchange proxy settings) to do this ?
All the steps I found suggest setting RPC over Http values (Exchange proxy settings). I am not able to understand why this settings are required if we are not going to use RPC over HTTP protocol.
Thanks in advance.
May 21st, 2015 2:36pm

Thanks @Dmitry Streblechenko.

However, I am looking for the steps to create a profile which uses MAP
I/HTTP and not RPC over HTTP.

The steps you suggested asks to setup RPC over HTTP values. I was not sure do I need to set these values ?

Can we not create MAPI/HTTP profile manually or programmatically ?

Thanks

Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2015 1:36pm

There is nothing extra to configure for MAPI-over-HTTP as opposed to RPC-over-HTTP: Exchange provider will figure out whether the server supports MAPI-over-HTTP and act appropriately.
May 22nd, 2015 2:22pm

Thanks @Dmitry Streblechenko.

However, I am looking for the steps to create a profile which uses MAP
I/HTTP and not RPC over HTTP.

The steps you suggested asks to setup RPC over HTTP values. I was not sure do I need to set these values ?

Can we not create MAPI/HTTP profile manually or programmatically ?

Thanks

Can we not create MAPI/HTTP profile manually or programmatically ?

I would like to know this to. We create our profile manually at the moment using mapi by creating EMS service etc, like is done in a prf file.

Manually creating this profile is very important for us because we have a lot of different environments here to manage.

Free Windows Admin Tool Kit Click here and download it now
July 7th, 2015 4:00am

No, as far as I understand, MAPI-over-HTTP is switched on automatically at run-time for the RPC-over-HTTP profiles.
July 7th, 2015 10:02am

There is nothing extra to configure for MAPI-over-HTTP as opposed to RPC-over-HTTP: Exchange provider will figure out whether the server supports MAPI-over-HTTP and act appropriately.

You mean that if you create outlook profile automatically using autodiscover it will be configured to use MAPI over HTTP? I see that it works.

But what should I do if profile isn't created automatically? I didn't find a way how to manually configure profile to use MAPI over HTTP. I can only create profile that uses MAPI over RPC/HTTP. 

I see instruction on how to create profile using MFCMAPI, but it also creates RPC/HTTP profile. Is it possible to create MAPI over HTTP profile using MFCMAPI?

Thanks.

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 5:12am

It is my understanding that the detection happens at run-time, and your ROH profile will switch to MAPI-over-HTTP if the server supports it.
August 18th, 2015 10:12am

Unfortunately in after manual setup of outlook profile and connecting to exchange 2013 I check outlook "Connection Status..." and see there Protocol RPC/HTTP. And the only way of configure MAPI over HTTP profile was using profile that was created automaticaly(it was created on machine that was in same domain with exchange server, on machine that located in different domain I couldn't create profile automatically, only manual profile that use RPC/HTTP).
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2015 11:25am

Actually I want the ability to create outlook profile PROGROMMATICALLY. We develop application that uses outlook profile to access to exchange server, and it already do that but it creates outlook profiles that uses MAPI over RPC/HTTP. And while new version of outlook supports MAPI over HTTP which have some benefits we'd like to gain that functionality. I guess that if I understand how MFCMAPI creates profile I will do the same action to create right profile using MAPI.

Regards,

Alexandr

August 19th, 2015 8:30am

Have you looked at the links above? They show how to create a ROH profile programmatically.
Free Windows Admin Tool Kit Click here and download it now
August 19th, 2015 11:29am

Yes, and we already used them, to connect using MAPI over RPC/HTTP. But while new method of communicating between outlook and exchange is available and it has benefits we'd like to implement it too. I investigate the internet and didn't find a way to configure MAPI over HTTP profile programatically. The only way to create such profile is to use "Auto Account Setup".
August 20th, 2015 2:27am

Have you tried to compare the bad (created by your code) and good (created by Outlook) profiles?
Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 2:59am

Compare what?

I run outlook using profile created by our code and it uses protocol RPC/HTTP.

Profile that created by outlook wizard is use protocol HTTP.

Or you mean to accurately compare profile's properties using MFCMAPI? There a lot properties to compare... Generally profiles looks similar.

August 20th, 2015 5:21am

Some strange things happens :). Outlook profile that was RPC/HTTP after several times of closing and opening outlook became HTTP profile. So your guess that outlook and exchange will solve this problem themselves is believable.

The only problem that is rest unresolved is to understand what outlook makes with profiles to transform them to HTTP.

Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 10:49am

You can see the profile data in OutlookSpy  -click IProfAdmin button, double click on the profile, click AdninServices, then in the IMsgServiceAdmin window click OpenProfileSection.

August 20th, 2015 12:05pm

I also observed this that manually created RPC/HTTP profile automatically becomes MAPI/HTTP profile after opening in Outlook. But this is strange. This makes profile opening in Outlook mandatory.

If I want to programmatically create a profile and use it without opening that profile in Outlook then is this not possible?

Why opening a profile in Outlook is required to convert RPC/HTTP profile into MAPI/HTTP profile? Can we not directly create MAPI/HTTP profile?

Thanks

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 4:33am

Again, have you tried to compare a profile never touched by Outlook with a profile that connects to the same mailbox after it was converted to MAPI-over-HTTP by Outlook?
August 21st, 2015 12:58pm

I compare profile before and after modification from RPC to HTTP and find out that:

Additional properties appears after transformation to HTTP in {462116D2-EA42-420F-90DD-D067531A6FBC} mail@zerg.org:

0x6640 PT_BINARY cb:457, lpb: 02 00 00 00 10 8....

0x6643 PT_UNICODE Zerg.org

0x6645 PT_LONG 0
0x664A PT_UNICODE https://Hive.Zerg.org/Autodiscover/Autodiscover.xml
0x6651 PT_BOOLEAN true
0x6652 PT_UNICODE https://hive.zerg.org/mapi/emsmdb/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
0x6653 PT_UNICODE https://hive.zerg.org/mapi/emsmdb/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
0x6654 PT_UNICODE https://hive.zerg.org/mapi/nspi/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
0x6655 PT_UNICODE https://hive.zerg.org/mapi/nspi/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
0x6658 PT_UNICODE mail@zerg.org

PR_ROH_PROXY_PRINCIPAL_NAME_W PT_UNICODE None

Some properties was modified:

PR_PROFILE_RPC_PROXY_SERVER_AUTH_PACKAGE PT_LONG from(RPC/HTTP) "1" to(HTTP) "2"
PR_PROFILE_RPC_PROXY_SERVER_FLAGS PT_LONG from(RPC/HTTP) "43" to(HTTP) "41" 

PR_ADDRESS_BOOK_ENTRYID PT_BINARY from cb:8, lpb: 0F 00 00 00 4F 03 BE 0F  to cb:8, lpb: 0F 00 00 00 4F 03 1E 00 

And in {641D2165-3A01-4CA8-AE44-9663EB72349A} mail@zerg.org

0x6641 PT_UNICODE SMTP:DSAdmin2013@zerg.org
0x6652 PT_UNICODE https://hive.zerg.org/mapi/emsmdb/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
0x6653 PT_UNICODE https://hive.zerg.org/mapi/emsmdb/?MailboxId=15c57197-21dd-4418-b864-8cba4beb35fc@zerg.org
PR_ADDRESS_BOOK_ENTRYID PT_BINARY cb:8, lpb: 0F 00 00 00 4F 03 1E 00 

PR_IMAIL_IMAP4_CONTENT PT_LONG 0

I have compared only two "{GUID} mail@zerg.org" options in "OpenProfileSection..." dialog.

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 9:26am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics