Please refer to the wiki below

Set up DeviceID for Exchange emails