How to configure the Apple Mail?
      
  To delete an existing account:
- Select System Preferences
 - Select Internet Accounts
 - Highlight the account to be remove and click the minus button and click OK to Delete it
 
To add your Exchange Online email account:
- Select System Preferences
 - Select Internet Accounts
 - Select Exchange
 - Enter your Name and Email Address and to Sign in
 - Click Sign in
 - Enter your password to Sign In
 - Approve the 2FA login request
 - Accept the Permissions requested
 - Click Done after the account has been added