In the mail program after the migration of your old EKMD mail account to Office365, delete your old EKMD account.
In the Mail program go to Mail\Accounts and choose your old EKMD account. Choose Delete Account
To add the new account go back Mail\ Add Account
Choose Microsoft Exchange
Add the the new EKMD account in the format username@ekmd.huji.ac.il:
and Choose Sign-In
Enter account password
At this stage, you might receive the following screen. If so you will need add your EKMD account to the Microsoft Authencator app on your phone. Please press here for instructions, otherwise continue to the next step.
Choose which apps will be used by the account - Mail/Contacts/Calendar/Reminders. Press Done
The mailbox is now setup: