Suggestion regarding setting up Microsoft 365 to be able to send emails from individual email accounts when using iMail on the IBMi.
Purpose: This setup will allow the outgoing email from the iMail application to use the individuals MS365 email address as the FROM ADDRESS.
General Setup: The iMail Application’s Configuration on the IBMi will have the connection values for the required parameters to connect and authenticate to Microsoft 365 (MS365). When the email package is created and sent using the iMail Application, iMail will connect to MS365 using the values in the iMail Configuration. MS365 will use the Mail Permissions settings (Send as Permissions) to relay the email to the recipient.
If the FROM ADDRESS configured in the iMail Configuration to authenticate equals firstname.lastname@example.org, and the permissions in MS365 for Send as Permissions have been configured, then outgoing email can use the email@example.com email account as the FROM ADDRESS or the individual user’s email account for example firstname.lastname@example.org. The recipient will receive the email with the FROM ADDRESS as the sender’s email account.
Microsoft 365 instructions to configure permissions to use Send as Permissions
Helpful Note: Once you apply the permissions, the newly applied setting may propagate right away or sometimes take a little longer depending on Microsoft. Our experience has been that if it does not propagate right away, it typically takes about 10 to 60 minutes.
Link for instructions from Microsoft: