Prerequisites
- .NET Framework 4.8 will be needed
- The user’s IT will need to create a domain user account with local admin permissions to run the new Resware Email Attachment service as. This is due to Microsoft’s implementation of the OAuth protocol in regards to incoming email as it is tied to a particular user. Why?
- The profile requires the following specific local security policies:
- Log in as batch job
- Log in as a service
- How do I apply these policies?
- The profile requires the following specific local security policies:
- Obtain the existing credentials from C:\ReswareEmail\Configuration\EmailClientInstaller.exe
- Double-click and acquire the mailbox username and password
- This will be used to setup the new 2.2 installation
After all prerequisites are completed, proceed to Microsoft Registration.
Microsoft Registration
- Go to: https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
- Choose New registration in the top left:
- After clicking New registration, the user will be taken to the Register an application screen
- Name: Can be anything (i.e. Resware Incoming Email)
- Supported account types: Choose Accounts in this organizational directory only unless you know that you have a multitenanted installation
- Redirect URI (optional): Choose Public client/native
- Input the URL: https://login.microsoftonline.com/common/oauth2/nativeclient
- Click Register
- After registration, the user will be taken to the App registrations overview screen
- Copy the values and send them to Resware
- Application (client) ID
- Directory (tenant) ID
- Click on API permissions
- Click on Add a permission
- Click on Microsoft Graph
- After clicking Microsoft Graph, you will be taken to the Request API permissions screen
- Choose Delegated permissions
- Type mail in the search box
- Click the arrow next to Mail to expand the mail options
- Check Mail.ReadWrite
- Click Add permissions
Service Installation on Server
- Log in with the account created for Graph ResMail Service from
Prerequisites: Step 2, log into the server (typically App Server) on which ResMail 2.2 will be running - Use the link to pull down the ResMail 2.2 program: https://drive.google.com/drive/folders/1WiNsex64g-XRw1EyKcdCD-ZLHj-6PXCa?usp=sharing
- Unpack the entire GraphResMail folder into a working directory: C:\GraphResMail
- Copy the entire existing proxy folder located at C:\ResWareEmail\Proxy
- Paste the proxy folder into C:\GraphResMail
- Navigate to C:\GraphResMail, right-click, and edit the emailConfig.xml file
- Copy and Paste the client ID and tenant ID from the Microsoft Registration Steps into the emailConfig.xml (pictured below):
- Make sure that the <clientId></clientId> are on the same line (no returns)
- Make sure that the <tenantId></tenantId> are on the same line (no returns) – will result in an ‘authority’ URI error
- Input the location of the newly created proxy folder C:\GraphResMail\Proxy, for the ProxyFolder value by editing the emailConfig.xml file
- Save the emailConfig.xml file
- Open Command Prompt and Run as Administrator
- Type cd C:\GraphResMail and click enter
- Type Exchange365.exe install and click enter
- To open the Services menu, select Start > type Services
- Right-click the newly created Resware (Adeptive) Email Attachment service
- Select the Properties option
- Select Log On tab
- Toggle This account: to On
- Input the credentials for the Windows Profile with Local Admin Permissions from Prerequisites: Step 2
- Click Apply
- Select the Recovery tab
- Use the dropdown menu and select Restart the Service for each failure
- This will alleviate the need for a manual service restart
- Right-click the newly created Resware (Adeptive) Email Attachment service
- Close pre-existing 1.5 process and proxy process
- Navigate to C:\ReswareEmail\Configuration
- Right – Click EmailClientInstaller.exe and Run as Administrator
- Click Stop from Step 1 first, then click Kill Proxy Processes (Step 2)
- Close Configuration Panel
- Open Command Prompt and Run as Administrator
- Type cd C:\GraphResMail and click enter
- Type Exchange365.exe and click enter
- OAuth Login will be prompted
- Input the credentials for the ResMail Service account from
Prerequisites: Step 3 - Credential tokens will be held in a generated
msalTokenCache.bin file in C:\GraphResMail
- OAuth Login will be prompted
- Exit Command Prompt
- To open the Services menu, select Start > type Services
- Start the Resware (Adeptive) Email Attachment Service